AuthTokenRequest interface
Properties
claims | An optional list of claims which to pass to AAD when requesting the access token. |
failure |
A function that is called if the token request fails, with the reason for the failure. |
resources | An optional list of resource for which to acquire the access token; only used for full trust apps. |
silent | An optional flag indicating whether to attempt the token acquisition silently or allow a prompt to be shown. |
success |
A function that is called if the token request succeeds, with the resulting token. |
Property Details
claims
An optional list of claims which to pass to AAD when requesting the access token.
claims?: string[]
Property Value
string[]
failureCallback
A function that is called if the token request fails, with the reason for the failure.
failureCallback?: (reason: string) => void
Property Value
(reason: string) => void
resources
An optional list of resource for which to acquire the access token; only used for full trust apps.
resources?: string[]
Property Value
string[]
silent
An optional flag indicating whether to attempt the token acquisition silently or allow a prompt to be shown.
silent?: boolean
Property Value
boolean
successCallback
A function that is called if the token request succeeds, with the resulting token.
successCallback?: (token: string) => void
Property Value
(token: string) => void
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈