v0.1.31-0...-b1e5c7a Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2018 License: ISC Imports: 16 Imported by: 0



Package sessions provides the JSON handlers to handle connections to gonawin app.



This section is empty.


This section is empty.


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.


This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL