You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(security): prevent Windows command injection and improve RFC 7009 compliance (#30)
* fix(security): prevent Windows command injection and improve RFC 7009 compliance
- Use rundll32 instead of cmd /c start to prevent shell metacharacter injection in URLs on Windows
- Replace panic with fmt.Fprintf + os.Exit(1) for consistent error handling in loadConfig
- Write token save warning to stderr instead of stdout in refreshAccessToken
- Add token_type_hint parameter to revocation requests per RFC 7009
* fix(cli): address Copilot review feedback
- Align error message wording to say "retry HTTP client" in loadConfig
- Add token_type_hint assertions to revocation tests for RFC 7009 compliance
* test(revocation): assert call count in access-only revocation test
- Track revocation call count to ensure exactly one request is made
when only an access token exists (no refresh token)
* fix(cli): address Copilot review round 3
- Conditionally include token_type_hint only when non-empty for server compatibility
- Extract browserCommand helper for testability and add unit tests
covering darwin, windows, and linux command construction
0 commit comments