Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Throw on decode certificate errors #899

Closed

Description

JwtTokenExtractor.validateToken

                    // Note that decodeCertificate will return null if the cert could not
                    // be decoded.  This would likely be the case if it were in an unexpected
                    // encoding.  Going to err on the side of ignoring this check.
                    // May want to reconsider this and throw on null cert.
                    X509Certificate cert = decodeCertificate(key.certificateChain.get(0));
                    if (cert != null && !isCertValid(cert)) {
                        throw new JWTVerificationException("Signing certificate is not valid");
                    }

Activity

  1. added
    P0
    discussion
    Area: Authentication
    on Jan 11, 2021
  2. removed
    discussion
    on Jan 13, 2021
  3. changed the title [-]Research null cert handling[/-] [+]Throw on null certificate[/+] on Jan 13, 2021
  4. changed the title [-]Throw on null certificate[/-] [+]Throw on decode certificate errors[/+] on Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area: AuthenticationP0

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions