iam

package
v0.14.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResourceManagementAuthorizer

func GetResourceManagementAuthorizer(grantType OAuthGrantType) (autorest.Authorizer, error)

GetResourceManagementAuthorizer gets an OAuth token for managing resources using the specified grant type.

func GetToken

func GetToken(grantType OAuthGrantType) (adal.Token, error)

GetToken gets an OAuth token for managing resources using the specified grant type.

Types

type OAuthGrantType

type OAuthGrantType int

OAuthGrantType specifies which grant type to use.

const (
	// OAuthGrantTypeServicePrincipal for client credentials flow
	OAuthGrantTypeServicePrincipal OAuthGrantType = iota
	// OAuthGrantTypeDeviceFlow for device-auth flow
	OAuthGrantTypeDeviceFlow
)

func AuthGrantType

func AuthGrantType() OAuthGrantType

AuthGrantType returns what kind of authentication is going to be used: device flow or service principal

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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