Skip to content

Commit

Permalink
feat(OIDC): add debug logging of discovery results
Browse files Browse the repository at this point in the history
  • Loading branch information
awlayton committed Feb 16, 2024
1 parent 842aba2 commit 636a8a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions oada/services/http-handler/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ async function discoverConfiguration(issuer: string | URL) {
// Find JWKSet URI for auth issuer with OIDC
const issuer = config.get('oidc.issuer');
const { jwks_uri: jwksUrl } = await discoverConfiguration(issuer);
fastify.log.debug({ jwksUrl }, `Loaded OIDC configuration for ${issuer}`);

// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
await fastify.register(fastifyJwtJwks, {
Expand Down
1 change: 1 addition & 0 deletions oada/services/well-known/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ await fastify.register(formats);

const issuer = config.get('oidc.issuer');
const configuration = await discoverConfiguration(issuer);
fastify.log.debug({ configuration }, `Loaded OIDC configuration for ${issuer}`);

const wellKnownOptions = {
resources: {
Expand Down

0 comments on commit 636a8a3

Please sign in to comment.