Merge pull request #431 from koic/iss_parameter_validation

Validate the RFC 9207 `iss` Authorization Response Parameter per SEP-2468
This commit is contained in:
Koichi ITO 2026-07-12 02:11:52 +09:00 • committed by GitHub
commit 8aae052efd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -95,7 +95,9 @@ def build_oauth_provider(context, scenario:)
callback_handler = -> do
query = URI.decode_www_form(callback_holder.fetch(:url).query).to_h
[query["code"], query["state"]]
# The 3-element form opts into SEP-2468 / RFC 9207 `iss` validation;
# `query["iss"]` is nil when the authorization response carried no `iss`.
[query["code"], query["state"], query["iss"]]
end
MCP::Client::OAuth::Provider.new(