I am having difficulty understanding Hybrid flow with mobile application. I am using code id_token Hybrid flow provided by Identity Server 4 in .Net.
All mobile request will go to backend server and backend server will forward request to different APIs on user behalf.
When user first time login
- He will be redirected to identity server
- A mobile web view will be opened
- User will sign in using credentials
- identity server will send Id Token and Access Code to Back end Server
- Back end Server will swap Access code for Id Token and Access Token
What token will be returned to mobile application to provide that user is valid. And is it responsibility of Back end server to get new access token without prompting user to re login until user sign out?
Is there any step wrong in above scenario ?