Documentation ¶
Index ¶
Constants ¶
View Source
const (
SESSION_KEY string = "oauth2"
)
Variables ¶
View Source
var (
Providers = make(map[string]strategies.Strategy)
)
Functions ¶
func GetUser ¶
func GetUser(c *revel.Controller) (*strategies.UserModel, bool)
func Login ¶
func Login(c *revel.Controller, userData *strategies.UserModel)
func Logout ¶
func Logout(c *revel.Controller)
Types ¶
type ProviderConfig ¶
type ProviderConfig struct { Name string Strategy strategies.Strategy }
Click to show internal directories.
Click to hide internal directories.