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.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für