diff --git a/packages/oidc-mock-provider/src/index.ts b/packages/oidc-mock-provider/src/index.ts index d3dc3eb2..87d4a450 100644 --- a/packages/oidc-mock-provider/src/index.ts +++ b/packages/oidc-mock-provider/src/index.ts @@ -58,6 +58,11 @@ export interface OIDCMockProviderConfig { * Optional hostname for the server to listen on. */ hostname?: string; + + /** + * Optional additional fields to be returned when the OIDC configuration is accessed. + */ + additionalIssuerMetadata?: Record; } /** @@ -155,6 +160,7 @@ export class OIDCMockProvider { '/device', this.issuer ).toString(), + ...this.config.additionalIssuerMetadata, }; break; case '/jwks':