auth

package
v0.0.0-...-36a9aea Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthorizerForResource

func GetAuthorizerForResource(grantType OAuthGrantType, resource string) (autorest.Authorizer, error)

func GetKeyvaultAuthorizer

func GetKeyvaultAuthorizer(clientID, clientSecret, tenantID string) (autorest.Authorizer, error)

GetKeyvaultAuthorizer gets an OAuthTokenAuthorizer for use with Key Vault keys and secrets. Note that Key Vault *Vaults* are managed by Azure Resource Manager.

func GetResourceManagementAuthorizer

func GetResourceManagementAuthorizer() (autorest.Authorizer, error)

Types

type OAuthGrantType

type OAuthGrantType int

OAuthGrantType specifies which grant type to use.

const (
	OAuthGrantTypeServicePrincipal OAuthGrantType = iota
)

Jump to

Keyboard shortcuts

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