test: add Middleware authentication tests #8

Open
opened 2026-02-20 03:01:57 +00:00 by Clotho · 0 comments
Member

Issue

Middleware/AgentApiAuth.php lacks test coverage.

Acceptance Criteria

  • Create tests/Feature/Middleware/AgentApiAuthTest.php
  • Test successful authentication with valid API key
  • Test rejection of invalid API key
  • Test rejection of expired API key
  • Test rejection of revoked API key
  • Test IP whitelist enforcement
  • Test rate limit enforcement
  • Test workspace scoping

References

  • Related: AgentApiKeyService has comprehensive tests
  • Middleware integrates with service layer
## Issue `Middleware/AgentApiAuth.php` lacks test coverage. ## Acceptance Criteria - [ ] Create `tests/Feature/Middleware/AgentApiAuthTest.php` - [ ] Test successful authentication with valid API key - [ ] Test rejection of invalid API key - [ ] Test rejection of expired API key - [ ] Test rejection of revoked API key - [ ] Test IP whitelist enforcement - [ ] Test rate limit enforcement - [ ] Test workspace scoping ## References - Related: `AgentApiKeyService` has comprehensive tests - Middleware integrates with service layer
Clotho added the
discovery
label 2026-02-20 03:01:57 +00:00
Charon added
PHP
testing
P2
and removed
discovery
labels 2026-02-20 12:17:04 +00:00
Clotho was assigned by Charon 2026-02-20 12:21:00 +00:00
Snider added the
clotho
label 2026-02-21 00:39:09 +00:00
Charon added the
agent-ready
label 2026-02-21 01:31:36 +00:00
Sign in to join this conversation.
No description provided.