Skip to content

Commit ef68429

Browse files
authored
Merge pull request #332 from openwallet-foundation-labs/fix/add-dep-endpoints
fix: readd old endpoints to well known
2 parents 598cfc0 + 818a024 commit ef68429

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

apps/backend/src/issuer/issuance/oid4vci/well-known/well-known.controller.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ export class WellKnownController {
3535
})
3636
//we can not set the accept in the apiheader via swagger.
3737
@ApiProduces(MediaType.APPLICATION_JSON, MediaType.APPLICATION_JWT)
38-
@Get([".well-known/openid-credential-issuer/:tenantId"])
38+
@Get([
39+
".well-known/openid-credential-issuer/:tenantId",
40+
":tenantId/.well-known/openid-credential-issuer",
41+
])
3942
issuerMetadata(
4043
@ContentType() contentType: MediaType,
4144
@Param("tenantId") tenantId: string,
@@ -52,7 +55,10 @@ export class WellKnownController {
5255
* Authorization Server Metadata
5356
* @returns
5457
*/
55-
@Get([".well-known/oauth-authorization-server/:tenantId"])
58+
@Get([
59+
".well-known/oauth-authorization-server/:tenantId",
60+
":tenantId/.well-known/oauth-authorization-server",
61+
])
5662
authzMetadata(@Param("tenantId") tenantId: string) {
5763
return this.wellKnownService.getAuthzMetadata(tenantId);
5864
}
@@ -62,7 +68,7 @@ export class WellKnownController {
6268
* @returns
6369
*/
6470
@Header("Content-Type", "application/jwk-set+json")
65-
@Get([".well-known/jwks.json/:tenantId"])
71+
@Get([".well-known/jwks.json/:tenantId", ":tenantId/.well-known/jwks.json"])
6672
getJwks(@Param("tenantId") tenantId: string): Promise<JwksResponseDto> {
6773
return this.wellKnownService.getJwks(tenantId);
6874
}

0 commit comments

Comments
 (0)