aws-cognito

AWS - Is there a way to 'hook' into when a federated identity is created for the first time?

一曲冷凌霜 提交于 2021-01-27 20:01:56
问题 I have a Cognito Identity Pool that is used to authenticate my front end users, as well as give them certain permissions in my application. However, I have encountered an issue with giving these users permission to access IoT, which involves invoking a Lambda calling iot.addPrincipalPolicy() , and once that is done then everything works flawlessly. However, the issue I am facing is that right now I am running this function is being called every time my user requests authentication, when it

How can I force a cognito token refresh from the client

喜欢而已 提交于 2021-01-27 13:36:31
问题 I am using aws amplify and I know that the tokens get automatically refreshed when needed and that that is done behind the scenes. What I need to do is change a custom attribute on the user in the cognito user pool via a Lambda backend process. This I can do, and it is working. However, the web client user never sees this new custom attribute and I am thinking the only way they can see it is if the token gets refreshed since the value is stored within the JWT token. 回答1: Undocumented, but you

How can I force a cognito token refresh from the client

点点圈 提交于 2021-01-27 13:27:04
问题 I am using aws amplify and I know that the tokens get automatically refreshed when needed and that that is done behind the scenes. What I need to do is change a custom attribute on the user in the cognito user pool via a Lambda backend process. This I can do, and it is working. However, the web client user never sees this new custom attribute and I am thinking the only way they can see it is if the token gets refreshed since the value is stored within the JWT token. 回答1: Undocumented, but you

AWS Cognito - Why is token still valid even User pool is changed or User is deleted (.Net core)

时光怂恿深爱的人放手 提交于 2021-01-24 11:20:09
问题 I'm quite new to AWS Cognito and about token security. I decided to use AWS Cognito for may application. I followed the guide here for my web app and my web api. https://dzone.com/articles/identity-as-a-service-idaas-aws-cognito-and-aspnet https://dzone.com/articles/identity-as-a-service-idaas-asp-net-core-api-and-a Everything works fine. But when I try to create a new User pool in AWS Cognito and then change the appsetting for both web app and web api to use the new user pool, I found