Skip to content

updated the method verify! with verify_payload! #204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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