Skip to content

Commit

Permalink
Update openid_connect.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Stan Hu <[email protected]>
  • Loading branch information
manuelvanrijn and stanhu authored Jul 3, 2024
1 parent a537c49 commit 124d76d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/omniauth/strategies/openid_connect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ def verify_id_token!(id_token)
client_id: client_options.identifier,
nonce: params['nonce'].presence || stored_nonce
}
verify_kwargs.merge!(audience: client_options.audience) if client_options.audience.present?
verify_kwargs[:audience] = client_options.audience if client_options.audience.present?

decode_id_token(id_token).verify!(**verify_kwargs)
end
Expand Down

0 comments on commit 124d76d

Please sign in to comment.