keyauth

package
v0.0.0-...-716047f Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(service *Service) *Server

func (*Server) HandleTokenVerify

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

func (*Server) RegisterRoutes

func (s *Server) RegisterRoutes(router *chi.Mux)

type Service

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

Service is implementation of keyauth service

func NewService

func NewService(repo serviceRepo) *Service

NewService creates keyauth service

func (*Service) Initialize

func (s *Service) Initialize(ctx context.Context) error

Initialize preset for service

func (*Service) Verify

func (s *Service) Verify(ctx context.Context, token, urlPath, queryString string) (string, error)

Verify JWT(JWS) token and returns user uuid

Jump to

Keyboard shortcuts

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