Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AzureTokenProvider ¶
type AzureTokenProvider interface {
GetAccessToken(ctx context.Context, scopes []string) (string, error)
}
func NewAzureAccessTokenProvider ¶
func NewAzureAccessTokenProvider(settings *azsettings.AzureSettings, credentials azcredentials.AzureCredentials, userIdentitySupported bool) (AzureTokenProvider, error)
type ConcurrentTokenCache ¶
type ConcurrentTokenCache interface {
GetAccessToken(ctx context.Context, tokenRetriever TokenRetriever, scopes []string) (string, error)
}
func NewConcurrentTokenCache ¶
func NewConcurrentTokenCache() ConcurrentTokenCache
type TokenClient ¶
type TokenClient interface { FromClientSecret(ctx context.Context, scopes []string) (*AccessToken, error) FromRefreshToken(ctx context.Context, refreshToken string, scopes []string) (*AccessToken, error) OnBehalfOf(ctx context.Context, idToken string, scopes []string) (*AccessToken, error) FromUsername(ctx context.Context, username string, scopes []string) (*AccessToken, error) }
func NewTokenClient ¶
Click to show internal directories.
Click to hide internal directories.