azidentity

package module
v0.0.0-...-ade8678 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL