Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OauthRedirector ¶
Types ¶
type BaseOAuth2 ¶
type BaseOAuth2 struct {
ClientId string
ClientSecret string
CallbackURL string
HandleUser HandleUserFunc
// contains filtered or unexported fields
}
func NewBaseOAuth2 ¶
func NewBaseOAuth2(clientId string, clientSecret string, callbackUrl string) *BaseOAuth2
type GithubOAuth2 ¶
type GithubOAuth2 struct {
*BaseOAuth2
}
func NewGithubOAuth2 ¶
func NewGithubOAuth2(clientId string, clientSecret string, callbackUrl string, handleUser HandleUserFunc) *GithubOAuth2
type GoogleOAuth2 ¶
type GoogleOAuth2 struct {
*BaseOAuth2
}
func NewGoogleOAuth2 ¶
func NewGoogleOAuth2(clientId string, clientSecret string, callbackUrl string, handleUser HandleUserFunc) *GoogleOAuth2
Click to show internal directories.
Click to hide internal directories.