microsoftgraph/msgraph-sdk-dotnet-core

Cache keys in ITokenValidableExtension.AreTokensValidAsync

Opened this issue · 0 comments

meum commented

Is your feature request related to a problem? Please describe the problem.

Every time I call AreTokensValidAsync, I see two requests to login.microsoftonline.com. One to /common/.well-known/openid-configuration and one to /common/discovery/keys.
I assume these keys don't change very often, so they should be cached.

Describe the solution you'd like.

I would like the keys to be cached, to avoid these two requests being repeated so often.

Additional context?

No response