Can anyone help? I was setting up Federation on my Office365 domain through PowerShell. During the process I misstyped the url for the ActiveLogOnUri and now I get an error when trying to login to office.com. It says its taking me to my orginization's sign-in page but then errors because the page doesn't exist.
I have tried to get back in through PowerShell with the Connect-MsolService which pops up a page for me to enter my email address, then goes to the "Taking you to your orginization's sign-in page" but disappears and gives error "Connect-MsolService : Authentication Error: Unexpected authentication failure."
Run the steps in the "How to update the federated domain configuration" section earlier in this article to make sure that the update-MSOLFederatedDomain cmdlet finished successfully.
If the cmdlet did not finish successfully, do not continue with this procedure. Instead, see the "Known issues that you may encounter when you update or repair a federated domain" section later in this article to troubleshoot the issue.
If the cmdlet finishes successfully, leave the Command Prompt window open for later use.
Log on to the AD FS server. To do this, clickStart, point toAll Programs, point toAdministrative Tools, and then clickAD FS (2.0) Management.
In the left navigation pane, clickAD FS (2.0), clickTrust Relationships, and then clickRelying Party Trusts.
In the rightmost pane, delete theMicrosoft Office 365 Identity Platformentry.
In the Windows PowerShell window that you opened in step 1, re-create the deleted trust object. To do this, run the following command, and then press Enter: