authentication

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2018 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToken

type AccessToken struct {
	ClientID     string
	AccessToken  *adal.Token
	IsCloudShell bool
}

type AzureCLIProfile

type AzureCLIProfile struct {
	cli.Profile
}

func (AzureCLIProfile) FindDefaultSubscriptionId

func (a AzureCLIProfile) FindDefaultSubscriptionId() (string, error)

func (AzureCLIProfile) FindSubscription

func (a AzureCLIProfile) FindSubscription(subscriptionId string) (*cli.Subscription, error)

type Config

type Config struct {
	ManagementURL string

	// Core
	ClientID                  string
	SubscriptionID            string
	TenantID                  string
	Environment               string
	SkipCredentialsValidation bool
	SkipProviderRegistration  bool

	// Service Principal Auth
	ClientSecret string

	// Bearer Auth
	AccessToken  *adal.Token
	IsCloudShell bool
	UseMsi       bool
	MsiEndpoint  string
}

Config is the configuration structure used to instantiate a new Azure management client.

func (*Config) LoadTokensFromAzureCLI

func (c *Config) LoadTokensFromAzureCLI() error

func (*Config) ValidateBearerAuth

func (c *Config) ValidateBearerAuth() error

func (*Config) ValidateMsi added in v1.2.0

func (c *Config) ValidateMsi() error

func (*Config) ValidateServicePrincipal

func (c *Config) ValidateServicePrincipal() error

Jump to

Keyboard shortcuts

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