Versions in this module Expand all Collapse all v1 v1.0.33 Jul 30, 2024 v1.0.32 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) (*oas.AuthClaims, bool) + type RemoteOidcOpt func(*RemoteOidcOpts) + func WithAudience(audience string) RemoteOidcOpt + func WithClient(client *http.Client) RemoteOidcOpt + func WithIssuerAliases(issuerAliases []string) RemoteOidcOpt + func WithMainIssuer(mainIssuer string) RemoteOidcOpt + type RemoteOidcOpts struct + Audience string + Client *http.Client + IssuerAliases []string + MainIssuer string + func DefaultRemoteOidcOpts() *RemoteOidcOpts + func (o *RemoteOidcOpts) Configure(opts ...RemoteOidcOpt) + type RemoteOidcValidator struct + JWKs *keyfunc.JWKS + JwksURI string + Opts *RemoteOidcOpts + func NewRemoteOidcValidatorWithContext(ctx context.Context, opts ...RemoteOidcOpt) (*RemoteOidcValidator, error) + func (oidc *RemoteOidcValidator) Close() + func (oidc *RemoteOidcValidator) GetConfiguration(ctx context.Context) (*oas.OidcConfig, error) + func (oidc *RemoteOidcValidator) GetKeys() (*keyfunc.JWKS, error) + func (oidc *RemoteOidcValidator) Validate(req *http.Request) (*oas.AuthClaims, error) + type Validator interface + Validate func(req *http.Request) (*oas.AuthClaims, error)