1
1
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2026-11-08 09:45:01 +01:00
seaweedfs/weed/iam
Chris Lu 23c25379ca
iam: add ECDSA support for OIDC token validation (#8166)
* iam: add ECDSA support for OIDC token validation

Fixes seaweedfs/seaweedfs#8148

* iam: refactor OIDC ECDSA tests and add failure cases

- Refactored TestOIDCProviderJWTValidationECDSA to use t.Run
- Added sub-tests for expired token, wrong key, invalid issuer, and invalid audience

* Update weed/iam/oidc/oidc_provider_test.go

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* iam: improve error type assertions for OIDC invalid signature tests

- Updated both RSA and ECDSA tests to specifically check for ErrProviderInvalidToken

* iam: pad EC coordinates in OIDC tests to comply with RFC 7518

- Coordinates are now zero-padded to the full field size (e.g., 32 bytes for P-256)
- Ensures interoperability with strict OIDC providers

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-01-29 20:03:43 -08:00
..
integration Fix IAM OIDC role mapping and OIDC claims in trust policy (#8104) 2026-01-23 21:35:26 -08:00
ldap Add AssumeRole and AssumeRoleWithLDAPIdentity STS actions (#8003) 2026-01-12 10:45:24 -08:00
oidc iam: add ECDSA support for OIDC token validation (#8166) 2026-01-29 20:03:43 -08:00
policy iam: support ForAnyValue and ForAllValues condition set operators (#8105) 2026-01-24 13:34:49 -08:00
providers IAM: Add Service Account Support (#7744) (#7901) 2025-12-29 20:17:23 -08:00
sts fix: propagate OIDC attributes to STS session token for IAM policies (#8079) 2026-01-21 13:27:33 -08:00
util S3 API: Advanced IAM System (#7160) 2025-08-30 11:15:48 -07:00
utils chore: execute goimports to format the code (#7983) 2026-01-07 13:06:08 -08:00
constants.go Fix special characters in admin-generated secret keys (#7994) 2026-01-09 11:55:17 -08:00
helpers.go fix: resolve inconsistent S3 API authorization for DELETE operations (issue #7864) (#7865) 2025-12-24 10:29:30 -08:00
helpers_test.go Fix special characters in admin-generated secret keys (#7994) 2026-01-09 11:55:17 -08:00
responses.go IAM: Add Service Account Support (#7744) (#7901) 2025-12-29 20:17:23 -08:00