Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubAuth ¶
type GitHubAuth struct {
// contains filtered or unexported fields
}
func NewGitHubAuth ¶
func NewGitHubAuth(clientID, clientSecret, redirectURL string, userService *user.UserService, refreshTokenService *token.RefreshTokenService, nannyEncryptionKey, jwtSecret, frontEndHost string) *GitHubAuth
creating a new OAuth App at https://github.com/settings/applications/new The "Authorization callback URL" you set there must match the redirect URL you use in your code. For local testing, something like "http://localhost:8080/github/callback" is typical.
func (*GitHubAuth) HandleGitHubCallback ¶
func (g *GitHubAuth) HandleGitHubCallback() http.HandlerFunc
func (*GitHubAuth) HandleGitHubLogin ¶
func (g *GitHubAuth) HandleGitHubLogin() http.HandlerFunc
func (*GitHubAuth) HandleGitHubProfile ¶
func (g *GitHubAuth) HandleGitHubProfile() http.HandlerFunc
Click to show internal directories.
Click to hide internal directories.