Questions tagged [amazon-cognito]

Amazon Cognito is a simple user identity and data synchronization service that helps securely manage and synchronize mobile app data.

Amazon Cognito lets you add user sign-up, sign-in, and access control to your web and mobile apps quickly and easily. Amazon Cognito scales to millions of users and supports sign-in with social identity providers, such as Apple, Facebook, Google, and Amazon, and enterprise identity providers via SAML 2.0 and OpenID Connect.

Work Offline

You can use the optional Amazon Cognito client SDKs to automatically create a local data store to cache user app data on the device. This means your app can keep reading and writing data regardless of the device connectivity state.

Store and Sync across Devices

With Amazon Cognito you can easily synchronize app data across all of an end user’s devices. Amazon Cognito manages the complexity of conflict resolution and intermittent network connectivity so that your app can always deliver a great user experience.

Control Access to AWS Resources

You can use the unique user identifiers that Amazon Cognito generates in your access policies to enable or restrict access to other AWS resources on a per-user basis.

Safeguard AWS Credentials

When you use Amazon Cognito, the service takes care of all the steps necessary to create a unique identifier for your app’s users and retrieve temporary, limited privilege AWS credentials.

Interaction with other Amazon services AWS Cognito can interoperate with AWS SES, AWS SNS, AWS Lambda, and more.

http://aws.amazon.com/cognito/

7147 questions
3
votes
1 answer

How to refresh token in AWS Cognito using Android SDK?

I have been searching for the proper way to refresh token after the token generated by the AWS as Federated Identity has expired. My application uses cognito to log, and sign up users and then take the Access Token and then hit the apis using…
Ahmed S. Durrani
  • 1,535
  • 2
  • 17
  • 41
3
votes
1 answer

AWS Cognito | How to Validate if a User is Authenticated and Valid?

I'm learning AWS Cognito and I'm using the js sdk. Question: How can I verify if a user is authenticated and valid? The online documentation explains how to validate a users token: if (cognitoUser != null) { …
Vingtoft
  • 13,368
  • 23
  • 86
  • 135
3
votes
0 answers

Facebook authentication for Cognito user pool without hosted UI

I am building a web app and I would like to accomplish the following: Authenticate/store users using AWS Cognito User Pools (Not "Identity Pools") Allow users to sign in with both Facebook and username/password. Use my own UI (not the hosted UI…
twiz
  • 9,041
  • 8
  • 52
  • 84
3
votes
1 answer

AWSSecurityTokenServiceException: Acced denied. User is not authorized to perform sts:AssumeRole

I'm new to aws. I want to generate temporary credentials for aws call. And for that I use example from Making Requests Using IAM User Temporary Credentials - AWS SDK for Java Where I pass String clientRegion = ""; String roleARN =…
Nikolas
  • 2,322
  • 9
  • 33
  • 55
3
votes
1 answer

Invalid PNG format in set-ui-customization in aws cognito

I am using below aws cli command to modify the UI. aws cognito-idp set-ui-customization --user-pool-id us-west-2_XXXXXXX --client-id ALL --css ".submitButton-customizable{background-color: #0091e1;} " --region us-west-2 --image-file Logo.png But…
Jayesh Dhandha
  • 1,983
  • 28
  • 50
3
votes
1 answer

How could I generate temporary credentials using Cognito Identity pool for accessing aws services?

I have a cognito user pool and identity pool. I have created an user in user pool. I got the tokens i.e. access, refresh, id tokens using lambda for that user. Now I want to generate the temporary credentials i.e. access key and secrete access key…
ABCD
  • 730
  • 1
  • 13
  • 31
3
votes
2 answers

Authenticating user in AWS Cognito User/Identity Pool with Google as identity provider

AWS provides two possible ways of dealing with Cognito: "old one" via amazon-cognito-identity-js (and possibly amazon-cognito-auth-js) and "new one" via aws-amplify (which inlcudes the above one) After quite a bit of trouble and reverse…
ZenMaster
  • 12,363
  • 5
  • 36
  • 59
3
votes
0 answers

AWS Cognito UserPool Custom Sign In Protecting AppClientSecret

I have seen links (like this one: https://aws.amazon.com/blogs/mobile/how-amazon-cognito-keeps-mobile-app-users-data-safe/) that says to not store the AppClientSecret in the mobile app but how would it be possible to implement custom sign in without…
Rekd
  • 85
  • 1
  • 8
3
votes
0 answers

TypeError: user.sendMFACode is not a function - Redux Saga and AWS Amplify

Using: aws-amplify 0.3.3, aws-amplify-react-native 0.2.9., redux-saga 0.15.6 While calling the Auth.confirmSignIn using redux-saga: let confirmedUserData = yield call([Auth, Auth.confirmSignIn], userObj, authCode, 'SMS'); Getting the following…
George Ortiz
  • 97
  • 2
  • 9
3
votes
1 answer

Terraform Out Of Sync

I have an issue where my terraform is somehow not the same as what is deployed though I don't know why. According to my git history, the file that manages Cognito User Pools hasn't changed since it was deployed, but terraform thinks it has and…
cyram
  • 820
  • 8
  • 22
3
votes
1 answer

How to signup a user with AWS Cognito and a console .NET Core 2.0?

I'm trying to signup a user with AWS Cognito with my .net core 2.0 console app and a user pool. My app crashes when this line gets executed: var result = await _client.SignUpAsync(signUpRequest); The frustrating part is that no exception is rasied.…
3
votes
1 answer

Using Amazon Cognito Refresh Token to get new token in javascript

When successfully logged in into the cognito user pool, I can retrieve access token and id token from the callback function as onSuccess: function (result) { var accesstoken = result.getAccessToken().getJwtToken() var idToken =…
3
votes
0 answers

AWS Cognito and Facebook signUp without redirection

I am building a web app where all server requests are handled through AWS Gateway and Lambda. I have introduced AWS Cognito for sign-up and sign-in which works very well. I am planning now to activate Facebook sign-up and sign-in. However, from what…
dmi88
  • 121
  • 3
3
votes
1 answer

Cognito Identity System.IO.InvalidDataException: Cannot determine protocol. When running in docker on Elastic beanstalk

When running my app in a docker container in Elastic beanstalk I am noticing this error. Fetching users and sign-in operations work fine, but attempting to create a new user throws this error. Developing locally against the same Cognito instance the…
dpix
  • 2,765
  • 2
  • 16
  • 25
3
votes
0 answers

Integrate Grafana with AWS Cognito

Is there a tutorial out there that describes how to integrate Grafana (running in an EC2 instance) with AWS Cognito for authentification? Or could somebody tell me how to do it? I'm relatively new to AWS and also Grafana. We use Grafana with…