Documentation ¶
Index ¶
Constants ¶
View Source
const MicrosoftAuthority = "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47"
MicrosoftAuthority is the authority for Microsoft accounts.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfidentialCredentialTransport ¶
type ConfidentialCredentialTransport struct { Client confidential.Client Scopes []string // Transport is the underlying HTTP transport to use when making requests. // It will default to http.DefaultTransport if nil. Transport http.RoundTripper }
ConfidentialCredentialTransport is an http.RoundTripper that makes requests with the "Authorization Bearer" header set to the token acquired from the confidential client.
func NewConfidentialTransport ¶
func NewConfidentialTransport(authority, clientID, clientSecret string) (*ConfidentialCredentialTransport, error)
NewConfidentialTransport creates a new ConfidentialCredentialTransport. authority is the URL of a token authority such as "https://login.microsoftonline.com/<your tenant>".
Click to show internal directories.
Click to hide internal directories.