i´m trying to implement a simple authorization with slim on serverside and angularJS on client side. For Testing the REST APi i´m using a program called Rested for Mac which allows to send rest calls.
I want to deliver, once authorization has completed, at each rest call an jwt token which can than be used within slim to authorize requests for certain paths.
Now i deliver via Rested the following header and body:
Accept: */*
Accept-Encoding: gzip, deflate
Content-Type: application/json
Authorization: jwt-test
Accept-Language: de-de
{
"login": "TestLogin",
"password": "TestPassword",
"uuid": "dsfglj45690dfgkl456"
}
And than just print out the whole header:
Slim\Http\Headers Object ( [data:protected] => Array ( [Host] => localhost:8888
[Content-Type] => application/json [Content-Length] => 89 [Connection]
=> keep-alive [Accept] => */* [User-Agent] => Rested/2009 CFNetwork/673.4
Darwin/13.4.0 (x86_64) (iMac13%2C2) [Accept-Language] => de-de [Accept-Encoding]
=> gzip, deflate ) )
As you can see, there is no Authorization within this array.
I also checked this with firefox directly, same results. O can see Authorization string within the request headers with firebug, but it is not in the dumped array at slimframework.
Does anyone has a hint where my problem lies?
Thanks in advance and kind regards
solick