Home Realm Discovery
Home Realm Discovery is the step where a system figures out which identity provider should handle a user's sign-in before that sign-in actually happens. In practice, when a user arrives at a login page connected to multiple organizations or identity sources, HRD routes them to the correct one. This is common in federated and business-to-business setups where different users belong to different identity providers.
Home Realm Discovery (HRD) is the pre-authentication process of determining which identity provider (IdP), or which configured connection, is responsible for authenticating a given user. It occurs during the identification phase of an access flow, before the authentication step itself: the relying party or authorization server resolves the user's home realm (for example by email domain, an explicit selector, or configured policy) and then delegates authentication to the matched IdP. HRD is a routing and selection concern, not an authentication mechanism; it does not verify the user's identity, and it is distinct from the subsequent authorization decision. Implementation details vary by vendor and deployment. Some platforms (such as Microsoft Entra ID) express HRD behavior through configurable policies, while others (such as Auth0 and Kinde) map users to specific enterprise connections. The exact matching logic and available discovery methods depend on the specific product configuration.
Why it matters
Home Realm Discovery is the routing decision that makes federated and business-to-business single sign-on usable at scale. When a single login surface serves users who belong to many different organizations or identity sources, something has to determine which identity provider should handle each sign-in before authentication begins. HRD is that step. Get it right and users are transparently sent to their own IdP; get it wrong and a user can be routed to the wrong connection, which typically results in a failed or confusing sign-in experience.
Because HRD operates during the identification phase, before any credentials are verified, misconfiguration tends to surface as routing failures rather than as authentication compromises. Evidence from the Auth0 community illustrates this failure mode: a deployment that fell back to a database connection instead of the intended enterprise connection was described as having failed home realm discovery. This distinction matters for troubleshooting, because an operator who conflates HRD with authentication may look for credential problems when the real issue is which IdP the user was sent to.
HRD behavior is expressed differently across platforms, so teams operating multi-tenant or B2B environments need to understand their specific product's model. Microsoft Entra ID exposes HRD as configurable policy, while Auth0 and Kinde map users to specific enterprise connections. The matching logic and available discovery methods depend on the product and its configuration, which makes HRD a deployment-specific concern that must be validated per environment rather than assumed.
Who it's relevant to
Inside HRD
Common questions
Answers to the questions practitioners most commonly ask about HRD.
