externaljwt

package
v0.0.0-...-bea0022 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DependencySet = wire.NewSet(
	wire.Struct(new(Service), "*"),
)
View Source
var ErrExternalJWTFailedToFetchJWKs = apierrors.InternalError.WithReason("ExternalJWTFailedToFetchJWKs").SkipLoggingToExternalService()
View Source
var ErrExternalJWTInvalidClaim = apierrors.BadRequest.WithReason("ExternalJWTInvalidClaim")
View Source
var ErrExternalJWTInvalidJWT = apierrors.BadRequest.WithReason("ExternalJWTInvalidJWT")

Functions

This section is empty.

Types

type LoginIDResult

type LoginIDResult struct {
	Spec       *identity.Spec
	IsVerified bool
}

type Service

type Service struct {
	ExternalJWTConfig *config.ExternalJWTConfig
	JWKSCache         *jwk.Cache
	Clock             clock.Clock
}

func (*Service) ConstructLoginIDSpec

func (s *Service) ConstructLoginIDSpec(
	identification model.AuthenticationFlowIdentification,
	token jwt.Token,
) (*LoginIDResult, error)

func (*Service) VerifyExternalJWT

func (s *Service) VerifyExternalJWT(ctx context.Context, rawToken string) (jwt.Token, error)

Jump to

Keyboard shortcuts

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