Documentation
¶
Overview ¶
Package sessions provides the JSON handlers to handle connections to gonawin app.
Index ¶
- func AuthServiceIds(w http.ResponseWriter, r *http.Request) error
- func Authenticate(w http.ResponseWriter, r *http.Request) error
- func GoogleAccountsLoginURL(w http.ResponseWriter, r *http.Request) error
- func GoogleAuthCallback(w http.ResponseWriter, r *http.Request) error
- func GoogleDeleteCookie(w http.ResponseWriter, r *http.Request) error
- func GoogleUser(w http.ResponseWriter, r *http.Request) error
- func TwitterAuth(w http.ResponseWriter, r *http.Request) error
- func TwitterAuthCallback(w http.ResponseWriter, r *http.Request) error
- func TwitterUser(w http.ResponseWriter, r *http.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthServiceIds ¶
func AuthServiceIds(w http.ResponseWriter, r *http.Request) error
AuthServiceIds handler, use it to get the identifiers of Gonawin
func Authenticate ¶
func Authenticate(w http.ResponseWriter, r *http.Request) error
Authenticate handler, use it to authenticate a user. It returns the JSON data of the requested user.
func GoogleAccountsLoginURL ¶
func GoogleAccountsLoginURL(w http.ResponseWriter, r *http.Request) error
GoogleAccountsLoginURL handler, use it to get Google accounts login URL.
func GoogleAuthCallback ¶
func GoogleAuthCallback(w http.ResponseWriter, r *http.Request) error
GoogleAuthCallback handler, use it to make a callback for Google Authentication.
func GoogleDeleteCookie ¶
func GoogleDeleteCookie(w http.ResponseWriter, r *http.Request) error
GoogleDeleteCookie handler, use it to delete cookie created by Google account.
func GoogleUser ¶
func GoogleUser(w http.ResponseWriter, r *http.Request) error
GoogleUser handler, use it to get Google accounts user.
func TwitterAuth ¶
func TwitterAuth(w http.ResponseWriter, r *http.Request) error
TwitterAuth handler, use it to authenticate via twitter.
func TwitterAuthCallback ¶
func TwitterAuthCallback(w http.ResponseWriter, r *http.Request) error
TwitterAuthCallback handler, use it to make a callback for Twitter Authentication.
func TwitterUser ¶
func TwitterUser(w http.ResponseWriter, r *http.Request) error
TwitterUser handler, use it to get the Twitter user data.
Types ¶
This section is empty.