Chris Coutinho
|
737f10f190
|
fix(astrolabe): improve token refresh error handling and validation
- Extract magic number to TOKEN_EXPIRY_BUFFER_SECONDS constant
- Add URL validation for astrolabe_internal_url with fallback
- Warn when internal URL uses external port mapping (misconfiguration)
- Differentiate HTTP error handling by status code:
- Network errors (LocalServerException): warning level
- Auth errors (401/403): error level (token invalid)
- Server errors (500+): warning level (transient)
- Reduce log level for IdP selection messages to debug
- Add integration tests for credential storage, isolation, and revoke/reprovision
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-01-17 19:43:15 +01:00 |
|