aws-cognito

How do I access the group for a Cognito User account?

人盡茶涼 提交于 2019-11-29 02:36:54
问题 In AWS Cognito, you can add a user to a group (after first creating a group). A user may belong to one or more groups. With using the JavaScipt SDK (https://github.com/aws/amazon-cognito-identity-js), is there a way to read the assigned Groups? Would aws-sdk provide access over amazon-cognito-identity-js ? 回答1: If you just need the Cognito UserPools Groups the Authenticated User is a member of, instead of making a separate API call, that data is encoded in the idToken.jwtToken that you

How to use Federation from a User Pool (not from an Identity Pool)!

天涯浪子 提交于 2019-11-28 11:05:42
问题 I'm trying to use Federation from a User Pool. Note, I am not talking about Federated Identity Pool a different concept. Is there a SignIn API for federated users or is just a hosted UI Does the app "have to" open a browser on a Sign In URL that looks like https://XXXXXX.au=th.XXXXX.amazoncognito.com/login?response_type=code&client_id=XXXXXXXXX&redirect_uri=XXXXXXX ? Can the end-user can stay inside the app, similar to how Google SignIn API on Android works (it pops up a small Google sign in

AWS cognito: sign in with usernam/password OR facebook

回眸只為那壹抹淺笑 提交于 2019-11-28 09:19:19
I want to integrate a pretty standard functionality: give option to user (mobile and web) to either login with email/password or with facebook (google) account with RBAC (different users may have different roles, like users, moderators, admins, creators, etc). Here is basically what I want from sign in: I went through a number of AWS tutorials and other materials. I got some grasp on how to implement it, but I still don't have a full picture. Hope someone can help me here. Here is my current understanding (please correct me where I'm wrong). 1) For the email/password signup/signin I use a User

Cognito hosted UI

风格不统一 提交于 2019-11-27 10:09:25
问题 I have been looking into setting up a login for a web app that lets clients view data hosted in S3 and found that AWS Cognito has a hosted web UI [link] that handles most of the authentication flow for me, the issue I am facing is I cannot find out how to integrate the output of the web UI into my app. Most of the existing documentation in Cognito just references how to use the various APIs in creating your own UI which is leaving me with confusing answers to my issue. Is there any

Verifying user is authenticated using AWS IOS SDK

给你一囗甜甜゛ 提交于 2019-11-27 08:04:02
问题 I created a lamdba function which does the following: var param = { IdentityPoolId: "us-east-1:the-full-identity-id", Logins: {} // To have provider name in a variable }; param.Logins["com.test.website.login"] = userIdICreatedAndStoredInDynamoDB; cognitoidentity.getOpenIdTokenForDeveloperIdentity(param, function(err, data) { if (err) return fn(err); // an error occurred else fn(null, data.IdentityId, data.Token); // successful response }); It returns the identityId and token for that user.