AD FS: federation, security boundaries, and migration decisions
Understand how Active Directory Federation Services issues claims tokens, how Web Application Proxy fits, and what to inventory before retaining or migrating AD FS.
Active Directory Federation Services (AD FS) is a Windows Server federation service that lets an organization authenticate its users and issue signed tokens for trusted web applications or partner organizations. The receiving application validates the token and makes its own authorization decision; successful AD FS sign-in does not grant every app permission. This overview applies to Windows Server 2016–2025 and focuses on existing deployments. Microsoft currently highly recommends migrating to Microsoft Entra ID rather than upgrading AD FS; app compatibility and timing require per-organization assessment.
A federated sign-in
A user visits a relying application.
The application redirects the user to the AD FS federation service.
AD FS authenticates the user against its identity source, reads relevant attributes/groups, and applies claim rules.
AD FS issues and signs a token containing the outgoing claims.
The application validates issuer, signature, audience, protocol and time conditions, then maps claims to app roles/permissions.
A claims provider supplies identities/claims; a relying party consumes them. Federation metadata helps partners configure trust. Claim rules filter, pass through or transform inputs and are stored with AD FS configuration. Release only claims needed by the relying app; an overly broad group or attribute rule can expose data or change authorization.
Network edge and dependencies
A common on-premises topology keeps federation servers inside the corporate network and places Web Application Proxy (WAP) in a perimeter/DMZ. WAP is a reverse proxy and can provide AD FS preauthentication for published apps. Limit published endpoints, firewall paths and admin access. AD FS also depends on writable domain controllers for LDAP claims processing; even if an RODC is present, writable DC connectivity may be required.
Signing certificates establish token trust; service communication certificates protect TLS endpoints. Protect private keys, monitor expiry, plan rollover with relying parties, and validate metadata/key changes on both sides. Microsoft security guidance covers specific older versions; treat its architecture principles separately from version-specific configuration.
Keep or migrate?
For every application, inventory protocol (SAML, WS-Federation, OAuth/OIDC where applicable), identifiers, claim rules, MFA/access policies, custom stores, partner trusts, certificates, endpoints, owner, and rollback plan. Pilot representative apps and verify the target identity provider supports required behavior. Do not assume all apps can migrate in one step or that existing AD FS requires a new dependency.
| Situation | Decision focus |
|---|---|
| New cloud app | Assess Microsoft Entra ID or another managed provider first. |
| Many existing AD FS apps | Build per-app dependency inventory and phase migration with pilots. |
| Legacy AD FS-specific behavior | Validate a replacement with the app owner; retain only with supported software, patching and monitored trust. |
| Sign-in outage | Trace browser → WAP → AD FS → directory/claims → relying app. |
Troubleshooting
User cannot reach sign-in: check public DNS, TLS certificate name/expiry, WAP publication, firewall and health.
Token issued but rejected: compare issuer, audience/identifier, signature key/metadata, time, protocol and reply URL.
Only some users lack access: inspect input attributes, claim-rule output and app role mapping separately.
Outage after a change: review certificate rollover, metadata, claims rules, endpoints and firewall; avoid disabling token validation as a shortcut.
Use least-privilege administration, protect certificates, monitor authentication/configuration changes, and separate authentication from app authorization.
Sources
[Microsoft Learn: AD FS Overview](https://learn.microsoft.com/en-us/windows-server/identity/ad-fs/ad-fs-overview)
[Microsoft Learn: Key AD FS concepts](https://learn.microsoft.com/en-us/windows-server/identity/ad-fs/technical-reference/understanding-key-ad-fs-concepts)
[Microsoft Learn: Claim rules](https://learn.microsoft.com/en-us/windows-server/identity/ad-fs/deployment/configuring-claim-rules)
[Microsoft Learn: AD FS security practices](https://learn.microsoft.com/en-us/windows-server/identity/ad-fs/deployment/best-practices-securing-ad-fs)
[Microsoft Learn: Web Application Proxy](https://learn.microsoft.com/en-us/windows-server/remote/remote-access/web-application-proxy/web-app-proxy-windows-server)