A sample showcasing how to develop a web application that handles sign on via the unified Azure AD and MSA endpoint, so that users can sign in using both their work/school account or Microsoft account. The sample also shows how to use MSAL to obtain a token for invoking the Microsoft Graph, as well as incrementental consent.
using the SuggestedCacheKey of TokenCacheNotificationArgs as the cache key
using the HasTokens of TokenCacheNotificationArgs to remove the record corresponding to the user when there are no longer any token in the cache for the user (after signout)
Updating to MSAL.NET 4.16
SuggestedCacheKey
ofTokenCacheNotificationArgs
as the cache keyHasTokens
ofTokenCacheNotificationArgs
to remove the record corresponding to the user when there are no longer any token in the cache for the user (after signout)