Home

Incorrect redirection url

%3CLINGO-SUB%20id%3D%22lingo-sub-1087921%22%20slang%3D%22en-US%22%3EIncorrect%20redirection%20url%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1087921%22%20slang%3D%22en-US%22%3E%3CP%3ECan%20anyone%20help%3F%20I%20was%20setting%20up%20Federation%20on%20my%20Office365%20domain%20through%20PowerShell.%20During%20the%20process%20I%20misstyped%20the%20url%20for%20the%20ActiveLogOnUri%20and%20now%20I%20get%20an%20error%20when%20trying%20to%20login%20to%20office.com.%20It%20says%20its%20taking%20me%20to%20my%20orginization's%20sign-in%20page%20but%20then%20errors%20because%20the%20page%20doesn't%20exist.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20tried%20to%20get%20back%20in%20through%20PowerShell%20with%20the%20Connect-MsolService%20which%20pops%20up%20a%20page%20for%20me%20to%20enter%20my%20email%20address%2C%20then%20goes%20to%20the%20%22Taking%20you%20to%20your%20orginization's%20sign-in%20page%22%20but%20disappears%20and%20gives%20error%20%22Connect-MsolService%20%3A%20Authentication%20Error%3A%20Unexpected%20authentication%20failure.%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20will%20be%20appreciated%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1087921%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAuthentication%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIdentity%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESecurity%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1087968%22%20slang%3D%22en-US%22%3ERe%3A%20Incorrect%20redirection%20url%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1087968%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F505673%22%20target%3D%22_blank%22%3E%40ToddSwaney%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheck%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice365%2Ftroubleshoot%2Factive-directory%2Fupdate-federated-domain-office-365%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice365%2Ftroubleshoot%2Factive-directory%2Fupdate-federated-domain-office-365%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3ERun%20the%20steps%20in%20the%20%22How%20to%20update%20the%20federated%20domain%20configuration%22%20section%20earlier%20in%20this%20article%20to%20make%20sure%20that%20the%20update-MSOLFederatedDomain%20cmdlet%20finished%20successfully.%3CUL%3E%3CLI%3EIf%20the%20cmdlet%20did%20not%20finish%20successfully%2C%20do%20not%20continue%20with%20this%20procedure.%20Instead%2C%20see%20the%20%22Known%20issues%20that%20you%20may%20encounter%20when%20you%20update%20or%20repair%20a%20federated%20domain%22%20section%20later%20in%20this%20article%20to%20troubleshoot%20the%20issue.%3C%2FLI%3E%3CLI%3EIf%20the%20cmdlet%20finishes%20successfully%2C%20leave%20the%20Command%20Prompt%20window%20open%20for%20later%20use.%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3ELog%20on%20to%20the%20AD%20FS%20server.%20To%20do%20this%2C%20click%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EStart%3C%2FSTRONG%3E%2C%20point%20to%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EAll%20Programs%3C%2FSTRONG%3E%2C%20point%20to%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EAdministrative%20Tools%3C%2FSTRONG%3E%2C%20and%20then%20click%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EAD%20FS%20(2.0)%20Management%3C%2FSTRONG%3E.%3C%2FLI%3E%3CLI%3EIn%20the%20left%20navigation%20pane%2C%20click%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EAD%20FS%20(2.0)%3C%2FSTRONG%3E%2C%20click%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ETrust%20Relationships%3C%2FSTRONG%3E%2C%20and%20then%20click%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ERelying%20Party%20Trusts%3C%2FSTRONG%3E.%3C%2FLI%3E%3CLI%3EIn%20the%20rightmost%20pane%2C%20delete%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EMicrosoft%20Office%20365%20Identity%20Platform%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eentry.%3C%2FLI%3E%3CLI%3EIn%20the%20Windows%20PowerShell%20window%20that%20you%20opened%20in%20step%201%2C%20re-create%20the%20deleted%20trust%20object.%20To%20do%20this%2C%20run%20the%20following%20command%2C%20and%20then%20press%20Enter%3A%3CDIV%20class%3D%22codeHeader%22%3E%3CDIV%20class%3D%22successful-copy-alert%20is-absolute%20has-right-zero%20has-top-zero%20has-left-zero%20has-bottom-zero%20is-flex%20has-flex-align-items-center%20has-flex-justify-content-center%20has-text-success-invert%20has-background-success%20is-transparent%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3CPRE%3E%3CSPAN%20class%3D%22hljs-pscommand%22%3EUpdate-MSOLFederatedDomain%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-parameter%22%3E%20-DomainName%3C%2FSPAN%3E%20%26lt%3BFederated%20Domain%20Name%26gt%3B%3C%2FPRE%3E%3C%2FLI%3E%3C%2FOL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1090840%22%20slang%3D%22en-US%22%3ERe%3A%20Incorrect%20redirection%20url%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1090840%22%20slang%3D%22en-US%22%3E%3CP%3EYou'll%20need%20to%20use%20an%20GA%20account%20associated%20with%20the%20onmicrosoft.com%20domain.%20You%20did%20create%20one%20such%20account%20as%20per%20the%20best%20practices%2C%20did%20you%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
ToddSwaney
Occasional Visitor

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."

 

Any help will be appreciated

2 Replies

Hello @ToddSwaney 

 

Check here: https://docs.microsoft.com/en-us/office365/troubleshoot/active-directory/update-federated-domain-off...

 

  1. 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.
  2. Log on to the AD FS server. To do this, click Start, point to All Programs, point to Administrative Tools, and then click AD FS (2.0) Management.
  3. In the left navigation pane, click AD FS (2.0), click Trust Relationships, and then click Relying Party Trusts.
  4. In the rightmost pane, delete the Microsoft Office 365 Identity Platform entry.
  5. 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:
     
    Update-MSOLFederatedDomain -DomainName <Federated Domain Name>
Highlighted

You'll need to use an GA account associated with the onmicrosoft.com domain. You did create one such account as per the best practices, did you?