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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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