Skip to content

Commit e59354b

Browse files
authored
Update doc with equivalent prompt behavior in MSAL
Propose to add the below differences in prompt behavior between MSAL and ADAL. ADAL is to MSAL -- PromptBehavior.Auto -> NoPrompt PromptBehavior.Always -> ForceLogin PromptBehavior.RefreshSession --> Consent PromptBehavior.Never --> Never, but it should not be used, instead try AcquireTokenSilent / catch MsalUiRequriedException and that should cover for it. Ref docs - https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/Acquiring-tokens-interactively @mmacy and @jmprieur
1 parent 0119b5c commit e59354b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

articles/active-directory/develop/msal-net-differences-adal-net.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,14 @@ catch(AdalException exception)
157157

158158
For details, see [the recommended pattern to acquire a token in public client applications](https://github.com/AzureAD/azure-activedirectory-library-for-dotnet/wiki/AcquireTokenSilentAsync-using-a-cached-token#recommended-pattern-to-acquire-a-token) with ADAL.NET.
159159

160+
### Prompt Behavior in MSAL equivalent to that in ADAL -
161+
ADAL --> MSAL
162+
PromptBehavior.Auto -> NoPrompt
163+
PromptBehavior.Always -> ForceLogin
164+
PromptBehavior.RefreshSession --> Consent
165+
PromptBehavior.Never --> Never, but it should not be used, instead try AcquireTokenSilent / catch MsalUiRequriedException and that should cover for it.
166+
Ref docs - https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/Acquiring-tokens-interactively
167+
160168
### Handling claim challenge exceptions
161169

162170
At times when acquiring a token, Azure AD throws an exception in case a resource requires more claims from the user (for instance two-factor authentication).

0 commit comments

Comments
 (0)