Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAzureIdentityCredentialAapter ¶
func NewAzureIdentityCredentialAapter() (*autorest.BearerAuthorizer, error)
NewAzureIdentityCredentialAapter return NewAzureIdentityTokenAapter.
Types ¶
type AzureIdentityTokenProvider ¶
type AzureIdentityTokenProvider struct {
AccessToken string `json:"access_token"`
}
AzureIdentityTokenProvider provides a simple extension to use DefaultAzureCredential to create BearerAuthorizer to use Authorizer for authentication.
func NewAzureIdentityTokenProvider ¶
func NewAzureIdentityTokenProvider(azureCredential azcore.TokenCredential, scopes []string) (*AzureIdentityTokenProvider, error)
NewAzureIdentityTokenProvider return AzureIdentityTokenProvider. azureCredential: TokenCredential scopes: The list of scopes for which the token will have access
func (*AzureIdentityTokenProvider) OAuthToken ¶
func (c *AzureIdentityTokenProvider) OAuthToken() string
OAuthToken return the current access token.
Click to show internal directories.
Click to hide internal directories.