Comments (10)
To be honest, I'm getting very confused by the inconsistent naming used for the identity pools and user pools. It varies between Web UI, CLI, docs and even this repo
For example for user pools
- The web UI use User Pools
- the cli uses both cognito-idp, user pool and CognitoIdentityProviders (?)
- The docs use User Pools, user identities, Cognito User Identity Pool and Cognito Identity Providers,
- this repo uses cognito-identity and user pools
For the Identity Pools
- The web UI uses Federated Pools and cognito identity Pools
- the cli uses cognito-indentity, indentity pool,
- the docs use Identity Pools
For example is 'Cognito User Identity Pool' an Identity Pool as it holds federated users or in fact a User Pool? Ouch!
Can someone sort this out so we have a single distinct name for each concept and related operations? Thanks!!!!
The CLI docs say
--cognito-identity-providers (list)
A list representing a Cognito User Identity Pool and its client ID.
Shorthand Syntax:
ProviderName=string,ClientId=string ...
but it's a pair not a list as far as I can tell.
from amazon-cognito-identity-js.
Yes I did thanks. I had not found those docs before. Very useful, though Java not javascript
There's an awful lot of docs so I started using the code, at least that available :)
FYI, Here's my effort that worked
from amazon-cognito-identity-js.
Hi Steve,
I think it should be there. Do the docs below help?
http://docs.aws.amazon.com/cli/latest/reference/cognito-idp/index.html
Ionut.
from amazon-cognito-identity-js.
They do very much. It seems I need to update AWS. Thanks.
from amazon-cognito-identity-js.
@itrestian What I cannot figure is how to set the provider to be a Cognito Identity Pool via the CLI. The only way to set provider appears to be when you create using
aws congnito-identity create-identity-pool
- There is no 'key' given for Cognito Identity Pools in the docs
- Cognito Identity Pool require a second param where all the others only take one as per docs
- The AWS CLI help is the same as the docs
Is there some place I can ask this? I added feedback to the website docs.
thanks
from amazon-cognito-identity-js.
I tried to create a Identity Pool linked to a User Pool using the CLI and copying what I had done in the Web UI (and it works)
IDENTITY_POOL_NAME="BrianDARTTrial_Stage"
USER_POOL_ID="us-east-1_A2HeABQfl"
APP_CLIENT_ID="7m5nr6pgpe7en26q55jnic16t6"
echo AWS cognito-identity create-identity-pool --identity-pool-name $IDENTITY_POOL_NAME --no-allow-unauthenticated-identities --cognito-identity-providers ProviderName=$USER_POOL_ID,ClientId=$APP_CLIENT_ID
but it fails with "Invalid Cognito Identity Provider". It doesn;t say which arg it is but I guess USER_POOL_ID or APP_CLIENT_ID. All 3 are exactly a showin in the web UI when I set up manually.
from amazon-cognito-identity-js.
woah, hold on I just spotted the docs saying
ProviderName -> (string)
The provider name for a Cognito User Identity Pool. For example, cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789 .
That makes it work. Bizzar
I think the format should be that used in the web UI. ie without the 'cognito-idp.us-east-1.amazonaws.com/' prefix
thanks
from amazon-cognito-identity-js.
woah, hold on I just spotted the docs saying
ProviderName -> (string)
The provider name for a Cognito User Identity Pool. For example, cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789 .
Where does that format come from - never seen it before!?
But it makes it work. Bizzar
I think the format should be that used in the web UI. ie without the 'cognito-idp.us-east-1.amazonaws.com/' prefix
thanks
from amazon-cognito-identity-js.
boy, this has taken forever to get working :(
I'll be so happy when serverless support it :)
from amazon-cognito-identity-js.
Hi Steve, did you manage to solve it?
The format is documented here I believe
http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CognitoIdentity.html#getId-property
Ionut.
from amazon-cognito-identity-js.
Related Issues (20)
- Can I use my own login page in sample web page demonstrates?
- CognitoIdentityCredentials, Access Denied error, not authorized to perform iam:PassRole??? HOT 2
- AWS Cognito SDK required even if AWS SDK is already imported HOT 1
- Incompatibility with AWS SDK >=2.178.0 HOT 3
- How to use the Lambda triggers in cognito-identity-js
- InvalidAction: The action or operation requested is invalid. Verify that the action is typed correctly.
- enableMFA failing (user is not authenticated) when user is logged in HOT 2
- Need clarification on entire TOTP setup process HOT 2
- Question: With the use case 4
- Cannot reset password for the user as there is no registered/verified email or phone_number HOT 3
- Uncaught TypeError: Cannot set property 'createCredentials' of undefined HOT 2
- How can you require verification of Phone Number and Email before issuing tokens from InitiateAuth call?
- Humbly request to re-write this SDK in today's javascript standard HOT 1
- How to tell if ID & access tokens are expired? How do we refresh? HOT 2
- InvalidParameterException: TIMESTAMP format should be EEE MMM d HH:mm:ss z yyyy in english. HOT 1
- Use this library without a cognito pool, just a federated identity pool
- TypeError with AdminConfirmSignUp HOT 2
- Cookie Storage Limits on Safari HOT 1
- Refresh access and id tokens in a React/Angular SPA HOT 1
- configure refreshToken expiration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-cognito-identity-js.