Update json-jwt legacy methods

This commit is contained in:
theworldbright 2016-01-04 16:59:06 +09:00
parent 58aef5658b
commit b09ee87912

View file

@ -10,7 +10,7 @@ describe Api::OpenidConnect::IdTokensController, type: :controller do
json = JSON.parse(response.body).with_indifferent_access
jwks = JSON::JWK::Set.new json[:keys]
public_keys = jwks.map do |jwk|
JSON::JWK.decode jwk
JSON::JWK.new(jwk).to_key
end
public_key = public_keys.first
expect(Api::OpenidConnect::IdTokenConfig::PUBLIC_KEY.to_s).to eq(public_key.to_s)