Use back keycloak-js instead of initiate login in the backend for account (26.0)#42682
Conversation
Unreported flaky test detectedIf the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR. org.keycloak.testsuite.broker.KcOidcBrokerTest#testReauthenticationBothBrokersWithOTPRequiredKeycloak CI - Java Distribution IT (windows-latest - temurin - 17) |
mposolda
left a comment
There was a problem hiding this comment.
Added one comment inline.
Also not 100% sure if all the messages in messages_en.properties are needed, but don't have issues with including them, so probably fine.
| request_not_supported=Request not supported | ||
| request_uri_not_supported=Request uri not supported | ||
| registration_not_supported=Registration not supported | ||
| >>>>>>> 360ff7050c (Use back keycloak-js instead of initiate login in the backend for account (#42035)) |
There was a problem hiding this comment.
It seems this line should not be here?
There was a problem hiding this comment.
Argh! Yes, I didn't remove after solving the conflict. Done!
9b65576 to
ee2740a
Compare
|
Done both! And yes, the properties were not needed, I didn't detect there were two more that are not needed. |
|
It seems that is finally not needed. Closing it. |
|
Re-opening this for 26.0. |
| const error = props.error; | ||
| const errorMessage = getErrorMessage(error); | ||
| const networkErrorMessage = getNetworkErrorMessage(error); | ||
| console.error(error); |
There was a problem hiding this comment.
Let's try to keep the console uncluttered. I'd remove this line.
There was a problem hiding this comment.
Done! But this log is in main and it was there before my changes. It was just added by the cherry-pick. 😄
| if (typeof error === "string") { | ||
| return error; | ||
| } | ||
|
|
There was a problem hiding this comment.
Are you 100% sure that error will never be a string?
There was a problem hiding this comment.
This error is always the error thrown by keycloak-js here. The keycloak-js always returns an Error for throws. If you want I can maintain the string (no problem with that). In main PR this was clearer, because the error passed here was the Error or the string obtained using another method.
There was a problem hiding this comment.
@ssilvert If you want I can re-add these lines, just to move this forward. I think this PR is needed for 26.0.17.
There was a problem hiding this comment.
@rmartinc If you are sure it's OK, I'm fine with it.
…ount (keycloak#42035) Closes keycloak#40463 Signed-off-by: rmartinc <[email protected]> (cherry picked from commit 360ff70)
Head branch was pushed to by a user without write access
ee2740a to
c6d51cf
Compare
Closes #40463
PR: #42035
Commit: 360ff70
PR branch: backport-42035-26.0
Target branch: https://github.com/keycloak/keycloak/tree/release/26.0
Cherry pick for 26.0.