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:

...\app\src\main\java\com\amazonaws\mobile\user\signin\SignInManager.java

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);
    addSignInProvider(cognitoUserPoolsSignInProvider);

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.

Thanks!

Sep 28, 2018 in AWS by bug_seeker
• 15,520 points
677 views

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:

IdentityManager.getDefaultIdentityManager().addSignInProvider(CognitoUserPoolsSignInProvider.class);
answered Sep 28, 2018 by Priyaj
• 58,090 points

Related Questions In AWS

0 votes
1 answer
+1 vote
1 answer
0 votes
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
• 58,090 points
1,351 views
0 votes
1 answer
+5 votes
4 answers

Facing rendering issue in AWS EC2 instance

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

answered Aug 21, 2018 in AWS by Priyaj
• 58,090 points
1,068 views
+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
• 58,090 points
1,420 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP