azure.mixedreality.authentication package

class azure.mixedreality.authentication.MixedRealityStsClient(account_id: str, account_domain: str, credential: Union[TokenCredential, AzureKeyCredential], **kwargs: Any)[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.

close()None[source]
get_token(**kwargs: Any)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