jonsaw / amazon-cognito-identity-dart

Unofficial Amazon Cognito Identity Provider Dart SDK, to easily add user sign-up and sign-in to your mobile and web apps with AWS.
MIT License
204 stars 93 forks source link

Expose IdentityIdId in cognito_credentials to upload to S3 user folder #55

Open CRJFisher opened 5 years ago

CRJFisher commented 5 years ago

Exposes the identity ID for the individual user so that we can upload to a specific users "folder" in S3. Also, changed the (formerly local) variable name from identityIdId to userIdentityId.

I updated the docs to show this use case since there are a few pitfalls I faced doing this e.g. assuming the ${cognito-identity.amazonaws.com:sub} policy parameter referred to the sub in the JWT token. Hopefully this save people some time.

furaiev commented 4 years ago

Hi, I've copied this project in a separate package (because this one isn't supported anymore) https://pub.dev/packages/amazon_cognito_identity_dart_2 Welcome to contribute.