Documentation ¶
Index ¶
- Constants
- func FacebookCallback(w http.ResponseWriter, r *http.Request)
- func FacebookLogin(w http.ResponseWriter, r *http.Request)
- func GetUserName(r *http.Request) string
- func GitHubCallback(w http.ResponseWriter, r *http.Request)
- func GitHubLogin(w http.ResponseWriter, r *http.Request)
- func GoogleCallback(w http.ResponseWriter, r *http.Request)
- func GoogleLogin(w http.ResponseWriter, r *http.Request)
- func Logout(w http.ResponseWriter, r *http.Request)
Constants ¶
View Source
const (
CLIENT_SECRET_FACEBOOK_FILENAME = "facebook_client_secret.json"
)
View Source
const (
CLIENT_SECRET_GITHUB_FILENAME = "github_client_secret.json"
)
View Source
const (
CLIENT_SECRET_GOOGLE_FILENAME = "google_client_secret.json"
)
View Source
const (
OAUTH_COOKIE = "oauth2_cookie"
)
Variables ¶
This section is empty.
Functions ¶
func FacebookCallback ¶
func FacebookCallback(w http.ResponseWriter, r *http.Request)
func FacebookLogin ¶
func FacebookLogin(w http.ResponseWriter, r *http.Request)
func GetUserName ¶
func GitHubCallback ¶
func GitHubCallback(w http.ResponseWriter, r *http.Request)
func GitHubLogin ¶
func GitHubLogin(w http.ResponseWriter, r *http.Request)
func GoogleCallback ¶
func GoogleCallback(w http.ResponseWriter, r *http.Request)
func GoogleLogin ¶
func GoogleLogin(w http.ResponseWriter, r *http.Request)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.