AuthenticationManager interface
A manager for the map control's authentication. Exposed through the authentication property of the atlas.Map class. Cannot be instantiated by the user.
Methods
get |
Returns the current authentication type in use. |
get |
Returns the current client ID in use. |
get |
Returns the access token with an audience URI of https://atlas.microsoft.com. |
initialize() | Initializes the authentication mechanism specified in AuthenticationOptions. If this method has been called before the original initialize promise is returned. |
sign |
Adds the necessary authentication query parameters or headers to a RequestParameters. Returns the updated RequestParameters. |
Method Details
getAuthType()
getClientId()
Returns the current client ID in use.
function getClientId()
Returns
string
getToken()
Returns the access token with an audience URI of https://atlas.microsoft.com.
function getToken()
Returns
string
initialize()
Initializes the authentication mechanism specified in AuthenticationOptions. If this method has been called before the original initialize promise is returned.
function initialize()
Returns
Promise<void>
signRequest(RequestParameters)
Adds the necessary authentication query parameters or headers to a RequestParameters. Returns the updated RequestParameters.
function signRequest(params: RequestParameters)
Parameters
- params
- RequestParameters
The RequestParameters to update.