K
Kinde2mo ago
bpdigisub

Automatic SSO Detection and Login

Hi there, I have a Next.JS web app with SSO login as well as email login. Is it possible to get Kinde to automatically detect a SSO login and pass the user in straight away? Thanks very much
3 Replies
Ages - Kinde
Ages - Kinde2mo ago
Hi, could you expand one what user experience you're trying to achieve?
bpdigisub
bpdigisubOP2mo ago
Sure, thanks for your help. I am creating a webapp that will be used predominantly by employees already authenticated by Microsoft Azure SSO in their current web session. Is there a way for Kinde to detect this ongoing session? In doing this it would automatically pass the Login screen where the user has to click "Login with SSO" in order to be authenticated.
Patrick
Patrick3w ago
Hello there, I appreciate your patience, and I want to address your message without further delay. Yes, Kinde provides a way to handle this through home realm discovery, which routes users based on their email domain. https://docs.kinde.com/authenticate/enterprise-connections/about-enterprise-connections/#show-or-hide-the-sso-sign-in-button-on-the-auth-page This means when a user enters their email, they can be automatically routed to their IdP based on the email domain . To set this up: 1. Configure home realm domains in your Microsoft Entra ID connection setup. This speeds up the sign-in process for users of those domains. 2. When home realm domains are configured, the SSO button is hidden by default on the auth screen . 3. Users will be silently authenticated against the relevant IdP based on their email domain
For a seamless experience, you should: 1. Configure home realm discovery in your enterprise auth method 2. This will hide the SSO button by default 3. Users will then be silently authenticated via their IdP when they enter their credentials Note that this feature is specifically for routing and is not related to security or access control.
Kinde docs
Manage enterprise connections
Our developer tools provide everything you need to get started with Kinde.

Did you find this page helpful?