Uploaded image for project: 'Apache Oltu'
  1. Apache Oltu
  2. OLTU-161

JWTClaimsSetParser fails when aud is an array

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • oauth2-1.0.0
    • oauth2-1.0.1
    • oauth2-jwt
    • None

    Description

      JWTClaimsSetParser contains

              if (AUDIENCE.equals(key)) {
                  getBuilder().setClaimsSetAudience(String.valueOf(value));
      

      which leads to something like "aud": "[Ljava.lang.Object;@34657d74" when the audience provided by the server is a JSON array - which is the canonical representation and a single string is only the exception according to http://openid.net/specs/openid-connect-core-1_0.html#IDToken

      Attachments

        1. oltu-161.patch
          17 kB
          Stefan Bodewig

        Activity

          People

            simone.tripodi Simone Tripodi
            bodewig Stefan Bodewig
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: