azidext

package module
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 7 Imported by: 16

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.

Jump to

Keyboard shortcuts

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