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

Handle invalid JWT exp field more gracefully

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • oauth2-1.0.3
    • oauth2-jwt
    • Patch

    Description

      Hi,

      Sadly WSO2 create invalid JW tokens with an "exp" field with millisecond resolution. According to the spec the field "exp" should only contain second resolution.

      When JWTReader tries to parse the exp field a ClassCastException will occur, becaue a Long object is returned and not an Integer.

      Attached patch casts to the super class method to cover Long and Integer values correctly.

      What do you think about this patch? Okay to go in?

      Attachments

        Activity

          People

            asanso Antonio Sanso
            meyert Thomas Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: