Azure SAML AWS Cognito 404

Sam 1 Reputation point

I am integrating AWS Cognito and Azure enterprise application with saml single sign-on using the instructions in this link:

The problem I am having is when I navigate from the Cognito hosted ui to Azure, if I am not logged in on the Azure side, I get a 404 on this page:

As a comparison, if I am already logged in on the Azure side, it works fine and I get authenticated. Why would it return a 404?

This stackoverflow points to the same issue, but there is no solution apart from switching to OIDC which is not an option for us:

Anyone have any suggestions?


Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
13,588 questions
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 12,976 Reputation points Microsoft Employee

    Hi Sam! It would be your account domain address for Azure. It would be helpful to know all of your domains in use (for example, Personal account for AWS, AAD account for Azure, etc)

    Microsoft Account - would be like @microsoft
    Personal - would be like @réalisations .com
    AAD - would be like

    Hope this helps!