You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am implementing a REST-WS with symfony using HMAC for security.
So, when calculating the check sum I build a string containing any data send to the server.
On the server side I have to recalculate the check sum, but as GET-Parameters are getting
sorted when calling $request->getQueryString() this leads to an other check sum, so the authentication
fails, even everything else is fine.
I also tried to use $request->server->get('QUERY_STRING') but this does not work as it seems that the request
is redirected ( https://github.com/fabpot/Silex/issues/149 ) even with GET - parameters.
So /an/uri?b=2&a=1 becomes /an/uri/?a=1&b=2, which would be ok, but the params are sorted as well, which
causes a false check sum.
It would be nice $request->server->get('QUERY_STRING') always returns the original parameter order.
The text was updated successfully, but these errors were encountered:
I am implementing a REST-WS with symfony using HMAC for security.
So, when calculating the check sum I build a string containing any data send to the server.
On the server side I have to recalculate the check sum, but as GET-Parameters are getting
sorted when calling $request->getQueryString() this leads to an other check sum, so the authentication
fails, even everything else is fine.
I also tried to use $request->server->get('QUERY_STRING') but this does not work as it seems that the request
is redirected ( https://github.com/fabpot/Silex/issues/149 ) even with GET - parameters.
So /an/uri?b=2&a=1 becomes /an/uri/?a=1&b=2, which would be ok, but the params are sorted as well, which
causes a false check sum.
It would be nice $request->server->get('QUERY_STRING') always returns the original parameter order.
The text was updated successfully, but these errors were encountered: