You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having some difficulty understanding how to implement cross-application-sign-in (that's probably not the right term) of Okta SSO.
What I mean is; I use Okta for other applications too and if I signed into Okta previously and then land on the target application where I want to apply this flow I would like to sign in the user directly instead of asking him to Sign In using the Okta widget.
Is it feasible? Here's the code that currently handles authentication in my application and it works out of the box. However, it redirects me to the sign in page if I come from another application governed by the Okta authentication.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Node.js
v20.11.1
next: 14.1.3
next-auth: 5.0.0-beta.19
Hi,
I'm having some difficulty understanding how to implement cross-application-sign-in (that's probably not the right term) of Okta SSO.
What I mean is; I use Okta for other applications too and if I signed into Okta previously and then land on the target application where I want to apply this flow I would like to sign in the user directly instead of asking him to Sign In using the Okta widget.
Is it feasible? Here's the code that currently handles authentication in my application and it works out of the box. However, it redirects me to the sign in page if I come from another application governed by the Okta authentication.
auth.ts
middleware.ts
Beta Was this translation helpful? Give feedback.
All reactions