I believe you can just delete the userpool domain...then the hosted ui is gone. If you have verification enabled it must be set to 'code' (not 'link') as the link points at that domain and will prevent user signup if the domain is not set.
Have you figured out if/how to do this? I have been unable to figure out/understand how to use the Cognito Auth API without being redirected to the Cognito Hosted UI.
Thanks,
Eric
Here is how to use the token endpoints without having to use the hosted UI. https://forums.aws.amazon.com/message.jspa?messageID=832873#832873
https://stackoverflow.com/questions/49012091/aws-cognito-authorization-code-grant-flow-without-using-the-hosted-ui
But the hosted UI will still be active which is my issue.
Edited by: CognitoUser on Mar 16, 2018 5:25 AM
Hi,
I can understand why you might not want the hosted UI to be even available, but that's not possible today if you want to use the OAuth2.0 flows.
Is the issue that you don't want users to sign up or sign in directly with a username/email and password using the hosted UI, but you want to only allow that through your UI? If so, you can uncheck Cognito User Pool from the Enable Identity Providers section of the App client settings (under App integration) in the Cognito console. If Cognito User Pools is unchecked, a user may still see the federated options if they find their way to the hosted UI, but they can't sign in or sign up directly in the User Pool with username/email and password.
I hope that helps.
-Tim
Relevant questions
Setup TOTP screen for Hosted UI
asked 5 months agoCognito Hosted UI to Custom UI
Accepted Answerasked 2 years agoRemember device to suppress MFA challenge using Cognito Hosted UI
asked 9 days agoCognito Hosted UI customization not updating
asked 7 months agoHow to use Amplify to authenticate against Cognito using the hosted UI and the implicit grant type?
asked 5 months agoDisable hosted UI
asked 4 years agoHow to translate Cognito Hosted UI Forms?
asked 5 months agoCognito Hosted UI TOTP or Amplify
asked 7 months agoIs there any way to display a "Confirm Password" field in the Cognito hosted UI?
asked 7 months agoCognito Hosted UI user email verification (using valid verification code) failed (according to UI) but user is confirmed.
asked 7 months ago