# Packages
No description provided by the author
# Functions
ExtractClientID extracts the client identifier from the x-ms-client-request-id header set on the http.Request sent to the service (and returned in the http.Response).
ExtractRequestID extracts the Azure server generated request identifier from the x-ms-request-id header.
NewServicePrincipalToken creates a ServicePrincipalToken from the supplied Service Principal credentials scoped to the named resource.
NewServicePrincipalTokenFromCertificate create a ServicePrincipalToken from the supplied pkcs12 bytes.
NewServicePrincipalTokenWithSecret create a ServicePrincipalToken using the supplied ServicePrincipalSecret implementation.
WithClientID returns a PrepareDecorator that adds an HTTP extension header of x-ms-client-request-id whose value is passed, undecorated UUID (e.g., "0F39878C-5F76-4DB8-A25D-61D2C193C3CA").
WithErrorUnlessStatusCode returns a RespondDecorator that emits an azure.Error by reading the response body unless the response HTTP status code is among the set passed.
WithReturnClientID returns a PrepareDecorator that adds an HTTP extension header of x-ms-return-client-request-id whose boolean value indicates if the value of the x-ms-client-request-id header should be included in the http.Response.
WithReturningClientID returns a PrepareDecorator that adds an HTTP extension header of x-ms-client-request-id whose value is the passed, undecorated UUID (e.g., "0F39878C-5F76-4DB8-A25D-61D2C193C3CA").
# Constants
AzureResourceManagerScope is the OAuth scope for the Azure Resource Manager.
HeaderClientID is the Azure extension header to set a user-specified request ID.
HeaderRequestID is the Azure extension header of the service generated request ID returned in the response.
HeaderReturnClientID is the Azure extension header to set if the user-specified request ID should be included in the response.
# Structs
Error describes an error response returned by Azure service.
ServicePrincipalCertificateSecret implements ServicePrincipalSecret for generic RSA cert auth with signed JWTs.
ServicePrincipalToken encapsulates a Token created for a Service Principal.
ServicePrincipalTokenSecret implements ServicePrincipalSecret for client_secret type authorization.
Token encapsulates the access token used to authorize Azure requests.
# Interfaces
ServicePrincipalSecret is an interface that allows various secret mechanism to fill the form that is submitted when acquiring an oAuth token.