Documentation ¶
Index ¶
Constants ¶
View Source
const DataTokenKey = "oauth.token"
View Source
const DataUserInfoKey = "oauth.userinfo"
View Source
const HeaderOAuthAccessToken = "X-Goauth-Oauth-Token-Access-Token"
View Source
const HeaderOAuthInfoScopes = "X-Goauth-Oauth-Info-User-Scopes"
View Source
const HeaderOAuthInfoUserID = "X-Goauth-Oauth-Info-User-Id"
View Source
const HeaderOAuthInfoUserName = "X-Goauth-Oauth-Info-User-Name"
View Source
const HeaderOAuthRefreshToken = "X-Goauth-Oauth-Token-Refresh-Token"
View Source
const HeaderOAuthTokenExpiry = "X-Goauth-Oauth-Token-Expiry"
View Source
const HeaderOAuthTokenType = "X-Goauth-Oauth-Token-Type"
View Source
const SessionName = "goauth"
View Source
const SessionStateKey = "state"
View Source
const SessionTokenKey = "token"
View Source
const SessionURLKey = "url"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizationHandler ¶
type AuthorizationHandler struct { Handler DelegateHandler Provider TokenProvider Decoder TokenDecoder Store session.Store StateGenerator StateGenerator RequiredScopes []string Logger gologger.Logger StoreTokenInHeaders bool StoreUserInfoInHeaders bool }
func (*AuthorizationHandler) ServeHTTP ¶
func (h *AuthorizationHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type CallbackHandler ¶
type CallbackHandler struct { Provider TokenProvider Store session.Store Logger gologger.Logger }
func (*CallbackHandler) ServeHTTP ¶
func (h *CallbackHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type DelegateHandler ¶
type StateGenerator ¶
type TokenDecoder ¶
TokenDecoder should be able to decode stored information in a JWT token.
Directories ¶
Path | Synopsis |
---|---|
cookiefakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
sessionfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Click to show internal directories.
Click to hide internal directories.