auth

package
v1.0.0-20250401 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL