Generated JWT Token doesn't contains valid fields
shashank0495 opened this issue · 1 comments
shashank0495 commented
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.
geoff-va commented
You may be able to generate and add any of the claims that are missing:
https://django-oidc-provider.readthedocs.io/en/latest/sections/scopesclaims.html