Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Okta Angular can't create a new session when in incognito mode #18

Open
ghost opened this issue Jan 15, 2021 · 5 comments
Open

Okta Angular can't create a new session when in incognito mode #18

ghost opened this issue Jan 15, 2021 · 5 comments

Comments

@ghost
Copy link

ghost commented Jan 15, 2021

Everything works normally but I can't create SSO session when using incognito mode. Can anyone tell me why and how could I solve it?

I'm using the latest version of okta-angular and okta-signin-widget

@oleksandrpravosudko-okta
Copy link
Contributor

oleksandrpravosudko-okta commented Jan 15, 2021

Thanks for reaching out @thuannh1027

A small clarification - are you having multiple apps under the same domain which fail to provide SSO experience when running incognito? (i.e. what are the symptoms of SSO session not being created).

@aarongranick-okta
Copy link
Contributor

@thuannh1027 A couple questions

  • what OS / browser are you using?
  • are you able to login directly at your org's Okta url?

@ghost
Copy link
Author

ghost commented Jan 15, 2021

Thanks for reaching out @thuannh1027

A small clarification - are you having multiple apps under the same domain which fail to provide SSO experience when running incognito? (i.e. what are the symptoms of SSO session not being created).

I have a Salesforce app and an Angular app. Both are using Okta as an identity provider. Without incognito mode, after login successfully, I could use /session/me to check the session and also redirect to Salesforce app by embedded link.

However, in incognito mode, when trying hit /session/me, it returns 404 and I cant redirect to Salesforce app. I did receive tokens from Okta but not sessionToken

@oleksandrpravosudko-okta
Copy link
Contributor

Thanks for the details.

This might be happening b/c of cookie policy setting:
Screenshot 2021-01-18 at 10 38 02

If that is the case, session cookie 'sid' is not set for Okta tenant domain (see KB post for similar issue in IE11).

@shuowu
Copy link
Contributor

shuowu commented Jun 16, 2021

@thuannh1027 Does @oleksandrpravosudko-okta 's comment help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants