Hi, I’m integrating a standalone web application with a customer’s Okta instance, using the OIDC authorization code flow, implemented server-side.
I find that when a user is not currently logged-in to Okta, the inital redirect from my website to <customer>.okta.com/oauth2/v1/authorize/ takes them through their login, then prompts for 2FA, as expected, and then redirects to my callbackURL (<mydomain>/auth/callback?code=<code>&state=<state>) with "credentials": "omit" in the header.
When a user is currently logged-in to Okta, the initial redirect from my website to <customer>.okta.com/oauth2/v1/authorize/ authenticates them without user input, and then redirects to my callbackURL (<mydomain>/auth/callback?code=<code>&state=<state>) with "credentials": "include" in the header.
Since I rely on cookie-based sessions, I’m unable to log the user in when the "credentials": "omit" header is present.
Is this difference expected? Should my application be handling these callbacks differently?
Thanks so much.