Skip to content

Cognito Managed Login - No button on login page for external IDP

0

I've set up tho cognito user pools. The first as an IODC identity provider and the second with the first to federate out to the first as an IDP ("Social and custom providers">"Add identity provider"). However, the managed login doesn't show the button and there are no options for editing the style when configuring the style. According to the docs, it should have the option "Foundation">"Authentication behavior" but this setting is not visible.

Am I missing a step? The feature plan is "Essentials" so it should have the option there.

There is another post here asking a similar question, with a solution, but the solution was around using Amplify. I'm just using the dashboard and/or CDK.

asked 2 years ago645 views

2 Answers
0
Accepted Answer

The fix was to go to App clients -> App client: <App Client Name> -> Edit managed login pages configuration and select an Identity Provider from the "Identity providers" dropdown list.

answered 2 years ago

EXPERT

reviewed 2 years ago

0

It appears you may be encountering a common issue with Amazon Cognito's Managed Login feature. The absence of the external Identity Provider (IdP) button on the login page and the missing "Foundation" > "Authentication behavior" option in the style configuration suggest that there might be a few steps or configurations that need to be addressed.

First, ensure that you have properly set up a domain for your user pool. This is a crucial step for enabling the Managed Login pages. Without a domain, the pages for Managed Login won't be set up, and you won't see the options for external IdPs.

Next, verify that you have correctly assigned the external IdP (in this case, your OIDC provider) to the app client you're using. The external IdP needs to be explicitly associated with the app client for it to appear as an option on the login page.

It's also important to note that you can't sign in federated users using API operations like InitiateAuth and AdminInitiateAuth. Federated users can only sign in through the Login endpoint or the Authorize endpoint.

If you're using the Authorize endpoint, be aware that it's a redirection endpoint. If you provide an idp_identifier or identity_provider parameter in your request, it will redirect silently to your IdP, bypassing the Managed Login interface. This could explain why you're not seeing the button for the external IdP.

Regarding the missing "Foundation" > "Authentication behavior" option, this could be related to the specific version of the Managed Login UI you're using. Make sure you're using the latest version of the Managed Login UI, as older versions might not have all the customization options.

If you've verified all these steps and are still not seeing the expected options or behavior, it may be worth reaching out to AWS support for further assistance, as there could be account-specific settings or recent changes to the service that aren't reflected in the documentation.

Remember, while Managed Login offers a standardized authentication experience, it does have limitations in terms of customization. If you require more control over the authentication process, you might need to consider implementing a custom authentication UI or using the Amazon Cognito API directly.
Sources
User pool sign-in with third party identity providers - Amazon Cognito
Displaying error message in Cognito managed login sign-in page | AWS re:Post
Configure authentication methods for managed login - Amazon Cognito

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.