amazon-cognito

how to get list of users based on created date/updated date from cognito

亡梦爱人 提交于 2020-07-10 10:30:16
问题 I am trying to fetch users from cognito with sub and created date , able to fetch the user using sub but its not accepting for created date, as this is not attribute to pass for filter, below is the code for the same , i wan to pass created in filter Filter="created ="2020-06-30"" import boto3 client = boto3.client('cognito-idp',region_name='us-east-2', aws_access_key_id='XXXXXX', aws_secret_access_key='XXXXXXX', ) response1 = client.list_users(UserPoolId='us-east-2_XXXXXX',AttributesToGet= [

how to get list of users based on created date/updated date from cognito

我与影子孤独终老i 提交于 2020-07-10 10:29:46
问题 I am trying to fetch users from cognito with sub and created date , able to fetch the user using sub but its not accepting for created date, as this is not attribute to pass for filter, below is the code for the same , i wan to pass created in filter Filter="created ="2020-06-30"" import boto3 client = boto3.client('cognito-idp',region_name='us-east-2', aws_access_key_id='XXXXXX', aws_secret_access_key='XXXXXXX', ) response1 = client.list_users(UserPoolId='us-east-2_XXXXXX',AttributesToGet= [

React-Navigation passing functions to screenProps

会有一股神秘感。 提交于 2020-07-10 08:21:45
问题 I am creating an app using React Native, Expo and React Navigation, and I don't know the correct method for passing props and functions around. I have copied the Expo method for navigators that I will build on, but right now I just have App.js calling the following AppNavigator -> MainSwitchNavigator -> HomeScreen I have then wrapped the main exported App that Expo expects with the Amazon AWS Amplify HOC withAuthenticator. Now I can log in to my app and show hello world securely using Amazon

AWS Cognito attributes OpenID

天大地大妈咪最大 提交于 2020-07-10 07:46:55
问题 I'm trying to login in Cognito via another OAuth. I added OIDC provider to Cognito Userpool. I setup attribute mappings for this new OIDC "email" -> "Email". In attributes permissions are all permission checked for read and also write. I can successfully log in through cognito via this OIDC, but there is no attribute email in user. Any idea why ? I tried manually hit user info endpoint with access token and in response there is email. I dont know why Cognito is not able to get it. I tried

How to get authenticated identity response from AWS Cognito using boto3

China☆狼群 提交于 2020-06-27 08:58:29
问题 I would like to use boto3 to get temporary credentials for access AWS services. The use case is this: A user in my Cognito User Pool logs in to my server and I want the server code to provide that user with temporary credentials to access other AWS services. I have a Cognito User Pool where my users are stored. I have a Cognito Identity Pool that does NOT allow unauthorized access, only access by users from the Cognito User Pool. So here is the code I am starting with: import boto3 client =

How to get authenticated identity response from AWS Cognito using boto3

China☆狼群 提交于 2020-06-27 08:58:19
问题 I would like to use boto3 to get temporary credentials for access AWS services. The use case is this: A user in my Cognito User Pool logs in to my server and I want the server code to provide that user with temporary credentials to access other AWS services. I have a Cognito User Pool where my users are stored. I have a Cognito Identity Pool that does NOT allow unauthorized access, only access by users from the Cognito User Pool. So here is the code I am starting with: import boto3 client =

Where can I retrieve the public key for an Cognito Identity Pool?

半腔热情 提交于 2020-06-26 06:13:25
问题 Actually I retrieved an signed JWT for an unauthenticated user by the following code. AWS.config.region = 'eu-central-1'; // Region AWS.config.credentials = new AWS.CognitoIdentityCredentials({ IdentityPoolId: 'eu-central-1:cccccc-cccc-cccc-cccc', RoleArn: 'arn:aws:iam::iiiiiiiiiiiii:role/Cognito_MyIdentityPoolUnauth_Role' }); // Obtain Open ID Token (JWT) AWS.config.credentials.get(function() { console.log(AWS.config.credentials.params.WebIdentityToken); }); How can I retrieve the public key

Blazor WebAssembly + Amazon Cognito

只谈情不闲聊 提交于 2020-06-23 12:36:27
问题 I would like to set up a Blazor client-side app with authentication through AWS Cognito . When I run the app I'm not redirected to a login page, instead the page says "Authorizing..." for a few seconds, while I get this error in the console: The loading of “https://blazorapp.auth.eu-central-1.amazoncognito.com/login?…Q&code_challenge_method=S256&prompt=none&response_mode=query” in a frame is denied by “X-Frame-Options“ directive set to “DENY“. This error page has no error code in its security

AWS cognito hosted UI returns no token and no error

北城余情 提交于 2020-06-17 10:32:23
问题 I have been struggling this for the past three days, please HELP i am desperate. I am using Angular 8 and AWS cognito hosted ui, I have all my files and settings configured but no matter what i dont get the token back. The hosted UI takes in the user and i can see it in the user pool too. I have already RE-CHECKED all my pool-id etc. (I have added everything recommended in the docs like adding that extra code in polyfill.ts and "node" in tsconfig.app.json) I have not missed out on anything As

AWS cognito hosted UI returns no token and no error

≯℡__Kan透↙ 提交于 2020-06-17 10:31:10
问题 I have been struggling this for the past three days, please HELP i am desperate. I am using Angular 8 and AWS cognito hosted ui, I have all my files and settings configured but no matter what i dont get the token back. The hosted UI takes in the user and i can see it in the user pool too. I have already RE-CHECKED all my pool-id etc. (I have added everything recommended in the docs like adding that extra code in polyfill.ts and "node" in tsconfig.app.json) I have not missed out on anything As