Skip to content

Commit fbe4090

Browse files
Update articles/active-directory/develop/scenario-desktop-acquire-token-interactive.md
Co-authored-by: Bogdan Gavril <[email protected]>
1 parent 819ce97 commit fbe4090

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

articles/active-directory/develop/scenario-desktop-acquire-token-interactive.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ catch(MsalUiRequiredException)
4444

4545
`AcquireTokenInteractive` has only one mandatory parameter, `scopes`. It contains an enumeration of strings that define the scopes for which a token is required. If the token is for Microsoft Graph, you can find the required scopes in the API reference of each Microsoft Graph API in the section named "Permissions." For instance, to [list the user's contacts](/graph/api/user-list-contacts), you must use both `User.Read` and `Contacts.Read` as the scope. For more information, see [Microsoft Graph permissions reference](/graph/permissions-reference).
4646

47-
On Android, you also need to specify the parent activity by using `.WithParentActivityOrWindow`, so that the token gets back to that parent activity after the interaction. If you don't specify it, an exception is thrown when you call `.ExecuteAsync()`.
47+
On both desktop and mobile applications, it's important to specify the parent by using `.WithParentActivityOrWindow`. In many cases, it's a requirement and MSAL will throw exceptions.
48+
49+
For desktop applications, see [Parent window handles](/azure/active-directory/develop/scenario-desktop-acquire-token-wam#parent-window-handles)
50+
51+
For mobile applications, provide `Activity` (Android) or `UIViewController` (iOS).
4852

4953
### Optional parameters in MSAL.NET
5054

0 commit comments

Comments
 (0)