-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Registration flow fixed #19556
Registration flow fixed #19556
Conversation
d315a3c
to
c3806f5
Compare
61835a4
to
d6da5e5
Compare
d6da5e5
to
32ecf1e
Compare
32ecf1e
to
691a015
Compare
691a015
to
7063b8e
Compare
42dbe46
to
bd651e0
Compare
bd651e0
to
d379e56
Compare
f1f0c34
to
0153f8f
Compare
0153f8f
to
cbb261f
Compare
registration Adding a failing test from keycloak#17644. The keycloak#19488 PR seems not to solve it
cbb261f
to
2e39ead
Compare
Thank you for preparing this fix, @vilmosnagy. @sguilhen and I had a look and found that while your proposed fix prevents the error message being shown, it prevents the safety measures in I pushed one more commit to this PR, which now adds the same check before creating the user. This way, when a user uses the back navigation and attempts a registration, they will see an error message, and no user would be created. I ran the Please let me know your thoughts on this change before I go ahead and merge it. Thanks! |
* | ||
* If there was another user attached to this flow calling this method overrides the previous setting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ahus1 I think with your rework this should be removed as well, but I'm not a 100% sure.
* | |
* If there was another user attached to this flow calling this method overrides the previous setting. |
@ahus1 thanks for the review & rework, it looks good to me. I've added a small suggestion - my original change would have changed the Thanks again :) |
b51763d
to
1a6c9cf
Compare
@sguilhen - could you please add your review to this issue? Once it has been reviewed, I'd then squash and merge it. I might also ask Marek P. for a review as he's involve in the core things. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving as this reflects what @ahus1 and I discussed last week about the proper way to fix this.
@ahus1 @vilmosnagy @sguilhen Thanks for the updates. I've did some testing of it and updated few things when looking into this. I've sent different PR #23064 with your commits and my commit on top of that. We can squash during merge possibly. In summary what I did was:
WDYT about those changes? If you're ok with it, can we go with the alternative PR instead of this one? |
@mposolda - I really like the change you did so the registration page doesn't show up any more. Closing this one, and continuing the discussion on the other PR. |
Closes #21514
Hi,
I've reported a bug in #17644. #19488 should have resolved it, but it seems to fail anyhow.
See my comment here: #19488 (comment)
@mposolda @hmlnarik I think we should implement a similar solution in the reset password flow to the idp linking flow's solution. As far as I remember in the IDP Linking flow the attributes of the newly created user is stored in an
AuthNote
- would you mind a solution, where:setUser
call inResetCredentialChooseUser:119
we store the user's ID (?) in an auth noteResetCredentialChooseUser::authenticate
because of this changeResetCredentialEmail
we should use the previously stored AuthNote instead of thegetUser
methodWhat do you think about my suggestion? If I'd implement such changes in this PR would you merge it?
Regards,