Repository navigation
Conversation
|
This seems to be @keycloak/core-clients related. |
|
Hi @thomasdarimont, sorry for the long delay in getting back to you on this. So this PR is still relevant and was wondering if you still wish to work on this. Your fix does get rid of the NPE, but there are a couple of minor changes recommended, [1] throw exception so logout doesn't fail silently, and Many thanks. |
a5a8d49 to
53efcdf
Compare
|
@msdaly200 Thank you very much for the feedback! I updated the PR according to your suggestions. |
11d7b1e to
aef08cb
Compare
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.cli.registration.KcRegTest#testCRUDWithOnTheFlyUserAuthWithSignedJwtClient_PKCS12KeystoreKeycloak CI - FIPS IT (non-strict) org.keycloak.testsuite.cli.registration.KcRegTest#testCRUDWithOnTheFlyUserAuthWithClientSecretKeycloak CI - FIPS IT (non-strict) org.keycloak.testsuite.cli.registration.KcRegTest#testCRUDWithOnTheFlyServiceAccountWithClientSecretKeycloak CI - FIPS IT (non-strict) org.keycloak.testsuite.cli.registration.KcRegTest#testCRUDWithOnTheFlyUserAuthKeycloak CI - FIPS IT (non-strict) org.keycloak.testsuite.cli.registration.KcRegTest#testCreateWithAllowedHostsWithoutAuthenticationKeycloak CI - FIPS IT (non-strict) |
There was a problem hiding this comment.
Thanks Thomas, LGTM. Sending null back and the new exception are both dealt with ok in the AuthenticationManager->backChennelLogoutClientSession method so flow looks good.
- Guard against a null backchannel logout URL in ResourceAdminManager#logoutClientSessionWithBackchannelLogoutUrl. - When the host placeholder cannot be resolved, throw an IllegalStateException with diagnostic context (clientId, clientSessionId, both note values) instead of silently returning null. The exception is handled by AuthenticationManager#backchannelLogoutClientSession, which logs it and returns a 5xx response so the failure is visible to operators. - Expand debug logging around the backchannel logout flow to make it easier to correlate token requests with logout attempts. Fixes keycloak#34104 Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
aef08cb to
211873d
Compare
|
I have rebased the branch to fix the issues we had the previous week with lint. Waiting for the tests. |
There was a problem hiding this comment.
Thanks @thomasdarimont and @msdaly200! LGTM too!
…ycloak#34105) - Guard against a null backchannel logout URL in ResourceAdminManager#logoutClientSessionWithBackchannelLogoutUrl. - When the host placeholder cannot be resolved, throw an IllegalStateException with diagnostic context (clientId, clientSessionId, both note values) instead of silently returning null. The exception is handled by AuthenticationManager#backchannelLogoutClientSession, which logs it and returns a 5xx response so the failure is visible to operators. - Expand debug logging around the backchannel logout flow to make it easier to correlate token requests with logout attempts. Fixes keycloak#34104 Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
Fixes #34104