auth

package
v0.0.0-...-032a842 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOAuthConfig

func NewOAuthConfig() *oauth2.Config

func RegisterRoutes

func RegisterRoutes(server *gin.Engine)

Types

type AuthHandler

type AuthHandler struct {
	// contains filtered or unexported fields
}

func NewAuthHandler

func NewAuthHandler(oauthConf *oauth2.Config) *AuthHandler

func (*AuthHandler) GitHubCallback

func (h *AuthHandler) GitHubCallback(ginContext *gin.Context)

func (*AuthHandler) GitHubLogin

func (h *AuthHandler) GitHubLogin(ginContext *gin.Context)

type GithubUser

type GithubUser struct {
	ID        int64  `json:"id"`
	Login     string `json:"login"`
	Email     string `json:"email"`
	AvatarURL string `json:"avatar_url"`
}

Jump to

Keyboard shortcuts

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