authservice

package
v0.0.0-...-df0bd0c Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AuthPath      string
	CookieDomains []string
	CookieKey     string
}

type Server

type Server struct {
	Vault         *vaultapi.Client
	Store         sessions.Store
	AuthPath      string
	CookieDomains []string
}

func New

func New(vault *vaultapi.Client, cfg Config) (*Server, error)

func (*Server) FinishLogin

func (s *Server) FinishLogin(w http.ResponseWriter, r *http.Request)

func (*Server) FinishRegistration

func (s *Server) FinishRegistration(w http.ResponseWriter, r *http.Request)

func (*Server) HandleAuthRequest

func (s *Server) HandleAuthRequest(w http.ResponseWriter, r *http.Request)

func (*Server) StartLogin

func (s *Server) StartLogin(w http.ResponseWriter, r *http.Request)

func (*Server) StartRegistration

func (s *Server) StartRegistration(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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