AppAuth-iOS icon indicating copy to clipboard operation
AppAuth-iOS copied to clipboard

IssuedAt expected datatype mismatch

Open rajeshaz09 opened this issue 3 years ago • 1 comments

I am getting error message ID Token parsing failed. Up on investigate, OIDCToken._issuedAt is nil.

There is an issue with OIDCFieldMapping. ExpectedType is NSDate but actual datatype is NSMutableString

Environment

  • Device: [ iPhone 13 Simulator ]
  • OS: [ iOS 15.5 ]
  • Browser: [ Safari ]
  • XCode: [ 13.4.1]
  • Mac: [12.4, M1 Pro - ARM]

rajeshaz09 avatar Jul 01 '22 03:07 rajeshaz09

Further investigation Some of the claims in JWT are strings and some are numbers.

Note: I removed other claims except claims that contain timestamp.

{ "nbf": 1656649887, "exp": 1656650187, "iat": "1656649887", "auth_time": "1656641395" }

Is it problem with Identity Provider or is it problem with this library to handle this scenario as well?

rajeshaz09 avatar Jul 01 '22 04:07 rajeshaz09

Issue with serialisation.

rajeshaz09 avatar Dec 02 '22 15:12 rajeshaz09