amazon-cognito

how handle refresh token service in AWS amplify-js

邮差的信 提交于 2020-12-04 09:59:57
问题 In my react project I am using AWS Cognito user pool for user management, for user authentication, I am using AWS Cognito idToken. after 90min the session will expire, then I need to refresh with new idToken. how to handle the refresh token service in AWS Cognito using amplify-js. I tried with Auth.currentSession() I will call this for every 1 hour but it's not working for me. 回答1: After a long struggle, I found the solution to update the AWS Cognito refresh token, To do this I am using the

Control role permission in AWS

拥有回忆 提交于 2020-11-29 21:07:57
问题 I'm new to AWS. I'm developing an application using Spring boot. I use AWS cognito for the sign in and sign up. I created a group called ROLE_ADMIN in cognito and connect with IAM role which was also created by me as ROLE_ADMIN_IAM . I'm using AWS Api gateway (HTTP Apis, but similarly REST Apis) to communicate with Apis. Then integrated the Cognito jwt authorizer in Api gateway. Everything working perfectly. The problem I'm facing now is, when a user sign in, I need to prevent few Apis based

Control role permission in AWS

纵饮孤独 提交于 2020-11-29 21:07:10
问题 I'm new to AWS. I'm developing an application using Spring boot. I use AWS cognito for the sign in and sign up. I created a group called ROLE_ADMIN in cognito and connect with IAM role which was also created by me as ROLE_ADMIN_IAM . I'm using AWS Api gateway (HTTP Apis, but similarly REST Apis) to communicate with Apis. Then integrated the Cognito jwt authorizer in Api gateway. Everything working perfectly. The problem I'm facing now is, when a user sign in, I need to prevent few Apis based