amplify-js icon indicating copy to clipboard operation
amplify-js copied to clipboard

feat(auth): allow to force login on idp for exiting user

Open nadetastic opened this issue 6 months ago • 1 comments

Description of changes

  • add a boolean to input options when calling signInWithRedirect
  • forces the account selector screen in idp
  • requires that the managed branding (and not hosted ui classic) to be set in the user pool

Issue #, if available

https://github.com/aws-amplify/amplify-js/issues/4044

Description of how you validated changes

Checklist

  • [ ] PR description included
  • [ ] yarn test passes
  • [x] Unit Tests are changed or added
  • [ ] Relevant documentation is changed or added (and PR referenced)

Checklist for repo maintainers

  • [ ] Verify E2E tests for existing workflows are working as expected or add E2E tests for newly added workflows
  • [ ] New source file paths included in this PR have been added to CODEOWNERS, if appropriate

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

nadetastic avatar May 30 '25 01:05 nadetastic

@nadetastic Is it not possible to send manually which prompt we want to display, in my case I need to use the select_account, so I can show the UI to pick the accounts, I think none, will do a silent login. so if one account is already cached, it will login immediately with that one.

osvaldoesco avatar Jun 06 '25 14:06 osvaldoesco

Hey team, any update for this commit? We need this feature badly.

HappyRainy avatar Jul 04 '25 10:07 HappyRainy

All updates will be moved to this newly created PR: https://github.com/aws-amplify/amplify-js/pull/14464

adrianjoshua-strutt avatar Jul 11 '25 12:07 adrianjoshua-strutt