SupportsTokenInfo Class
Protocol for classes able to provide OAuth access tokens with additional properties.
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. Default value: None
|
Returns
Type | Description |
---|---|
An AccessTokenInfo instance containing information about the token. |