go-sdk/oauthex
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nikola Petrov e009bacfcb
oauthex: fix content type check in getJSON (#721)
The content type header contains full mimetype string which might
contain parameters. The getJSON function doesn't account for this and so
some responses fail to parse although they are perfectly acceptable. For
example
```
curl -vv 'https://github.com/.well-known/oauth-authorization-server/login/oauth'
```
returns a content type header with the value
```
content-type: application/json; charset=utf-8
```
which is perfectly valid but fails in the current logic.
2025-12-12 09:44:26 -05:00
..
testdata oauthex: move internal/oauthex to oauthex (#559) 2025-10-07 08:39:49 -04:00
auth_meta.go oauthex: validate URL schemes in auth server metadata and DCR 2025-12-11 10:09:43 -05:00
auth_meta_test.go Add Check PCKE Support (#563) 2025-10-14 11:09:28 -04:00
dcr.go oauthex: validate URL schemes in auth server metadata and DCR 2025-12-11 10:09:43 -05:00
dcr_test.go oauthex: move internal/oauthex to oauthex (#559) 2025-10-07 08:39:49 -04:00
oauth2.go oauthex: fix content type check in getJSON (#721) 2025-12-12 09:44:26 -05:00
oauth2_test.go internal/oauthex: fix GetProtectedResourceMetadataFromHeader validation (#561) 2025-10-08 09:30:51 -04:00
oauthex.go oauthex: move internal/oauthex to oauthex (#559) 2025-10-07 08:39:49 -04:00
oauthex_test.go oauthex: update fake oauth server (#564) 2025-10-09 10:38:54 -04:00
resource_meta.go internal/oauthex: fix GetProtectedResourceMetadataFromHeader validation (#561) 2025-10-08 09:30:51 -04:00
url_scheme_test.go oauthex: validate URL schemes in auth server metadata and DCR 2025-12-11 10:09:43 -05:00