Versions in this module Expand all Collapse all v0 v0.1.1 Jul 29, 2024 v0.1.0 Jul 29, 2024 Changes in this version + var ErrClaimsInvalid = fiber.NewError(fiber.StatusUnauthorized, "claims are invalid") + var ErrInvalidAudiance = fiber.NewError(fiber.StatusUnauthorized, "audience is invalid") + var ErrInvalidAuthHeader = fiber.NewError(fiber.StatusUnauthorized, "Authorization header is invalid") + var ErrInvalidIssuer = fiber.NewError(fiber.StatusUnauthorized, "issuer is invalid") + var ErrInvalidSubject = fiber.NewError(fiber.StatusUnauthorized, "subject is invalid") + var ErrInvalidToken = fiber.NewError(fiber.StatusUnauthorized, "token is invalid") + var ErrNoAuthHeader = fiber.NewError(fiber.StatusUnauthorized, "Authorization header is missing") + func Authenticate(v Validator) openapi3filter.AuthenticationFunc + func GetJWSFromRequest(req *http.Request) (string, error) + func GetJWTFromContext(ctx context.Context) (*authn.AuthClaims, bool) + type RemoteOidcValidator struct + Audience string + IssuerAliases []string + JWKs *keyfunc.JWKS + JwksURI string + MainIssuer string + func NewRemoteOidcValidator(mainIssuer string, issuerAliases []string, audience string) (*RemoteOidcValidator, error) + func (oidc *RemoteOidcValidator) Close() + func (oidc *RemoteOidcValidator) GetConfiguration() (*authn.OidcConfig, error) + func (oidc *RemoteOidcValidator) GetKeys() (*keyfunc.JWKS, error) + func (oidc *RemoteOidcValidator) Validate(req *http.Request) (*authn.AuthClaims, error) + type Validator interface + Validate func(req *http.Request) (*authn.AuthClaims, error)