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
public_key="-----BEGIN PUBLIC KEY-----\n" +
@public_key.scan(/.{1,64}/).join("\n") +
"\n-----END PUBLIC KEY-----\n"JWT.decode(token,OpenSSL::PKey::RSA.new(public_key),true,algorithm: 'RS256')
Hopefully, this would help someone
Cheers
The text was updated successfully, but these errors were encountered:
I've just quickly read the code and found that there is no access token's signature verification.
https://github.com/imagov/keycloak/blob/master/lib/keycloak.rb#L326
as you can see the third argument needs to be set as
true
to check the signaturehttps://github.com/jwt/ruby-jwt/blob/master/lib/jwt/decode.rb#L11-L31
here is a quick solution
Hopefully, this would help someone
Cheers
The text was updated successfully, but these errors were encountered: