Skip to content

Commit

Permalink
Merge pull request #44 from dlcs/feature/troubleshooting
Browse files Browse the repository at this point in the history
Additional logging for validating token
  • Loading branch information
donaldgray authored Aug 8, 2024
2 parents c542589 + 5327794 commit 15f493d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ private async Task<JsonWebKeySet> GetWebKeySetForDomain(Uri jwksPath, Cancellati
var cacheKey = $"{jwksPath}:jwks";
return await appCache.GetOrAddAsync(cacheKey, async () =>
{
logger.LogDebug("Refreshing jwks cache from {JWKSPath}", jwksPath);
var jwks = await httpClient.GetStringAsync(jwksPath, cancellationToken);
return new JsonWebKeySet(jwks);
}, new MemoryCacheEntryOptions { AbsoluteExpirationRelativeToNow = TimeSpan.FromSeconds(authSettings.JwksTtl) });
Expand Down

0 comments on commit 15f493d

Please sign in to comment.