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
  • account_id (str) – The Mixed Reality service account identifier.

  • account_domain (str) – The Mixed Reality service account domain.

  • AzureKeyCredential] credential (Union[TokenCredential,) – The credential used to access the Mixed Reality service.

Keyword Arguments

custom_endpoint_url (str) – Override the Mixed Reality STS service endpoint.

async close()None[source]
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