Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthorizerWrapper ¶
func NewAuthorizerWrapper(autorestAuthorizer autorest.Authorizer) (auth.Authorizer, error)
NewAuthorizerWrapper returns a Hamilton auth.Authorizer that sources tokens from a supplied autorest.BearerAuthorizer
Types ¶
type Authorizer ¶
type Authorizer struct {
auth.Authorizer
}
func (*Authorizer) BearerAuthorizerCallback ¶
func (c *Authorizer) BearerAuthorizerCallback() *autorest.BearerAuthorizerCallback
BearerAuthorizerCallback is a helper that returns an *autorest.BearerAuthorizerCallback for use in data plane API clients in the Azure SDK
func (*Authorizer) WithAuthorization ¶
func (c *Authorizer) WithAuthorization() autorest.PrepareDecorator
WithAuthorization implements the autorest.Authorizer interface
type AuthorizerWrapper ¶
type AuthorizerWrapper struct {
// contains filtered or unexported fields
}
AuthorizerWrapper is a Hamilton auth.Authorizer which sources tokens from an autorest.Authorizer Fully supports: - autorest.BearerAuthorizer - autorest.MultiTenantBearerAuthorizer For other types that satisfy autorest.Authorizer, the Authorization and X-Ms-Authorization-Auxiliary headers are parsed for access token values, but additional metadata such as refresh tokens and expiry are not provided.
func (*AuthorizerWrapper) AuxiliaryTokens ¶
func (a *AuthorizerWrapper) AuxiliaryTokens() ([]*oauth2.Token, error)
AuxiliaryTokens returns additional tokens for auxiliary tenant IDs, sourced from an autorest.MultiTenantBearerAuthorizer, for use in multi-tenant scenarios