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

VerificationMessageTemplate for Cognito in Cloud Formation does not work

I'm trying to create a cognito user pool using cloud formation. I'm using this yaml template UserPoolApp: Type: AWS::Cognito::UserPool Properties: EmailConfiguration: EmailSendingAccount: COGNITO_DEFAULT …
Thauany Moedano
  • 551
  • 2
  • 8
  • 21
3
votes
1 answer

Listing users and their groups from AWS.CognitoIdentityServiceProvider.listUsers in a NodeJS Lambda function?

So I need to display a list of users as well as their individual groups in a custom admin screen for a client. I'm returning the results of AWS.CognitoIdentityServiceProvider.listUsers in a Lambda function and that's listing users fine, but I'm not…
ergusto
  • 1,226
  • 2
  • 13
  • 20
3
votes
2 answers

Amazon Cognito with SwiftUI

I am looking at developing an app and decided to use SwiftUI and AWS Cognito, however, all tutorials seem to use storyboard --Example How can I replace the viewDidLoad function in ContentView ? override func viewDidLoad() { …
Anoracx
  • 438
  • 7
  • 24
3
votes
1 answer

Get Google Token to access google services using Cognito for an Alexa skill

I have enabled AWS Cognito for an alexa skill and enabled only google login for the users, now Cognito + google auth flow completes successfully, and We get a AWS bearer token ey..., Now I wish to use a google services AP (drive/gmail),…
3
votes
1 answer

AWS Cognito not prompting MFA on first login

We have an application using AWS Cognito (+ hosted web UI) where users are only created by administrators. MFA with SMS is required. This is our current flow for new users: Admin creates a new user using AdminCreateUser of aws-sdk. Email, name and…
msarakon
  • 240
  • 1
  • 6
3
votes
0 answers

Login using AWS cognito with Google auth

I am applying Google Login with CognitoCachingCredentialsProvider and AmazonCognitoIdentityClient but user entry added in the identity pool, not in the user pool. I need to get JWT token for auth. I did research on lots of document but no one gives…
sachin
  • 396
  • 4
  • 15
3
votes
2 answers

Should you use Client Credentials Grant Type with authenticating server-to-server?

I'm creating an api service ("My Api") where the end users are other apis ("Client"). This is my first application where the Client is not an actual person, so I want to make sure I'm going through the authentication flow correctly. I'm using AWS…
3
votes
0 answers

Cognito - getInstance().getTokens() Error: Failed to federate the tokens

Works without an issue when calling AWSMobileClient.getInstance().getTokens().getIdToken().getClaim("sub"); Right after I login. AWSMobileClient.getInstance().signIn(username, password.... However when I resume activity(go to another app) and…
3
votes
1 answer

Resending phone_number attribute verification code in AWS Cognito

Is there a way in AWS SDK CognitoIdentityServiceProvider to resend a phone_number attribute change verification code for a CONFIRMED user? I have set phone_number attribute to be verified in Cognito. adminUpdateUserAttributes() sends the…
Dhanushka Dolapihilla
  • 1,115
  • 3
  • 17
  • 34
3
votes
1 answer

Azure AD SSO SingleLogoutService doesn't have POST binding in Federation metadata

When tried to integrate a SP(Cognito) with IdP (Azure AD) through SAML federation, Azure AD SSO SingleLogoutService doesn't have POST binding in the federation metadata. It does only have urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect. What…
3
votes
2 answers

How to pass an Amplify Cognito session from react native to webview?

I have a react native app that renders a WebView of a Web app The react native app uses Cognito and Amplify for authentication. The web app also uses the same Cognito and Amplify for authentication. I have a login flow built with in the react native…
kevzettler
  • 4,783
  • 15
  • 58
  • 103
3
votes
1 answer

How to update user attribute as an admin via the Cognito SDK

I am creating an angular app, in which I want to add authentication via AWS Cognito (I am pretty new to AWS). I successfully added functionality for sign-up, sign-in, sign-out, mfa and more. In addition I want to create something like admin panel,…
radoslav-d
  • 31
  • 2
  • 6
3
votes
0 answers

How to require a verification code before changing attribute in AWS cognito

We are using amazon-cognito-identity-js to manage users in a javascript application. Currently, once authenticated, a user can change their email address or phone number with cognitoUser.updateAttributes(). If that attribute is marked as verified,…
Andrew
  • 1,251
  • 6
  • 17
3
votes
0 answers

AWS Amplify authentication across React Native and Android

We have a React-Native application that uses AWS Amplify to authenticate the users in the Amazon Cognito User Pools. We have configured the User Pool as well as the Identity Pool information with AWS Amplify in the React-Native app. The…
Bot
  • 622
  • 2
  • 10
  • 21
3
votes
1 answer

Amazon Cognito - AdminCreateUser - how to not skip email verification

I am using Amazon Cognito user pool and AdminCreateUser api to create a new user so that we don't allow users to sign themselves up. It works great but it seems that email verification step is being skipped so when making an api call, I needed to…
bob
  • 2,674
  • 1
  • 29
  • 46