provider

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package provider composes statically linked authentication implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Default      xauth.Authenticator
	JWTValidator *verifier.Config
	JWTSigner    *signer.Config
	Cognito      *cognito.Config
	Firebase     *firebase.Config
}

Config is trusted host configuration. Product database access is deliberately absent: the default authenticator is supplied by the application and invokes generated Datly readers and writers.

type Service

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

Service is the immutable provider bound to custom handlers.

func New

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

New constructs every configured implementation before the application is allowed to serve. Missing default/JWT services fail closed.

func (*Service) Authenticator

func (s *Service) Authenticator(vendor xauth.Vendor) (xauth.Authenticator, error)

func (*Service) Signer

func (s *Service) Signer() *signer.Service

func (*Service) Verifier

func (s *Service) Verifier() *verifier.Service

Jump to

Keyboard shortcuts

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