go-sdk/auth
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ruturaj Dattatray Kadam 72afbc91bd
auth: change OAuthHandler to take http Request and Response (#603)
Change OAuthHandler signature from func(context.Context,
OAuthHandlerArgs) to func(req *http.Request, res *http.Response).

- Remove OAuthHandlerArgs struct
- Update HTTPTransport to pass req and resp to handler
- Update tests to use new signature
- Handler can now call oauthex.GetProtectedResourceMetadataFromHeader
with proper validation against request URL

This change fixes an impedance mismatch between OAuthHandler and the
protected resource metadata functions of the oauthex package. The new
signature allows handlers to properly validate resource metadata against
the request URL, as required by RFC 9728.

Fixes #600
2025-10-29 10:08:40 -04:00
..
auth.go many: minor cosmetic changes (#529) 2025-09-25 16:06:24 -04:00
auth_test.go add HTTP Request to TokenVerifier (#404) 2025-09-03 16:23:42 -04:00
client.go auth: change OAuthHandler to take http Request and Response (#603) 2025-10-29 10:08:40 -04:00
client_test.go auth: change OAuthHandler to take http Request and Response (#603) 2025-10-29 10:08:40 -04:00