package
0.9.0-alpha
Repository: https://github.com/denopink/webpa-common.git
Documentation: pkg.go.dev

# Packages

Package key provides a simple API for loading public and private keys from resources.
No description provided by the author

# Functions

NewToken extracts the Authorization from the request and returns the Token that results from parsing that header's value.
ParseAuthorization parses the raw Authorization string and returns a Token.
ParseTokenType returns the TokenType corresponding to a string.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

DefaultJWSParser is the parser implementation that simply delegates to the SermoDigital library's jws.ParseJWT function.
No description provided by the author
No description provided by the author

# Structs

JWSValidator provides validation for JWT tokens encoded as JWS.
JWTValidatorFactory is a configurable factory for *jwt.Validator instances.
MockValidator is a stretchr mock, exposed for use by other packages.
Token is the result of parsing an authorization string.

# Interfaces

JWSParser parses raw Tokens into JWS objects.
Validator describes the behavior of a type which can validate tokens.

# Type aliases

ExactMatchValidator simply matches a token's value (exluding the prefix, such as "Basic"), to a string.
TokenType is a discriminator for the contents of a secure token.
ValidatorFunc is a function type that implements Validator.
Validators is an aggregate Validator.