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.
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
Click to show internal directories.
Click to hide internal directories.