verifier

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RSA     *scy.Resource
	HMAC    *scy.Resource
	CertURL string
}

type Service

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

func New

func New(config *Config) *Service

func (*Service) Init

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

func (*Service) ValidaToken added in v0.3.2

func (s *Service) ValidaToken(ctx context.Context, tokenString string) (*jwt.Token, error)

func (*Service) Validate

func (s *Service) Validate(ctx context.Context, tokenString string) (*jwt.Token, error)

Validate checks if jwt token is valid

func (*Service) VerifyClaims added in v0.2.0

func (s *Service) VerifyClaims(ctx context.Context, tokenString string) (*sjwt.Claims, error)

Jump to

Keyboard shortcuts

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