@Juwon Park Using a single app registration for multiple web apps can indeed cause issues with simultaneous logins due to how session cookies and tokens are managed. Here are a few strategies to address this:
- Single Sign-On (SSO): Ensure that both apps are configured to use Single Sign-On (SSO) with Microsoft Entra ID. This allows users to authenticate once and access both applications without needing to log in again
- Separate App Registrations: Consider creating separate app registrations for App1 and App2. This way, each app will have its own set of tokens and session cookies, preventing conflict.
- Token Sharing: If you prefer to use a single app registration, you might need to implement a mechanism to share tokens between the two applications. This can be complex and requires careful handling of security and token lifetimes
- Custom Authentication Logic: Implement custom authentication logic that can handle multiple sessions for the same user across different applications. This might involve custom middleware or modifications to how tokens are issued and validated