go-sdk/oauthex
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jon da3535b678
Compare auth server metadata issuer ignoring trailing slash (#955)
oauthex/auth_meta.go: fixes metadata issuer comparison to ignore
trailing slash difference

Google's gmail MCP server returns `https://accounts.google.com/` as the
Authorization Server in the Protected Resource Metadata, but returns
`https://accounts.google.com` in the Auth Server Metadata. This causes a
comparison failure per rfc8414 section-3.3: Authorization Server
Metadata Validation. The authorization server URL is meant to be a base
to build other URLs from, it does not seem necessary to enforce that the
trailing slash (or lack thereof) matches with the issuer URL. Please see
#953 for more details.

Fixes #953

---------

Co-authored-by: Guglielmo Colombo <guglielmoc@google.com>
2026-05-14 07:26:57 +00:00
..
testdata oauthex: move internal/oauthex to oauthex (#559) 2025-10-07 08:39:49 -04:00
auth_meta.go Compare auth server metadata issuer ignoring trailing slash (#955) 2026-05-14 07:26:57 +00:00
auth_meta_test.go Compare auth server metadata issuer ignoring trailing slash (#955) 2026-05-14 07:26:57 +00:00
client.go all: stabilize client OAuth support (#861) 2026-03-31 12:36:31 +02:00
client_test.go extauth: refactor enterprise auth tests (#879) 2026-04-08 13:42:59 +02:00
dcr.go feat: add automatic application_type inference (#904) 2026-04-27 13:02:01 +02:00
dcr_test.go oauthex: accept 200 in client registration (#877) 2026-04-01 16:51:18 +02:00
oauth2.go all: stabilize client OAuth support (#861) 2026-03-31 12:36:31 +02:00
oauthex.go all: client side OAuth support (#785) 2026-02-27 15:30:13 +01:00
oauthex_test.go all: stabilize client OAuth support (#861) 2026-03-31 12:36:31 +02:00
resource_meta.go all: stabilize client OAuth support (#861) 2026-03-31 12:36:31 +02:00
resource_meta_test.go all: stabilize client OAuth support (#861) 2026-03-31 12:36:31 +02:00
token_exchange.go all: stabilize client OAuth support (#861) 2026-03-31 12:36:31 +02:00
token_exchange_test.go all: stabilize client OAuth support (#861) 2026-03-31 12:36:31 +02:00
url_scheme_test.go all: stabilize client OAuth support (#861) 2026-03-31 12:36:31 +02:00