Documentation ¶
Overview ¶
Package oauth contains the oauth utilities for the platform
Index ¶
Constants ¶
View Source
const (
//GOOGLE is google oauth agent string
GOOGLE = "GOOGLE"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Agent ¶
type Agent interface { //Info returns the user info for a given app context Info(context.Context, *config.AppContext) (*config.UserInfo, error) //Name is the name of the auth agent Name() string }
Agent is the oauth agent interface to be implmented. OAuth agents are google, facebook etc.
type UserInfoMap ¶
type UserInfoMap struct { Email string //Email key of the user info model Name string //Name key of the user info model Picture string //Picture url key of the user info model }
UserInfoMap contains the string of the keywords to be used to retrieve the user info from the api respose of the auth agent like Google, Facebook etc.
Click to show internal directories.
Click to hide internal directories.