Next.js Discord

Discord Forum

Next-Auth seamless SSO from another non-next-auth application

Unanswered
Oak rough bulletgall wasp posted this in #help-forum
Open in Discord
Avatar
Oak rough bulletgall waspOP
We have two applications which are both protected via Azure AD B2C single-tenant.

App 1: .NET MVC aspx application
App 2: Next.JS 14 app router protected by next-auth using the same tenant as App 1.

Currently it is setup to where we can sign in to App 2 and navigate to app 1 without needing to authenticate through B2C again. However, we cannot do the reverse because of the next-auth session being null and the user has to authenticate through B2C to get into app 2 evern though they've already authenticated into app 1. Has anyone figured out a way to make this happen?

0 Replies