Documentation ¶
Overview ¶
package goauthboss provides an Init method to integrate with authboss.
Most of the code comes from https://github.com/volatiletech/authboss/blob/bf1c58d588380d4b75cd548db488c441fe73593a/oauth2/oauth2.go (Copyright (c) 2015 Kris Runzer, Aaron Lefkowitz - licensed under the MIT License).
Index ¶
Constants ¶
View Source
const ( FormValueOAuth2State = "state" FormValueOAuth2Redir = "redir" )
FormValue constants
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OAuth2Result ¶ added in v0.1.4
type OAuth2Result struct { Provider string // UnmarshalUser will unmarshal the JSON user returned by the provider // var user struct { // ID string `json:"sub"` // Email string `json:"email"` // Name string `json:"name"` // } // err = UnmarshalUser(&user) UnmarshalUser func(interface{}) error Token *oauth2.Token }
type OAuth2Store ¶
Click to show internal directories.
Click to hide internal directories.