Lesson 2 of 4 Authentication Solutions

Choosing a Hybrid Sign-In Method

This lesson compares password hash synchronization, pass-through authentication and federation.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain how each hybrid sign-in method validates a password.
  • Compare their on-premises dependencies.
  • Choose a sign-in method from stated requirements.

Separating synchronization from sign-in

Two distinct questions are frequently merged. Synchronization decides how user objects reach Microsoft Entra ID. The sign-in method decides where the password is checked. Choosing a synchronization tool does not determine the sign-in method, so a design must make both decisions. This topic concerns sign-in; the next module covers synchronization.

Password hash synchronization

With password hash synchronization (PHS), a hash derived from the on-premises password hash is synchronized to Microsoft Entra ID, and Microsoft Entra ID validates the password itself. Microsoft describes it as the simplest way to enable authentication for on-premises directory objects. The plaintext password is never sent, and what is stored is a salted, repeatedly hashed value derived from the on-premises hash.

Because the cloud validates the password, sign-in continues when the on-premises network or AD DS is unavailable, a significant resilience benefit. PHS also enables leaked credential detection in Microsoft Entra ID Protection. Microsoft recommends enabling PHS whichever sign-in method is used, even as a backup, and ID Protection requires it to detect leaked credentials.

Pass-through authentication

With pass-through authentication (PTA), Microsoft Entra ID receives the password and queues it, encrypted, for a lightweight agent installed on-premises. The agent validates the password directly against AD DS and returns the result. No password hash is stored in the cloud, which may satisfy a policy that forbids this, and on-premises account states such as restricted logon hours are enforced at sign-in.

The trade-off is dependence on on-premises infrastructure. If all agents or the domain controllers become unreachable, users cannot sign in, unless PHS has also been enabled as a fallback. Microsoft recommends at least three agents for high availability. PTA needs only outbound connections from the agents, so no inbound firewall ports are required.

Scenario questions

Living with pass-through authentication

Exam skills 1.2.1

Apply the strengths and dependencies of pass-through authentication.

Log in to try this activity Interactive activities are free with an account.

Federation

With federation, Microsoft Entra ID hands off authentication to a separate trusted system, usually Active Directory Federation Services (AD FS). The user signs in at the federation service, which issues a token that Microsoft Entra ID trusts. Federation is the most complex option, needing a farm of servers and web application proxies, with an internet-facing surface to maintain.

Most organizations choose federation only because of an existing investment or a requirement the cloud cannot meet, such as a third-party multifactor product integrated with the federation service, or sign-in with smart cards that depends on on-premises logic. Microsoft's strategic direction is to move application authentication away from AD FS and into Microsoft Entra ID, because cloud authentication reduces infrastructure and the exposure that comes with it.

Seamless single sign-on

Microsoft Entra seamless single sign-on (seamless SSO) signs users in automatically when they use a domain-joined device on the corporate network, so they do not type a password at all. It works with password hash synchronization and pass-through authentication, but not with federation, because a federation service already provides its own single sign-on. It needs no extra on-premises components, it is enabled through Microsoft Entra Connect, and it needs no paid licence. The feature is opportunistic: if it fails, the user simply sees the normal sign-in page.

For Windows 10 and later, Microsoft recommends single sign-on through the Primary Refresh Token (PRT), which Microsoft Entra joined and Microsoft Entra hybrid joined devices obtain at Windows sign-in. Seamless SSO matters mainly for older Windows versions and for domain-joined devices that are not registered with Microsoft Entra ID. A scenario that asks for single sign-on with cloud authentication on such devices therefore points to PHS or PTA with seamless SSO, and not to federation.

Choosing a method

The decision usually follows a simple order: use cloud authentication unless a requirement prevents it, prefer PHS as the default, use PTA when policy prohibits password hashes in the cloud or demands enforcement of on-premises account states at sign-in, and use federation only when a capability requires it. The following comparison recaps the differences.

Password hash sync
Where the password is validatedMicrosoft Entra ID
On-premises dependency at sign-inNone
Infrastructure to runSynchronization only
Leaked credential detectionYes
Choose when The default for most organizations
Pass-through authentication
Where the password is validatedOn-premises AD DS, through agents
On-premises dependency at sign-inAgents and domain controllers
Infrastructure to runSynchronization plus three agents
Leaked credential detectionOnly with PHS enabled
Choose when Hashes must not leave the premises
Federation
Where the password is validatedFederation service
On-premises dependency at sign-inFederation farm and domain controllers
Infrastructure to runServers, proxies and certificates
Leaked credential detectionOnly with PHS enabled
Choose when A required capability exists only in the federation service

The following diagram compares the three hybrid sign-in methods for an organization whose single datacenter may fail.

Choosing a hybrid sign-in method when the single datacenter may fail. Password hash synchronization validates in the cloud, so Microsoft 365 keeps working without the datacenter, it adds no sign-in infrastructure, and it lets ID Protection detect leaked credentials. Pass-through authentication and federation both depend on on-premises servers.
The scenario is illustrative.
Sort into groups

PHS, PTA or federation?

Exam skills 1.2.1

Choose the hybrid sign-in method each requirement points to.

Log in to try this activity Interactive activities are free with an account.
Worked example

Choosing a sign-in method

A manufacturer has AD DS in a single datacenter. Users must be able to reach Microsoft 365 if the datacenter fails. There is no third-party authentication requirement, and the team wishes to minimize infrastructure. Security staff want alerts when user credentials appear in public leaks. Which sign-in method should you recommend?

Password hash synchronization meets all of the requirements. Cloud validation removes dependence on the datacenter, it adds no sign-in infrastructure, and it allows ID Protection to detect leaked credentials, assuming the required P2 licences.

Pass-through authentication fails the first requirement unless hashes are also synchronized, because agents in the failed datacenter cannot validate passwords. Federation introduces the most infrastructure and has the same dependence. Since there is no requirement for either, neither is justified.

Check yourself

Why does Microsoft recommend enabling password hash synchronization even when using federation?

Show answer

It provides a fallback if the federation service fails, and it enables leaked credential detection.

Exam Tips

Remember for the exam

  • Synchronization and sign-in method are separate decisions.
  • PHS is the default: simplest, no on-premises dependency at sign-in, and supports leaked credential detection.
  • PTA checks passwords on-premises through at least three agents.
  • Federation is for a capability that cloud authentication cannot provide.
  • Enable PHS even with PTA or federation, as a backup.