aws-cognito

AWS API Gateway - using Access Token with Cognito User Pool authorizer?

删除回忆录丶 提交于 2019-12-03 14:41:14
I am configuring an app with various frontends (mobile and web apps) and a single API backend, powered by Lambda and accessed via AWS API Gateway. As I'm planning to use Cognito to authenticate and authorize users, I have set up a Cognito User Pool authorizer on my API Gateway and several API methods. With an architecture like this, it seems logical that my apps (e.g. an iOS or Vue.js app) are the Client applications from an OAuth perspective, and my API Gateway backend is a Resource Server. Based on this Auth0 forum post it seems clear that I should therefore use an ID token in my client app,

Multi-Tenant Authentication with AWS Cognito

老子叫甜甜 提交于 2019-12-03 11:40:46
问题 My current project is in AWS, using Cognito and microservices with Lambda. We have designed the microservices using DDD and are in the process of implementing basic functionality. However, there is a business need for users of the API to be able to be categorised into the client company that they work for, and only be able to access data for that client company as well as any role-based authentication we will have. This isn't a full multi-tenant solution as every user will be working with the

Where to find Identity Pool Id in Cognito

拈花ヽ惹草 提交于 2019-12-03 10:43:11
Where is Identity Pool in Cognito Console. As said in docs it has format: IdentityPoolId An identity pool ID in the format REGION:GUID. But I see only Pool Id and Pool ARN in the console. Which has different format. I can manage to get the IdentityPooId by aws cli: aws cognito-identity list-identity-pools --max-results 10 The command returns all of the Cognito identity pools registered for your account. { "IdentityPools": [ { "IdentityPoolId": "XX-XXXX-X:XXXXXXXX-XXXX-1234-abcd-1234567890ab", "IdentityPoolName": "<some custom name>" } ] } You can find Identity pool ID if you select Manage

Using AWS Cognito and AD FS as authentication for a web app

假装没事ソ 提交于 2019-12-03 09:58:24
问题 We are currently building a web app using a full serverless stack on AWS. So far we have been very successful using AWS Lambda, AWS DynamoDB and Cognito User Pools. This application is intended to be an enterprise application and one of my clients wants to be able to log all users in using their current Active Directory credentials. I have used AD FS in the past on other applications but it has always turned out to be a bit of a hack to get it working. Now, I want to send the customer

Multi-Tenant Authentication with AWS Cognito

混江龙づ霸主 提交于 2019-12-03 02:08:25
My current project is in AWS, using Cognito and microservices with Lambda. We have designed the microservices using DDD and are in the process of implementing basic functionality. However, there is a business need for users of the API to be able to be categorised into the client company that they work for, and only be able to access data for that client company as well as any role-based authentication we will have. This isn't a full multi-tenant solution as every user will be working with the same website, but their account will have been associated with a particular client. Everything I have

Using AWS Cognito and AD FS as authentication for a web app

折月煮酒 提交于 2019-12-03 00:28:57
We are currently building a web app using a full serverless stack on AWS. So far we have been very successful using AWS Lambda, AWS DynamoDB and Cognito User Pools. This application is intended to be an enterprise application and one of my clients wants to be able to log all users in using their current Active Directory credentials. I have used AD FS in the past on other applications but it has always turned out to be a bit of a hack to get it working. Now, I want to send the customer instructions on how to configure their AD FS relying party trust to authenticate against my application. I

AWS: Restrict Cognito Authorized User to specific Lambda Functions

纵然是瞬间 提交于 2019-12-02 13:40:18
问题 I'm working with AWS and I've the following setup: UserPool; API Gateway, Lambda Functions The api gateway is using a UserPool authorizer to protect the lambda functions. This is working so far. Now I want to restrict every lambda function to a specific group of users. Therefore I've created two user groups in the CognitoPool ( user and admin ) and I've assigned a specific role to each group with a policy. Afterwards I've created a user in the UserPool and added him to the user group. That

AWS: Restrict Cognito Authorized User to specific Lambda Functions

情到浓时终转凉″ 提交于 2019-12-02 02:54:34
I'm working with AWS and I've the following setup: UserPool; API Gateway, Lambda Functions The api gateway is using a UserPool authorizer to protect the lambda functions. This is working so far. Now I want to restrict every lambda function to a specific group of users. Therefore I've created two user groups in the CognitoPool ( user and admin ) and I've assigned a specific role to each group with a policy. Afterwards I've created a user in the UserPool and added him to the user group. That user is still able to submit requests to each route/lambda function. How do I submit a request? Postman

How to link my mobile hub with my existing cognito user pool?

强颜欢笑 提交于 2019-12-02 01:17:10
问题 I'm following these pages to use cognito on my mobile app https://docs.aws.amazon.com/aws-mobile/latest/developerguide/getting-started.html and https://aws.amazon.com/blogs/mobile/easy-sign-in-and-sign-up-ui-with-the-aws-mobile-sdk-for-android/ I have created the mobile hub and downloaded the json file but now it wants me to create a cognito user pool, but I already have one. How can I link the mobile hub with the existing user pool? Thanks. 回答1: AWS Mobile Hub does not currently provide a

How to link my mobile hub with my existing cognito user pool?

孤人 提交于 2019-12-01 21:17:29
I'm following these pages to use cognito on my mobile app https://docs.aws.amazon.com/aws-mobile/latest/developerguide/getting-started.html and https://aws.amazon.com/blogs/mobile/easy-sign-in-and-sign-up-ui-with-the-aws-mobile-sdk-for-android/ I have created the mobile hub and downloaded the json file but now it wants me to create a cognito user pool, but I already have one. How can I link the mobile hub with the existing user pool? Thanks. AWS Mobile Hub does not currently provide a means to import your existing Cognito User Pool into the project, however, you can use whatever Cognito User