mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-11-25 19:43:29 +01:00
The api_token pattern required ':' or '=' right after the keyword, so 'Authorization: Bearer <token>' (RFC 6750, section 2.1) and quoted keys such as '"api_key": "..."' or an OAuth '"access_token"' field were never flagged. Accept an optional closing quote after the keyword and an Authorization header carrying a Bearer token, and skip placeholder values such as YOUR_ACCESS_TOKEN, your_api_key_here and xxxxxx.