Overview :
...
2. Google login : User will have google account and they can use same their Google account to login in sunbird.
3. State login : Some state can have their user portal , So that state can do integration and they want to use same account inside sunbird. In that case state need to integrate with sunbird. Once integration is completed their user can be directly logged in using SSO.ticket ref:
...
Existing request | New request |
---|---|
channel | State ID |
userName | External User ID |
firstName | External school (org) ID |
lastName | Name |
phone | Roles |
phone/email |
...
Request key | Mapped |
---|---|
State ID | channel |
External User ID | externalId (identify of user within state system) |
External school (org) ID | org external id |
Name | FirstName |
externalIdProvider (Under which system it's unique. here it's state, so provider will be channel) | |
externalIdType (Type of externalId, example: PAN Card) |
...
Once user is created using SSO , caller can make another api call to assign roles.
URI: /user/v1/role/assign
Code Block | ||||
---|---|---|---|---|
| ||||
{ "request": { "userId": "", "organisationId": "", "roles": [ "CONTENTCREATOR", "CONTENTREVIEWER", "CONTENTCURATION", "FLAGREVIEWER" ] } } |
...