Skip to content

Commit 7c8ad13

Browse files
authored
Update msal-net-differences-adal-net.md
1 parent e59354b commit 7c8ad13

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,14 @@ catch(AdalException exception)
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

160160
### 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
161+
Prompt Behavior -
162+
| ADAL | MSAL | Description |
163+
| ----------- | ----------- | -------------|
164+
| `PromptBehavior.Auto`| `NoPrompt`| Azure AD chooses the best behavior (signing users silently if they are signed-in with only one account, or displaying the account selector if they are signed in with several accounts) |
165+
| `PromptBehavior.Always`| `ForceLogin` | resets the login box and forces the user to re-enter their login and credentials |
166+
| `PromptBehavior.RefreshSession`| `Consent`| forces the user to re-consent to all permissions |
167+
| `PromptBehavior.Never`| `Never`| should not be used, instead use the [recommended pattern for public client apps](scenario-desktop-acquire-token.md?tabs=dotnet) |
168+
| `PromptBehavior.SelectAccount`| `SelectAccount`| displays the account selector and forces the user to select an account |
167169

168170
### Handling claim challenge exceptions
169171

0 commit comments

Comments
 (0)