armauth

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderAuthorizationAuxiliary = "x-ms-authorization-auxiliary"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuxiliaryAuthPolicy

type AuxiliaryAuthPolicy struct {
	// contains filtered or unexported fields
}

func NewAuxiliaryAuthPolicy

func NewAuxiliaryAuthPolicy(credentials []azcore.TokenCredential, scope string) *AuxiliaryAuthPolicy

func (*AuxiliaryAuthPolicy) Do

type KeyVaultCredential

type KeyVaultCredential struct {
	// contains filtered or unexported fields
}

func NewKeyVaultCredential

func NewKeyVaultCredential(
	msiCredential azcore.TokenCredential,
	secretResourceID SecretResourceID,
) (*KeyVaultCredential, error)

func (*KeyVaultCredential) GetToken

type KeyVaultCredentialSecret

type KeyVaultCredentialSecret struct {
	AccessToken string    `json:"access_token"`
	ExpiresOn   time.Time `json:"expires_on"`
}

type SecretResourceID added in v0.0.20

type SecretResourceID struct {
	SubscriptionID string
	ResourceGroup  string
	VaultName      string
	SecretName     string
}

func (SecretResourceID) String added in v0.0.20

func (s SecretResourceID) String() string

Jump to

Keyboard shortcuts

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