Repository navigation
Replies: 1 comment
|
Another alternative here would be to make sure that all the fields are trimmed when they are saved to prevent spaces from showing up at the start/end of the fields. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
When setting up an IDP it can be pretty easy to mistype or improperly copy and include errant spaces in fields.
It would be a useful change to wrap log values in single quotes to make identifying that easier.
See the example log message below (note the space at the front of the expected okta value):
ERROR [org.keycloak.broker.saml.SAMLEndpoint] (executor-thread-111) Response Issuer validation failed: expected http://www.okta.com/1111122222aaaaabbbbb, actual http://www.okta.com/1111122222aaaaabbbbbAnd then the proposed change which would be to wrap the values in single quotes:
ERROR [org.keycloak.broker.saml.SAMLEndpoint] (executor-thread-111) Response Issuer validation failed: expected ' http://www.okta.com/1111122222aaaaabbbbb', actual 'http://www.okta.com/1111122222aaaaabbbbb'This is a straight forward code change, that follows existing patterns already established here:
keycloak/services/src/main/java/org/keycloak/broker/saml/SAMLEndpoint.java
Line 621 in c072415
This class of change could be done in the following locations within the SAMLEndpoint.java.
keycloak/services/src/main/java/org/keycloak/broker/saml/SAMLEndpoint.java
Line 285 in c072415
keycloak/services/src/main/java/org/keycloak/broker/saml/SAMLEndpoint.java
Line 589 in c072415
keycloak/services/src/main/java/org/keycloak/broker/saml/SAMLEndpoint.java
Line 633 in c072415
keycloak/services/src/main/java/org/keycloak/broker/saml/SAMLEndpoint.java
Line 643 in c072415
All reactions