
jcxe2 (jcxe2) asked a question.
Hi Community Users,
We are trying to integrate Office 365 WS-Fed with OKTA and facing a common issue from what I've seen - the portal is throwing 'Invalid Credentials', however the credentials are valid and we are able to login to Office365 with the same credentials. Below are the error messages, please revert to this discussion if any one has already faced such issue...
----------
- Could not validate your Office 365 credentials, received error: Invalid Credentials.
- Could not communicate with Office 365 to validate your credentials, received error: 400 Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
-----------
We've confirmed both MFA and Security Defaults is disabled for this admin account.
Would anyone have any other ideas?
Thank you.

Hi Tony Tarhan,
The first error described typically occurs when the Office 365 admin credentials provided on the Provisioning tab of the Okta Office 365 application are incorrect, outdated or the user's admin status has been revoked.
For the second error it could come from the fact that even if the MFA for the Global Admin was disabled, the option "Security Defaults" could be enabled, if yes ,please disable the Security Defaults.
Since October 22nd, 2019 Microsoft enabled "Security Defaults" by default for new tenants, ensuring "new secure-by-default behavior"
https://help.okta.com/en/prod/Content/Topics/Apps/Office365-Deployment/deploy-main.htm
https://support.okta.com/help/s/article/Office-365-Provisioning-400-Authentication-Error
Many Thanks,
Ciprian.