SupportsTokenInfo Class
Protocol for classes able to provide OAuth access tokens with additional properties.
- Inheritance
-
typing_extensions.ProtocolSupportsTokenInfoSupportsTokenInfoSupportsTokenInfo
Constructor
SupportsTokenInfo(*args, **kwargs)
Methods
close | |
get_token_info |
Request an access token for scopes. This is an alternative to get_token to enable certain scenarios that require additional properties on the token. |
close
close() -> None
get_token_info
Request an access token for scopes.
This is an alternative to get_token to enable certain scenarios that require additional properties on the token.
get_token_info(*scopes: str, options: TokenRequestOptions | None = None) -> AccessTokenInfo
Parameters
Name | Description |
---|---|
scopes
Required
|
The type of access needed. |
Keyword-Only Parameters
Name | Description |
---|---|
options
|
A dictionary of options for the token request. Unknown options will be ignored. Optional. |
Returns
Type | Description |
---|---|
An AccessTokenInfo instance containing information about the token. |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python