Versions in this module Expand all Collapse all v1 v1.12.5 Apr 19, 2023 Changes in this version + const FakeAudience + const FakeIssuer + const KeyID + const PermissionsClaim + const PrivateKey + var ErrClaimsInvalid = errors.New("Provided claims do not match expected scopes") + var ErrInvalidAuthHeader = errors.New("Authorization header is malformed") + var ErrNoAuthHeader = errors.New("Authorization header is missing") + func Authenticate(v JWSValidator, ctx context.Context, input *openapi3filter.AuthenticationInput) error + func CheckTokenClaims(expectedClaims []string, t jwt.Token) error + func CreateMiddleware(v JWSValidator) ([]echo.MiddlewareFunc, error) + func GetClaimsFromToken(t jwt.Token) ([]string, error) + func GetJWSFromRequest(req *http.Request) (string, error) + func NewAuthenticator(v JWSValidator) openapi3filter.AuthenticationFunc + func NewServer() *server + type FakeAuthenticator struct + KeySet jwk.Set + PrivateKey *ecdsa.PrivateKey + func NewFakeAuthenticator() (*FakeAuthenticator, error) + func (f *FakeAuthenticator) CreateJWSWithClaims(claims []string) ([]byte, error) + func (f *FakeAuthenticator) SignToken(t jwt.Token) ([]byte, error) + func (f *FakeAuthenticator) ValidateJWS(jwsString string) (jwt.Token, error) + type JWSValidator interface + ValidateJWS func(jws string) (jwt.Token, error)