You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed the version 1.5.1 of this gem added this #24 change. This change added request_phase method here. However what this is doing for me is that it's overwriting scope that I have set when configuring the provider like this:
provider(:keycloak_openid,"client_id","client_secret",name: "keycloak",scope: "openid",# <-- this line here!!!client_options: {# Base url as empty, defaults to "/auth/..." base url.base_url: "",site: "keycloak_url_here",realm: "test_realm"})
What is basically happening is the request_phase method is overwriting my scope with nil instead of "openid". This in turn causes Keycloak not to return ID token for me anymore.
I could provide a fix for this but not sure if I'm setting the scope correctly. Or could this be fixed in the gem to conditionally set value from request.params if it's nil? Maybe something along these lines:
I noticed the version 1.5.1 of this gem added this #24 change. This change added
request_phase
method here. However what this is doing for me is that it's overwritingscope
that I have set when configuring the provider like this:What is basically happening is the
request_phase
method is overwriting myscope
withnil
instead of"openid"
. This in turn causes Keycloak not to return ID token for me anymore.I could provide a fix for this but not sure if I'm setting the scope correctly. Or could this be fixed in the gem to conditionally set value from
request.params
if it's nil? Maybe something along these lines:The text was updated successfully, but these errors were encountered: