Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Tenant string `yaml:"tenant_id" validate:"omitempty,uuid4"` ClientID string `yaml:"client_id" validate:"omitempty,uuid4"` ClientSecret string `yaml:"client_secret"` ClientPKCS12Certificate string `yaml:"client_pkcs12_certificate"` ClientCertificate string `yaml:"client_certificate"` ClientCertificateThumbprint string `yaml:"client_certificate_thumbprint"` PrivateKey string `yaml:"client_private_key"` PrivateKeyPassword string `yaml:"decrypt_password"` }
Config is the configuration for using Azure authentication
func (*Config) Client ¶
Client returns an HTTP client wrapping the context's HTTP transport and adding Authorization headers with tokens obtained from c.
func (*Config) TokenSource ¶
func (c *Config) TokenSource(ctx context.Context, scopes []string) (ts oauth2.TokenSource, err error)
TokenSource returns new token source using the configuration.
Click to show internal directories.
Click to hide internal directories.