Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/omniauth/strategies/openid_connect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def decode_id_token(id_token)
public_key
end

decoded.verify!(keyset)
decoded.verify_payload!(keyset)
::OpenIDConnect::ResponseObject::IdToken.new(decoded)
rescue JSON::JWK::Set::KidNotFound
# If the JWT has a key ID (kid), then we know that the set of
Expand Down Expand Up @@ -478,7 +478,7 @@ def verify_id_token!(id_token)
}
verify_kwargs.merge!(audience: client_options.audience) if client_options.audience

decode_id_token(id_token).verify!(**verify_kwargs)
decode_id_token(id_token).verify_payload!(**verify_kwargs)
end

class CallbackError < StandardError
Expand Down