amazon-web-servicesamazon-cognitooneloginidp

Error while doing IdP initiated login using AWS Cognito


I am using IdP as Onelogin & aws cognito(SP). SP initiated login working fine. But when i clicked on App Portal/ Home -> on my application, then it redirects to cognito with error prompt "Invalid relayState from identity provider" I checked relay state parameter in One-Login configuration is correct like https://***:81/login which is our login page URL.

enter image description here


Solution

  • Cognito only supports SP initiated flow.

    So the flow must go Cognito Authorize endpoint -> IDP -> back to Cognito.