Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to specify auth flow to trigger user migration events #5243

Closed
2 tasks
dreamorosi opened this issue May 12, 2024 · 2 comments
Closed
2 tasks

Ability to specify auth flow to trigger user migration events #5243

dreamorosi opened this issue May 12, 2024 · 2 comments
Labels
Authenticator An issue or a feature-request for an Authenticator UI Component feature-request Request a new feature

Comments

@dreamorosi
Copy link

On which framework/platform would you like to see this feature implemented?

React

Which UI component is this feature-request for?

Authenticator

Please describe your feature-request in detail.

Customers wanting to run triggers like UserMigration_Authentication (docs) must use specific authentication flow types ) - i.e. USER_PASSWORD_AUTH.

The signIn function from aws-amplify/auth supports an option.authFlowType option (source) that allows to specify this, however I was not able to pass this when using the authenticator, nor find any mention in the docs.

Please describe a solution you'd like.

Ideally I'd like to set this parameter either in the amplify_outputs.json file or, if that's not feasible, be able to pass it to the withAuthenticator/<Authenticator> component as an option.

We love contributors! Is this something you'd be interested in working on?

  • 👋 I may be able to implement this feature request.
  • ⚠️ This feature might incur a breaking change.
@dreamorosi dreamorosi added the feature-request Request a new feature label May 12, 2024
@github-actions github-actions bot added the pending-triage Issue is pending triage label May 12, 2024
@zchenwei zchenwei added Authenticator An issue or a feature-request for an Authenticator UI Component and removed pending-triage Issue is pending triage labels May 15, 2024
@zchenwei
Copy link
Contributor

zchenwei commented May 17, 2024

Hi @dreamorosi , thank you for submitting the feature request. To override the auth flow type, i think you can try to override the signIn call by following the docs here though the example is showing how to override the signUp call but I think they share the same idea.

@dreamorosi
Copy link
Author

Hi @zchenwei thank you for the reply. I didn't see that section so I didn't make the connection that they're related.

I'll try that as soon as I can; in the meantime I'll close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Authenticator An issue or a feature-request for an Authenticator UI Component feature-request Request a new feature
Projects
None yet
Development

No branches or pull requests

2 participants