-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
URL encode role name. #213
Conversation
This change looks good, but would you mind adding a test case that uses the same (or similar) role name to verify this change? |
I've just converted the test testing |
I'm not sure to understand why some tests failed :(
I didn't touch these files... |
Does the test work locally on 7.0.1? |
yes
|
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.
Probably just a flaky test 😄
This still seem to give errors with keycloak 9.0.0 and higher. the ':' char is not allowed in a role name.
Can I just remove the ':' fromthe test are do you really need ':' char in your role names? @hawknewton for your information #294 |
Yeah, if Keycloak stopped supporting this, then it makes sense to remove it from the tests. Really not sure why they would have changed this. |
Ok I will make a PR to remove the ';' char in the test |
Apparently a lot a chars are not allowed anymore: so basically all special chars in an url are not allowed. |
And it's going to be fixed in 10.0.2, nice 😄 |
This may not be the proper venue (or perhaps this conversation's already been had) but what do you folx think about surfacing the error message that comes back from keycloak in the event of a 400? It would go a long way to making the module a lot easier to use. |
Yeah we should definitely be doing that. I think I didn't worry about it too much in the beginning stages of this provider since Keycloak rarely surfaced errors through its API, but I think they've made a lot of improvements on that front so we could do a better job of making that more clear to the user. For reference, you can set the environment variable |
Fix #205