AbstractAcquireTokenParameterBuilder<T>.WithScopes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies which scopes to request. This method is used when your application needs to specify the scopes needed to call a protected API. See https://docs.microsoft.com/azure/active-directory/develop/v2-permissions-and-consent to learn more about scopes, permissions and consent, and https://docs.microsoft.com/azure/active-directory/develop/msal-v1-app-scopes to learn how to create scopes for legacy applications which used to expose OAuth2 permissions.
protected T WithScopes (System.Collections.Generic.IEnumerable<string> scopes);
member this.WithScopes : seq<string> -> 'T
Protected Function WithScopes (scopes As IEnumerable(Of String)) As T
Parameters
- scopes
- IEnumerable<String>
Scopes requested to access a protected API
Returns
The builder to chain the .With methods.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for