fabscale / ember-cognito-identity

Interact with AWS Cognito in your Ember app.
MIT License
0 stars 0 forks source link

Allow "USER_PASSWORD_AUTH" via config/environment.js #722

Closed hoIIer closed 2 years ago

hoIIer commented 2 years ago

This library seems to enforce USER_SRP_AUTH where I want to use USER_PASSWORD_AUTH.

Can we add a config to enable configuring the authentication flow type similar to how ember-cognito does?

hoIIer commented 2 years ago

The following line should be added here:

  cognitoUser.setAuthenticationFlowType(<config.cognito.authenticationFlowType>);
mydea commented 2 years ago

That should be doable!

mydea commented 2 years ago

Could you check if this works as expected - I don't really have a setup to test this properly: https://github.com/fabscale/ember-cognito-identity/tree/fn/authentication-flow

hoIIer commented 2 years ago

sorry slammed today and didn't get to testing it, but that looks like it should work