Closed ctlajoie closed 4 years ago
This is a regression from scribejava
upgrade: [1].
I think the solution would be to drop the override, so this method should be removed, because the default is already Json extractor: [2].
[1] https://gerrit-review.googlesource.com/c/plugins/oauth/+/253929/2/src/main/java/com/googlesource/gerrit/plugins/oauth/KeycloakApi.java#48 [2] https://github.com/scribejava/scribejava/blob/master/scribejava-core/src/main/java/com/github/scribejava/core/builder/api/DefaultApi20.java#L41
I tested that solution (removing the override for getAccessTokenExtractor()
) and that works fine.
@ctlajoie Sorry for the troubles and thanks for confirming!
I will add more unit tests in this code area to avoid future regressions and will coduct a new release.
I have sent a fix for review: [1].
[1] https://gerrit-review.googlesource.com/c/plugins/oauth/+/258255
The mentioned CL was submitted. I will merge the fix up to master and conduct a new release.
I am getting this error in Gerrit after keycloak redirects back to Gerrit. There are no errors on the keycloak side - as far as it is concerned, nothing went wrong. It looks like it's trying to parse form parameters from a JSON response.