auth

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTValidator

type JWTValidator struct {
	JWKS jwk.Set
	// contains filtered or unexported fields
}

func NewJWTValidator

func NewJWTValidator(issuer string, audience string, jwkUrl string) *JWTValidator

func (JWTValidator) ValidateToken

func (v JWTValidator) ValidateToken(tokenString string) (map[string]interface{}, error)

type TokenValidator

type TokenValidator interface {
	ValidateToken(tokenString string) (map[string]interface{}, error)
}

func GetTokenValidator

func GetTokenValidator(conf config.AuthConfig) (TokenValidator, error)

Jump to

Keyboard shortcuts

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