Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultManagementScope = "https://management.azure.com//.default"
DefaultManagementScope is the default credential scope for Azure Resource Management.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultAzureCredentialAdapter ¶
func NewDefaultAzureCredentialAdapter(options *DefaultAzureCredentialOptions) (autorest.Authorizer, error)
NewDefaultAzureCredentialAdapter adapts azcore.NewDefaultAzureCredential to an autorest.Authorizer.
func NewTokenCredentialAdapter ¶ added in v0.2.0
func NewTokenCredentialAdapter(credential azcore.TokenCredential, scopes []string) autorest.Authorizer
NewTokenCredentialAdapter is used to adapt an azcore.TokenCredential to an autorest.Authorizer
Types ¶
type DefaultAzureCredentialOptions ¶
type DefaultAzureCredentialOptions struct { // DefaultCredential contains configuration options passed to azidentity.NewDefaultAzureCredential(). // Set this to nil to accept the underlying default behavior. DefaultCredential *azidentity.DefaultAzureCredentialOptions // Scopes contains the list of permission scopes required for the token. // Setting this to nil will use the DefaultManagementScope when acquiring a token. Scopes []string }
DefaultAzureCredentialOptions contains credential and authentication policy options.
Click to show internal directories.
Click to hide internal directories.