...
Code Block | ||
---|---|---|
| ||
{ "issaud": "mykeyhttps://demo.sunbirded.org/auth/realms/sunbird", "audsub": "project-sunbird-stage-clientf:979738b7-253c-4adf-9673-a857eeb86115:fca2925f-1eee-4654-9177-fece3fd6afc9", "subroles": [ { "role": "7e726898-0635-44cf-81ff-3b3a889c8dbaBOOK_CREATOR", "typ "scope": [ { "organisationId": "Bearer",01269878797503692810" } ] }, { "exprole": 1622744532"CONTENT_CREATOR", "iatscope": 1622658132,[ { "rolesorganisationId": ["01269878797503692810" } ] }, { "role": "CONTENT_REVIEWER", "scope": [ { "orgIdorganisationId": "01269878797503692810" } ] }, { "role": "COURSE_CREATOR" MENTOR", "scope": [ }, { "scopeorganisationId": [ "01269878797503692810" } ] { }, { "orgIdrole": "ORGPROGRAM_001DESIGNER", "scope": [ }, { "orgIdorganisationId": "ORG_0020130107621805015068" } ] } ], "iss": "https://demo.sunbirded.org/auth/realms/sunbird", "roletyp": "BOOK_CREATORBearer", "exp": 1637906533, } "iat": ]1637820134 } |
Parser code (work in progress) - https://github.com/keshavprasadms/rego-go-parser
Addminutils will invoke the get user roles API and append the roles and orgs information to JWT token, sign it and then issue it to the user
...