auth

package
v0.0.0-...-9a4c10b Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package auth represent the encore application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service represents the encore service application.

func NewService

func NewService(log *logger.Logger, db *sqlx.DB, ath *auth.Auth) (*Service, error)

NewService is called to create a new encore Service.

func (*Service) AuthHandler

func (s *Service) AuthHandler(ctx context.Context, ap *authParams) (eauth.UID, *auth.Claims, error)

func (*Service) Authorize

func (s *Service) Authorize(ctx context.Context, authInfo mid.AuthInfo) error

func (*Service) Shutdown

func (s *Service) Shutdown(force context.Context)

Shutdown implements a function that will be called by encore when the service is signaled to shutdown.

func (*Service) UserToken

func (s *Service) UserToken(ctx context.Context, kid string) (token, error)

Jump to

Keyboard shortcuts

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