Documentation
¶
Index ¶
- func GetVerificationKey(dic *di.Container, issuer, alg string, ctx context.Context) (any, errors.EdgeX)
- func ParseJWT(token string, verifyKey any, claims jwt.Claims, ...) error
- func ProcessVerificationKey(keyString string, alg string, lc logger.LoggingClient) (any, errors.EdgeX)
- func VerifyJWT(token string, issuer string, alg string, dic *di.Container, ...) errors.EdgeX
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.