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

Unauthenticated access (to AppSync) #48

Closed Benassou closed 5 years ago

Benassou commented 5 years ago

Hey everyone,

I'm in need of some help with my app. In my app, I was hoping to provide read-only access to AppSync for unauthenticated users. To do this I allowed unauthenticated identities in my Identity User pool and attached an appropriate role. I can't seem to figure out though how to make an unauthenticated request using this package.

Edit: Ok, I figured it out. You can simply remove the login parameter in both getIdentityId and getAwsCredentials. As far as I can see there is no such functionality already present. Should I open a pull request with this change?

Greetings Noureddine