auth

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer added in v0.2.0

func StartServer(ctx context.Context, config *config.Config) error

Types

type Server

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

func NewServer

func NewServer(config config.Auth, cache cache.Cache) (*Server, error)

func (*Server) CheckSessionToken added in v0.2.0

func (s *Server) CheckSessionToken(req *api.SessionTokenRequest) (*api.SessionTokenResponse, error)

func (*Server) GetPublicKey

func (s *Server) GetPublicKey() key.PublicKey

func (*Server) RegisterRoutes

func (s *Server) RegisterRoutes(e *echo.Echo, enableEndpoints bool)

func (*Server) RegisterSession

func (s *Server) RegisterSession(req *api.RegisterSessionRequest) (*api.SessionTokenResponse, error)

type SessionRegistry added in v0.2.0

type SessionRegistry interface {
	GetPublicKey() key.PublicKey
	RegisterSession(request *api.RegisterSessionRequest) (*api.SessionTokenResponse, error)
	CheckSessionToken(request *api.SessionTokenRequest) (*api.SessionTokenResponse, error)
}

func NewRemoteSessionRegistry added in v0.3.0

func NewRemoteSessionRegistry(config config.Auth) (SessionRegistry, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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