authHandler

package
v0.0.0-...-d9f87ad Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandler

type AuthHandler struct {
	EdPublicKey crypto.PublicKey
	// contains filtered or unexported fields
}

func New

func (*AuthHandler) ParseJWT

func (ah *AuthHandler) ParseJWT(token string) (*jwt.Token, jwt.MapClaims, error)

type AuthHandlerConfig

type AuthHandlerConfig struct {
	EdDSAPublicKeyFile string `json:"eddsa_public_key_file" env:"CONTENT_SERVICE_AUTH_EDDSA_PUBLIC_KEY_FILE"`
}

func NewConfig

func NewConfig() *AuthHandlerConfig

func (*AuthHandlerConfig) FromEnv

func (c *AuthHandlerConfig) FromEnv() error

Jump to

Keyboard shortcuts

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