Introduction:
Background:
J
Problem Statement:
Key design problems:
Existing workflow:
User login in to his account and starts using application.
Parent’s token will be used for managed-use as well.
Change request: As part of https://project-sunbird.atlassian.net/browse/SH-68 user should be able to switch and create profiles.
Below is data store in session
Solution 1:
user/search API to be intercepted at portal backend.
A. portal backedn to save token into current user’s session.
B. Only user related information is send to front end.User initiated switch.
A.Portal backed maps the saved data of switched user.
B.Deletes other user dataSave JWT token in session for furthur use
Add headers for all required API and send token
Pros:
Cons:
Solution 2:
Pros:
Cons: