aztfauth

package
v0.0.0-...-0ab695b Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCredential

func NewCredential(opt Option) (cred azcore.TokenCredential, err error)

Types

type Credential

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

type Option

type Option struct {
	Logger *log.Logger

	TenantId     string
	TenantIdFile string

	ClientId     string
	ClientIdFile string

	UseClientSecret  bool
	ClientSecret     string
	ClientSecretFile string

	UseClientCert        bool
	ClientCertBase64     string
	ClientCertPfxFile    string
	ClientCertPassword   []byte
	SendCertificateChain bool

	UseOIDCToken bool
	OIDCToken    string

	UseOIDCTokenFile bool
	OIDCTokenFile    string

	UseOIDCTokenRequest    bool
	OIDCRequestToken       string
	OIDCRequestURL         string
	ADOServiceConnectionId string

	UseMSI         bool
	UseAzureCLI    bool
	UseAzureDevCLI bool

	// Common
	azcore.ClientOptions
	AdditionallyAllowedTenants []string
	DisableInstanceDiscovery   bool
	Cache                      azidentity.Cache
}

Jump to

Keyboard shortcuts

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