Documentation ¶
Index ¶
- func GetAccessToken(ctx context.Context, code string) (string, error)
- func GetEmail(ctx context.Context, accessToken string) (string, error)
- func GetUserInfoFacebook(state string, code string) ([]byte, error)
- func GetUserInfoGoogle(state string, code string) ([]byte, error)
- func HTTPClient() *http.Client
- func HandleFacebookCallback(w http.ResponseWriter, r *http.Request)
- func HandleFacebookLogin(w http.ResponseWriter, r *http.Request)
- func HandleGHCallback(w http.ResponseWriter, r *http.Request)
- func HandleGHLogin(w http.ResponseWriter, r *http.Request)
- func HandleGoogleCallback(w http.ResponseWriter, r *http.Request)
- func HandleGoogleLogin(w http.ResponseWriter, r *http.Request)
- type FBUser
- type GithubUser
- type GoogleUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPClient ¶
func HandleFacebookCallback ¶
func HandleFacebookCallback(w http.ResponseWriter, r *http.Request)
func HandleFacebookLogin ¶
func HandleFacebookLogin(w http.ResponseWriter, r *http.Request)
func HandleGHCallback ¶
func HandleGHCallback(w http.ResponseWriter, r *http.Request)
func HandleGHLogin ¶
func HandleGHLogin(w http.ResponseWriter, r *http.Request)
func HandleGoogleCallback ¶
func HandleGoogleCallback(w http.ResponseWriter, r *http.Request)
func HandleGoogleLogin ¶
func HandleGoogleLogin(w http.ResponseWriter, r *http.Request)
Types ¶
type GithubUser ¶
type GithubUser struct { Login string `json:"login"` NodeID string `json:"node_id"` GHName string `json:"name"` Email string `json:"email"` }
func GetOauthUser ¶
func GetOauthUser(ctx context.Context, accessToken string) (*GithubUser, error)
func GetUserInfoGH ¶
func GetUserInfoGH(state string, code string) (*GithubUser, error)
type GoogleUser ¶
Click to show internal directories.
Click to hide internal directories.