MantisBT: master cf9fe3bf
| Author | Committer | Branch | Timestamp | Parent |
|---|---|---|---|---|
| khushal | vboctor | master | 2026-07-30 03:29 | master 93eb538d |
| Affected Issues | 0037333: Accept optional Bearer prefix on API token in Authorization header | |||
| Changeset | Accept optional Bearer prefix on API token The REST API only accepted the API token bare api_token_parse_credentials() strips an optional 'Bearer ' prefix The bare form remains fully supported, so the change is additive. An Also documents both accepted forms in the OpenAPI and Swagger Fixes 0037333 |
|||
| mod - api/rest/mantisbt_openapi.yaml | Diff File | |||
| mod - api/rest/restcore/AuthMiddleware.php | Diff File | |||
| mod - api/rest/swagger.json | Diff File | |||
| mod - core/api_token_api.php | Diff File | |||
| add - tests/Mantis/ApiTokenApiTest.php | Diff File | |||
| add - tests/rest/RestAuthHeaderTest.php | Diff File | |||