I have some questions for the following flow involving OAuth2:
webapp1.xyz.com is a registered client with authorization code grant type, here's the current flow:
- User logged in and redirected with authorization code to webapp1.xyz.com
- webapp1.xyz.com exchange authorization code for access token and store it to session
- webapp1.xyz.com server side needs to make calls to webapp2.xyz.com api by passing on access token
- webapp1.xyz.com has SPA where ajax calls webapp1.xyz.com api end point (passing on session cookies in request)
- User logged out, session is destroyed
There is a suggestion from someone to make the ajax call using (implicit grant) access token instead of session cookies. Is that even possible mixing authorization code and implicit grant type? Maybe I am mixing something, I cannot see any reason why using implicit grant type for the ajax part.