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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈