Open Kazhuu opened 1 year ago
@ccrockett is it possible to merge #40 by Kazhuu? The problem is just as he described and we rely on his fork now.
Hey guys, we heave the same problem here! @ccrockett .
Happy birthday, btw 🥳
Same issue here. Would be great if we can have it sorted out. Thanks! @ccrockett
I noticed the version 1.5.1 of this gem added this https://github.com/ccrockett/omniauth-keycloak/pull/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: