Commit Graph

5 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] a6ac562df2 Fix nolint directive format to match codebase style
Remove explanatory text after //nolint:goconst directives to be
consistent with the rest of the codebase. The codebase pattern is to
use just //nolint:goconst without additional comments.

This matches the style used in controller_test.go and other test files
throughout the project.

Co-authored-by: rchincha <45800463+rchincha@users.noreply.github.com>
2026-01-15 20:33:59 +00:00
copilot-swe-agent[bot] 9e9e6f43da Add nolint directives to suppress goconst warnings
The "sub" string in bearer_oidc.go is the standard OIDC claim name
defined by the specification and should remain as a literal.

The "test-user" string in bearer_oidc_test.go is test fixture data
that doesn't benefit from being extracted to a constant.

Both warnings are suppressed with //nolint:goconst directives.

Co-authored-by: rchincha <45800463+rchincha@users.noreply.github.com>
2026-01-15 19:13:52 +00:00
copilot-swe-agent[bot] 18e4066277 Fix linting issues in OIDC bearer authentication code
Co-authored-by: rchincha <45800463+rchincha@users.noreply.github.com>
2026-01-15 18:33:37 +00:00
copilot-swe-agent[bot] 802c2be924 Address code review feedback
- Use NewBearerAuthorizer constructor instead of manual initialization
- Remove unused CreateOAuth2Config helper function
- Remove unnecessary sleep calls from tests (faster and more reliable)
- Remove unused oauth2 import

Co-authored-by: rchincha <45800463+rchincha@users.noreply.github.com>
2026-01-14 21:22:50 +00:00
copilot-swe-agent[bot] e4120cd6d2 Add comprehensive tests for OIDC workload identity
- Add unit tests for OIDCBearerAuthorizer
- Test configuration validation
- Test token authentication with various scenarios
- Test custom claim mapping
- Test multiple audiences support
- Test token expiry and invalid tokens
- All tests passing

Co-authored-by: rchincha <45800463+rchincha@users.noreply.github.com>
2026-01-14 21:18:07 +00:00