-
Notifications
You must be signed in to change notification settings - Fork 372
Open
Description
MSAL client type
Confidential, Managed identity
Problem statement
Extensiblity APIs can lead to bad token caching, where ppl don't realize that tokens aren't actually cached by all params. We need to limit this by enhancing caching, by making extensiblity APIs not for production (they should be already):
- make OnBeforeTokenRequest experimental
- if WithExtraQueryParameters, cache tokens by those params
- introduce WithBodyParamters, cache tokens by those params (maybe have an allow-list of params that do not impact caching)
- audit ID.Web's and other SDKs usage of OnBeforeTokenRequest and how caching is impacted.
- See
IAuthenticationOperation GetTokenParameters
- either deprecate it or make it useWithBodyParamters
Proposed solution
No response
Alternatives
No response