auth

package
v0.0.0-...-289f4dd Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoginHandler        = "/auth/login"
	CallbackHandler     = "/auth/callback"
	PublicKeyHandler    = "/auth/public-key"
	RefreshTokenHandler = "/auth/refresh"
	UserInfoHandler     = "/auth/user-info"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService interface {
	LoginHandler(w http.ResponseWriter, r *http.Request)
	CallbackHandler(w http.ResponseWriter, r *http.Request)
	RefreshTokenHandler(w http.ResponseWriter, r *http.Request)
	UserInfoHandler(w http.ResponseWriter, r *http.Request)
}

func NewAuthService

func NewAuthService(router *mux.Router, conf config.Config, userStorage storage.UserStorage, dashboardStorage storage.DashboardStorage, projectStorage storage.ProjectStorage, oauthConfig *oauth2.Config) AuthService

Jump to

Keyboard shortcuts

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