MCPcopy Create free account

hub / github.com/GoIncremental/negroni-oauth2 / functions

Functions34 in github.com/GoIncremental/negroni-oauth2

↓ 9 callersMethodGet
()
oauth2.go:63
↓ 5 callersFunctionGoogle
Returns a new Google OAuth 2.0 backend endpoint.
oauth2.go:112
↓ 4 callersFunctionNewOAuth2Provider
Returns a generic OAuth 2.0 backend endpoint.
oauth2.go:138
↓ 4 callersMethodValid
()
oauth2.go:60
↓ 3 callersFunctionGetToken
(r *http.Request)
oauth2.go:171
↓ 3 callersFunctionSetToken
(r *http.Request, t interface{})
oauth2.go:184
↓ 3 callersFunctionextractPath
(next string)
oauth2.go:289
↓ 3 callersFunctiongetEnv
(key string, defaultValue string)
examples/main.go:29
↓ 2 callersFunctionLoginRequired
Handler that redirects user to the login page if user is not logged in.
oauth2.go:201
↓ 2 callersFunctionunmarshallToken
(s sessions.Session)
oauth2.go:276
↓ 1 callersMethodAccess
()
oauth2.go:58
↓ 1 callersMethodRefresh
()
oauth2.go:59
↓ 1 callersFunctionhandleOAuth2Callback
(config *oauth2.Config, s sessions.Session, w http.ResponseWriter, r *http.Request)
oauth2.go:250
↓ 1 callersFunctionlogin
(config *oauth2.Config, s sessions.Session, w http.ResponseWriter, r *http.Request)
oauth2.go:224
↓ 1 callersFunctionlogout
(s sessions.Session, w http.ResponseWriter, r *http.Request)
oauth2.go:244
↓ 1 callersFunctionnewState
()
oauth2.go:215
MethodAccess
Returns the access token.
oauth2.go:77
MethodExpiryTime
()
oauth2.go:61
MethodExpiryTime
Returns the expiry time of the user's access token.
oauth2.go:97
MethodExtraData
(string)
oauth2.go:62
MethodExtraData
(key string)
oauth2.go:72
FunctionFacebook
(config *Config)
oauth2.go:125
MethodGet
Returns oauth2.Token.
oauth2.go:107
FunctionGithub
Returns a new Github OAuth 2.0 backend endpoint.
oauth2.go:119
FunctionLinkedIn
(config *Config)
oauth2.go:131
MethodRefresh
Returns the refresh token.
oauth2.go:82
MethodString
String returns the string representation of the token.
oauth2.go:102
FunctionTest_LoginRedirect
(t *testing.T)
oauth2_test.go:32
FunctionTest_LoginRedirectAfterLoginRequired
(t *testing.T)
oauth2_test.go:56
FunctionTest_LoginRequired
(t *testing.T)
oauth2_test.go:160
FunctionTest_Logout
(t *testing.T)
oauth2_test.go:90
FunctionTest_LogoutOnAccessTokenExpiration
(t *testing.T)
oauth2_test.go:129
MethodValid
Returns whether the access token is expired or not.
oauth2.go:88
Functionmain
()
examples/main.go:37