azure.mixedreality.authentication.aio package¶
-
class
azure.mixedreality.authentication.aio.
MixedRealityStsClient
(account_id: str, account_domain: str, credential: Union[azure.core.credentials.AzureKeyCredential, AsyncTokenCredential], **kwargs)[source]¶ A client to interact with the Mixed Reality STS service.
- Parameters
- Keyword Arguments
custom_endpoint_url (str) – Override the Mixed Reality STS service endpoint.
-
async
get_token
(**kwargs) → AccessToken[source]¶ Retrieve a token from the STS service for the specified account identifier asynchronously. :return: Instance of azure.core.credentials.AccessToken - token and expiry date of it :rtype:
azure.core.credentials.AccessToken