Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Public = &public{}
Public is the auth strategy that does not add any authorization
Functions ¶
This section is empty.
Types ¶
type Strategy ¶
type Strategy interface { // DecorateRequest decorates an HTTP // request with an authorization method // for the given scope DecorateRequest(request *http.Request) // WithScope transforms the strategy into // a new Strategy that uses the requested scope WithScope(scope string) Strategy }
Strategy represents an authorization method
func AccessToken ¶
AccessToken returns an authorization strategy that uses the specified access token to authorize
func AccessTokenWithManager ¶
AccessTokenWithManager returns an authorization strategy that uses the specified access token to authorize and that uses the specified manager to fetch new tokens if required.
Click to show internal directories.
Click to hide internal directories.