Documentation
¶
Overview ¶
Package oauthsrc implements sourcing of OAuth2 tokens.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTP ¶
func NewHTTP(method, tokenURL, body string, emptyJSONToken Tokener) oauth2.TokenSource
NewHTTP returns an HTTP token source that fetches tokens from the tokenURL with the specified HTTP method and request body. The request body will be unmarshalled into a new instance of emptyJSONToken, created via reflection.
Types ¶
Click to show internal directories.
Click to hide internal directories.