headers

package
v4.0.0-dev.20 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

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, errors.EdgeX)

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 logger.LoggingClient) (any, errors.EdgeX)

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) errors.EdgeX

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