-
Problem report
-
Resolution: Unresolved
-
Major
-
None
-
6.4.10, 7.0.0alpha9
-
None
-
Tested at VM installation with apache
Testet ad Docker installation with apache
Steps to reproduce:
- Install simple environment and enable SAML (no need for a working SAML environment)
- Create API key with super admin rights
- curl -v -X GET http://localhost/api_scim.php/Users?filter=userName+eq+%2208804361-82b0-4acd-b2ab-1be9fc33e797%22 -H "authorization: Bearer 91c1c211776400ccb0af2cca42057297f486394fc94bc9e6fce2c192f0c46580"
Result:
{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Not authorized.","status":403}Expected:
If using Authorization with capital A:
curl -v -X GET http://localhost/api_scim.php/Users?filter=userName+eq+%2208804361-82b0-4acd-b2ab-1be9fc33e797%22 -H "Authorization: Bearer 91c1c211776400ccb0af2cca42057297f486394fc94bc9e6fce2c192f0c46580
Result:
{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User"],"totalResults":0,"Resources":[]}According to [HTTP Protocol specification|
https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2], HTTP headers need to be case insenitive.