microsoft-authentication-library-for-java icon indicating copy to clipboard operation
microsoft-authentication-library-for-java copied to clipboard

Provide a datapoint that shows that the token comes from the cache

Open bgavrilMS opened this issue 2 years ago • 0 comments

MSAL.NET has an additional datapoint in AuthenticationResult.AuthenticationResultMetadata.TokenSource (which may not be the best naming, but the team wanted an object to be able to add more properties there) which can be one of "IdP", "Cache", "Broker".

This will help app developers understand where the token comes from.

Proposal for MSAL Java - put this in AuthenticationResult object directly. It's ok to have just 2 values for now - IdP and Cache. We can add Broker later.

CC @rayluo as this should also be done in MSAL PY.

bgavrilMS avatar Aug 21 '23 09:08 bgavrilMS