headers

package
v2.0.33 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 14 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVerificationKey

func GetVerificationKey(dic *di.Container, issuer, alg string, ctx context.Context) (any, error)

GetVerificationKey returns the verification key obtained from local cache or security-proxy-auth http client

func ParseJWT

func ParseJWT(token string, verifyKey any, claims jwt.Claims, parserOption ...jwt.ParserOption) error

ParseJWT parses and validates the JWT with the passed ParserOptions and returns the token which implements the Claim interface

func ProcessVerificationKey

func ProcessVerificationKey(keyString string, alg string, lc log.Logger) (any, error)

ProcessVerificationKey handles the verification key retrieved from security-proxy-auth and returns the public key in the appropriate format according to the JWT signing algorithm

func VerifyJWT

func VerifyJWT(token string,
	issuer string,
	alg string,
	dic *di.Container,
	ctx context.Context) error

VerifyJWT validates the JWT issued by security-proxy-auth by using the verification key provided by the security-proxy-auth service

Types

This section is empty.

Jump to

Keyboard shortcuts

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