Configure WS-Federation for Office 365

There are two sign-on methods for Microsoft Office 365 available in Okta: Secure Web Authentication (SWA) and WS-Federation (WS-Fed), which is the more secure and preferred method.

  • SWA relies on a username and a password for security credentials that can be selected by the end user or assigned by the administrator
  • WS-Federation is a specification that defines mechanisms to transfer identity information using encrypted SOAP messages. It adds a level of security. WS-Federation doesn't require a separate password for Office 365. Therefore, Okta doesn't need to sync user passwords when WS-Federation is used.

Okta removes the domain federation in the following cases:

  • If you switch from WS-Federation to SWA
  • If you delete the app instance

Automatically set up WS-Federation

First-time setup

If you're configuring WS-Federation for the first time, follow these steps to authenticate and select domains.

  1. In the Admin Console, go to Applications > Applications.

  2. Search for and select your Microsoft Office 365 app integration.

  3. Go to the Sign On tab.
  4. Click Edit in the Settings section.
  5. Select WS-Federation.
  6. Set WS-Federation Configuration to Automatic.
  7. Optional. Click View Setup Instructions. The procedure to configure Office 365 WS-Federation opens in a new window.
  8. Optional. Refer to the Prepare your domain for federated authentication section of the procedure to ensure that you have correctly prepared your domains for federation.
  9. Back on the Sign On tab, click Start federation setup. You're redirected to the Microsoft account sign-in page.
    1. Sign in to Microsoft as a global administrator for your Microsoft tenant.
    2. Read and accept the requested permissions.
  10. Click Federate domains.
  11. In the dialog that appears, select the domains that you want to federate from the dropdown list.
  12. Click Save.

Edit an existing configuration

If you've previously configured WS-Federation, follow these steps to make changes.

  1. In the Admin Console, go to Applications > Applications.

  2. Search for and select your Microsoft Office 365 app integration.

  3. Go to the Sign On tab.
  4. Ensure that WS-Federation is selected as the sign-on method, and that WS-Federation Configuration is set to Automatic.
  5. To view federated parent and child domains in read-only mode, click View selected domains.
  6. To add or remove domains, click Manage verified domains.
  7. To re-authenticate with a different Microsoft Office 365 account, click Re-authenticate with Microsoft Account.
  8. Click Save.

Manually set up WS-Federation

  1. In the Admin Console, go to Applications > Applications.
  2. Search for and select the Office 365 app integration.
  3. Go to the Sign On tab.
  4. Click Edit in the Settings section.
  5. In Sign on methods, select WS-Federation.
  6. Set WS-Federation Configuration to Manual using PowerShell.
  7. Click Continue with Manual to confirm your selection.
  8. Click View Setup Instructions for the PowerShell command that's customized for your domain.
  9. Copy this command to use in PowerShell.