I am already using AWS Cognito for authenticating a web application (using the Hosted UI, and flask_awscognito). The user pool has already been created, and all user creation or any other user pool management is done outside of the app (eg directly through the console, or CloudFormation or similar). Now we want to authenticate users from an Android app, and it is proving remarkably hard to find out how to do this.
All the AWS docs direct you to Amplify - the trouble is Amplify wants you to "initialize" and in the process seems to require AWS credentials, and for a user with permissions to CloudFormation and things none of which should be required for simply authenticating users.
Is there (any documentation for) a way to simply authenticate a user to a cognito user pool for Android? This should be similar to the authentication for the web app, with the difference that the any interaction with the hosted UI, if required, would have to be programmatic rather than via redirection to an AWS hosted login page.
It seems odd that simple authentication to a user pool from Android (without required AWS credentials, or using a user pool created with Amplify) is neither straightforward or documented . Or am I just failing to find it?