auth

package
v0.0.0-...-fc51476 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultEnvironmentName = azure.PublicCloud.Name

Functions

func GetToken

func GetToken(config Config) (*adal.Token, error)

GetToken creates an adal.Token in the following order: 1. Client credentials 2. Client certificate 3. Username and password 4. MSI 5. CLI

Types

type Config

type Config struct {
	SubscriptionID string
	TenantID       string
	ClientID       string
	ClientSecret   string
	Environment    string
	Resource       string
}

Jump to

Keyboard shortcuts

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