C# Class Microsoft.Azure.Commands.Profile.Models.SimpleAccessToken

Provides access token information for a bearer token
Inheritance: IAccessToken
Datei anzeigen Open project: Azure/azure-powershell

Public Methods

Method Description
AuthorizeRequest ( string>.System authTokenSetter ) : void

Authorize a request using an authorization setter function.

SimpleAccessToken ( AzureAccount account, string tenantId, string tokenType = _defaultTokenType ) : Microsoft.Azure.Commands.Common.Authentication

Create a new access token from the given account and tenant id

Method Details

AuthorizeRequest() public method

Authorize a request using an authorization setter function.
public AuthorizeRequest ( string>.System authTokenSetter ) : void
authTokenSetter string>.System The authorization token setter function.
return void

SimpleAccessToken() public method

Create a new access token from the given account and tenant id
public SimpleAccessToken ( AzureAccount account, string tenantId, string tokenType = _defaultTokenType ) : Microsoft.Azure.Commands.Common.Authentication
account Microsoft.Azure.Commands.Common.Authentication.Models.AzureAccount The account, containing user id, access token information
tenantId string The tenant id for the given access token
tokenType string The token type for the given token.
return Microsoft.Azure.Commands.Common.Authentication