Search code examples
androidiosamazon-web-servicesamazon-cognitoappauth

AWS cognito integrate with AppAuth


I need to do an authorization workflow on a Cognito user pool for a mobile app with self-hosted login/signUp screen.

I have tested the login/sign up to Cognito user pool with a native UI screen, but I need it to work with the self-hosted Cognito screen.

I would like to use AppAuth on the mobile side for handling the process.

No examples or sample code found yet. Please suggest how to proceed.


Solution

  • AWS Cognito Auth offers self-hosted Web UI for native sign-in. See the documentation for complete setup.

    The Amazon Cognito Auth SDK for iOS and Android simplifies adding sign-up, sign-in functionality in your apps. With this SDK, you can use Cognito User Pools’ app integration and federation features, with a customizable UI hosted by AWS to sign up and sign in users, and with the built-in federation for external identity providers via SAML. To learn more see the Developer Guide.

    You can now use Amazon Cognito Authto easily add sign-in and sign-out to your mobile apps. Your User Pool in Amazon Cognito is a fully managed user directory that can scale to hundreds of millions of users, so you don't have to worry about building, securing, and scaling a solution to handle user management and authentication.

    Sample apps:

    Android demo

    iOS demo

    The source code of the library:

    Android

    iOS