Documentation ¶
Index ¶
Constants ¶
View Source
const ( USER_API = "https://api.github.com/user" USER_EMAILS_API = "https://api.github.com/user/emails" USER_ORGS_API = "https://api.github.com/user/orgs" )
View Source
const ( ClientIDKey = "client_id" ClientSecretKey = "client_secret" RedirectURLKey = "redirect_uri" CodeKey = "code" ScopeKey = "scope" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GithubOauthConfig ¶
type OauthAuthorizeURLs ¶
type OauthServ ¶
type OauthServ struct {
// contains filtered or unexported fields
}
func MustGetOauthServ ¶
func MustGetOauthServ( tmpl *template.Template, config *GithubOauthConfig, ) *OauthServ
func (*OauthServ) GetUserEmails ¶
func (o *OauthServ) GetUserEmails(w http.ResponseWriter, r *http.Request)
func (*OauthServ) GetUserInfo ¶
func (o *OauthServ) GetUserInfo(w http.ResponseWriter, r *http.Request)
func (*OauthServ) GetUserOrgs ¶
func (o *OauthServ) GetUserOrgs(w http.ResponseWriter, r *http.Request)
type RedirectURLType ¶
type RedirectURLType string
const ( USER_INFO RedirectURLType = "info" USER_EMAILS RedirectURLType = "emails" USER_ORGS RedirectURLType = "orgs" )
Click to show internal directories.
Click to hide internal directories.