package
0.0.0-20240427082113-981113020dcf
Repository: https://github.com/willie68/go-micro.git
Documentation: pkg.go.dev

# Functions

Authenticator returns a handler for authentication.
DecodeJWT simple decode the jwt token string.
FromContext extract the JWT and a flatten claim structure from a context.
InitJWT initialise the JWT for this service.
NewContext creating a new context for the http functions.
ParseJWTConfig building up the dynamical configuration for this.
TokenFromCookie tries to retrieve the token string from a cookie named "jwt".
TokenFromHeader tries to retrieve the token string from the "Authorization" request header: "Authorization: BEARER T".
TokenFromQuery tries to retrieve the token string from the "jwt" URI query parameter.
Verifier returns a handler for verification.
Verify checking a request.
VerifyRequest this request -> authorization.
VerifyToken verify the bearer token.

# Variables

defining some common errors.
defining some common errors.
defining some common errors.
defining some common errors.
defining some common errors.
used context key for parameter given in a std context.
defining some common errors.
JWTConfig for the service.
used context key for parameter given in a std context.

# Structs

JWT struct for the decoded jwt token.
JWTAuth the jwt authentication struct.
JWTAuthConfig authentication/Authorisation configuration for JWT authentification.