django-oidc-provider icon indicating copy to clipboard operation
django-oidc-provider copied to clipboard

Generated JWT Token doesn't contains valid fields

Open shashank0495 opened this issue 5 years ago • 1 comments

The library version used django-oidc-provider - 0.7.0 For using this library with IOS App, I have used react-native-app-auth (4.4.0) https://www.npmjs.com/package/react-native-app-auth

{
  "nbf": 1571815642,
  "exp": 1571815942,
  "iss": "",
  "aud": "",
  "nonce": "",
  "iat": ,
  "at_hash": "",
  "sid": "",
  "sub": "",
  "auth_time": ,
  "idp": "local",
  "amr": [
    "pwd"
  ]
These are the fields needed by an IOS app to validate a JWT token.
Kindly let me know if someone knows a fix for this.

shashank0495 avatar Oct 23 '19 13:10 shashank0495

You may be able to generate and add any of the claims that are missing:

https://django-oidc-provider.readthedocs.io/en/latest/sections/settings.html#oidc-idtoken-processing-hook

https://django-oidc-provider.readthedocs.io/en/latest/sections/scopesclaims.html

geoff-va avatar Nov 13 '19 21:11 geoff-va