Configure Office 365 AD FS SSO for External Users
Question details
An organization needs to enable Office 365 single sign-on for users connecting from outside its network.

- Product
- Microsoft Office 365 and Active Directory Federation Services (AD FS)
- Device & OS
- not provided
- Scenario
- External users need to authenticate to a federated Office 365 environment over the Internet, with or without a VPN.
- Observed behavior
- External authentication requests need a secure path to the internal AD FS federation service.
Confirm that the Office 365 domain is already federated with AD FS, and identify the federation service name and its SSL certificate. Check that you can manage public DNS, firewall rules, and a separate server for Web Application Proxy.
Publish AD FS through a separate Web Application Proxy server
Use Web Application Proxy to accept Internet authentication requests without exposing the internal AD FS server directly.
Web Application Proxy acts as the AD FS proxy and forwards authentication requests to the internal federation service. External users do not need a VPN when this design is configured and reachable.
On a separate server, use Server Manager > Add Roles and Features to install the Remote Access role and the Web Application Proxy role service.
Create a public DNS record for the AD FS federation service name that points to the proxy's public endpoint. Allow inbound HTTPS on TCP 443 to the proxy and HTTPS from the proxy to the internal AD FS service; ensure the proxy resolves the federation service name to the internal AD FS endpoint.
Import an SSL certificate matching the federation service name, including its private key, into the proxy server's Local Computer certificate store.
Open the Web Application Proxy Configuration Wizard from Server Manager, enter the AD FS federation service name and administrator credentials, and select the matching certificate to establish trust with AD FS.
From a device outside the corporate network and disconnected from VPN, open the Microsoft 365 sign-in page and sign in with a federated user account. If sign-in fails, check public DNS, firewall rules, certificate validity, and proxy-to-AD FS connectivity.

Work with Office documents using WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface and support for common Microsoft Office formats, making it easier to move existing documents. It does not configure or repair Office 365 AD FS authentication.

Frequently Asked Questions
Do external users need a VPN to sign in through AD FS?
No. Users can sign in over the Internet when Web Application Proxy is publicly reachable and can communicate with the internal AD FS service.
Can the AD FS federation server also serve as the external proxy?
Use a separate server for Web Application Proxy. This keeps the primary AD FS federation server from being exposed directly to the public Internet.
What DNS record should external users resolve?
Public DNS should resolve the AD FS federation service name to the proxy's public endpoint. The proxy must also resolve that service name to the internal AD FS endpoint.
Which network connection does the proxy need to AD FS?
Allow HTTPS on TCP 443 from Web Application Proxy to the internal AD FS service, and allow external HTTPS traffic to reach the proxy.
Does WPS Office fix Office 365 AD FS sign-in problems?
No. AD FS sign-in requires changes to the Microsoft federation, proxy, DNS, or network configuration. WPS Office is an alternative for working with Office-compatible files.




