Commit graph naco-api/internal/server/auth_test.go
Author SHA1 Message Date
57a9c43890
fix: interface{} -> any, +goose up -> +goose up
Some checks failed
Test Every Endpoint on Base Sepolia / test_endpoints (push) Failing after 3m52s
CI/CD Go Verification / build_and_test (push) Successful in 1m21s
2026-09-05 01:01:07 +00:00
3287e15ac0
Fix CDP auth to match official SDK implementation
Some checks failed
Test Every Endpoint on Base Sepolia / test_endpoints (push) Failing after 1m31s
CI/CD Go Verification / build_and_test (push) Successful in 1m10s
- Proper key type detection: Ed25519 (base64, 64 bytes) vs EC (PEM)
- Fixed PKCS8 fallback - removed incorrect PKCS8->EdDSA path for EC keys
- Added 'iat' claim to match official SDK
- Added base64 import for Ed25519 key decoding
- Return proper errors instead of ignoring them in GetAuthHeaders
- Added unit tests for EC/Ed25519 keys, token generation, and auth headers
2026-09-04 23:37:00 +00:00