Can't find class CognitoUserPoolsSignInProvider: Issue with Sign In integration

0 votes

I am currently trying to integrate the Sign In functionality from aws into my android app. I followed all the instructions provided to me by AWS, downloaded and inserted there auto generated code, but still get an error.

Here is the Location:


My Error:

(49, 15) error: cannot find symbol class CognitoUserPoolsSignInProvider

Auto generated code snippet that throws the error:

    // Initialize Cognito User Pools SDK.
    final CognitoUserPoolsSignInProvider cognitoUserPoolsSignInProvider =
            new CognitoUserPoolsSignInProvider(context);

Where do I find this class and how do I integrate it in my app? I tried googling for it, but I can't find anything relevant.


Sep 28, 2018 in AWS by bug_seeker
• 15,350 points

1 answer to this question.

0 votes

CognitoUserPoolsSignInProvider is ditributed as part of aws-android-sdk-auth-userpools library. Please import the following library and you should be able to do it.

compile ('com.amazonaws:aws-android-sdk-auth-userpools:2.6.+') { transitive = true; }

Now you can register this provider with the IdentityManager as follows:

answered Sep 28, 2018 by Priyaj
• 56,900 points

Related Questions In AWS

0 votes
1 answer
+1 vote
1 answer
0 votes
1 answer

Kinesis video consumer in android

You can use Kinesis Data Firehouse service ...READ MORE

answered Oct 10, 2018 in AWS by Priyaj
• 56,900 points
+5 votes
4 answers

Facing rendering issue in AWS EC2 instance

Hey @Vanshika there could be many factors ...READ MORE

answered Aug 20, 2018 in AWS by Priyaj
• 56,900 points
+1 vote
1 answer

How to authenticate session in application running on Beanstalk with boto3

The recommended way of managing credentials used ...READ MORE

answered Aug 28, 2018 in AWS by Priyaj
• 56,900 points