auth

package
v0.0.0-...-3ec4966 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const SESSION_STORE_KEY = "__sess"

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubOAuth2Handler

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

func NewGithubOAuth2Handler

func NewGithubOAuth2Handler(
	r *mux.Router,
	userRepo domain.UserRepository,
	authCache domain.AuthCache,
	clientSecret string,
	clientID string,
	sessionKey string,
	admin string,
	isPrivate bool,
	apiPath string,
	prefix string,
) *GithubOAuth2Handler

func (*GithubOAuth2Handler) CallbackHandler

func (o *GithubOAuth2Handler) CallbackHandler(w http.ResponseWriter, r *http.Request)

func (*GithubOAuth2Handler) CredentialsHandler

func (o *GithubOAuth2Handler) CredentialsHandler(w http.ResponseWriter, r *http.Request)

func (*GithubOAuth2Handler) LoginHandler

func (o *GithubOAuth2Handler) LoginHandler(w http.ResponseWriter, r *http.Request)

func (*GithubOAuth2Handler) LogoutHandler

func (o *GithubOAuth2Handler) LogoutHandler(w http.ResponseWriter, r *http.Request)

func (*GithubOAuth2Handler) Middleware

func (o *GithubOAuth2Handler) Middleware(h http.Handler) http.Handler

Jump to

Keyboard shortcuts

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