jwt

package
v0.0.0-test Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceName = "AuthService"

Variables

View Source
var ErrFailedToParsePemFile = errors.New("failed to parse pem-encoded file")
View Source
var ErrJWTSetURLMustHaveHTTPSScheme = errors.New("jwt_set_url must have https scheme")
View Source
var ErrKeySetConfigurationAmbiguous = errors.New("key set configuration is ambiguous: you should set either key_file, jwk_set_file or jwk_set_url")
View Source
var ErrKeySetIsNotConfigured = errors.New("key set for jwt verification is not configured")

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	Cfg         *setting.Cfg
	RemoteCache *remotecache.RemoteCache
	// contains filtered or unexported fields
}

func ProvideService

func ProvideService(cfg *setting.Cfg, remoteCache *remotecache.RemoteCache) (*AuthService, error)

func (*AuthService) Verify

func (s *AuthService) Verify(ctx context.Context, strToken string) (models.JWTClaims, error)

Jump to

Keyboard shortcuts

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