django-oidc-provider
django-oidc-provider copied to clipboard
Generated JWT Token doesn't contains valid fields
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.
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