Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoIncremental/negroni-oauth2
/ functions
Functions
34 in github.com/GoIncremental/negroni-oauth2
⨍
Functions
34
◇
Types & classes
4
↓ 9 callers
Method
Get
()
oauth2.go:63
↓ 5 callers
Function
Google
Returns a new Google OAuth 2.0 backend endpoint.
oauth2.go:112
↓ 4 callers
Function
NewOAuth2Provider
Returns a generic OAuth 2.0 backend endpoint.
oauth2.go:138
↓ 4 callers
Method
Valid
()
oauth2.go:60
↓ 3 callers
Function
GetToken
(r *http.Request)
oauth2.go:171
↓ 3 callers
Function
SetToken
(r *http.Request, t interface{})
oauth2.go:184
↓ 3 callers
Function
extractPath
(next string)
oauth2.go:289
↓ 3 callers
Function
getEnv
(key string, defaultValue string)
examples/main.go:29
↓ 2 callers
Function
LoginRequired
Handler that redirects user to the login page if user is not logged in.
oauth2.go:201
↓ 2 callers
Function
unmarshallToken
(s sessions.Session)
oauth2.go:276
↓ 1 callers
Method
Access
()
oauth2.go:58
↓ 1 callers
Method
Refresh
()
oauth2.go:59
↓ 1 callers
Function
handleOAuth2Callback
(config *oauth2.Config, s sessions.Session, w http.ResponseWriter, r *http.Request)
oauth2.go:250
↓ 1 callers
Function
login
(config *oauth2.Config, s sessions.Session, w http.ResponseWriter, r *http.Request)
oauth2.go:224
↓ 1 callers
Function
logout
(s sessions.Session, w http.ResponseWriter, r *http.Request)
oauth2.go:244
↓ 1 callers
Function
newState
()
oauth2.go:215
Method
Access
Returns the access token.
oauth2.go:77
Method
ExpiryTime
()
oauth2.go:61
Method
ExpiryTime
Returns the expiry time of the user's access token.
oauth2.go:97
Method
ExtraData
(string)
oauth2.go:62
Method
ExtraData
(key string)
oauth2.go:72
Function
Facebook
(config *Config)
oauth2.go:125
Method
Get
Returns oauth2.Token.
oauth2.go:107
Function
Github
Returns a new Github OAuth 2.0 backend endpoint.
oauth2.go:119
Function
LinkedIn
(config *Config)
oauth2.go:131
Method
Refresh
Returns the refresh token.
oauth2.go:82
Method
String
String returns the string representation of the token.
oauth2.go:102
Function
Test_LoginRedirect
(t *testing.T)
oauth2_test.go:32
Function
Test_LoginRedirectAfterLoginRequired
(t *testing.T)
oauth2_test.go:56
Function
Test_LoginRequired
(t *testing.T)
oauth2_test.go:160
Function
Test_Logout
(t *testing.T)
oauth2_test.go:90
Function
Test_LogoutOnAccessTokenExpiration
(t *testing.T)
oauth2_test.go:129
Method
Valid
Returns whether the access token is expired or not.
oauth2.go:88
Function
main
()
examples/main.go:37