Closed robbanl closed 8 years ago
Hello,
I have some problems reaching resources requiring authentication.
Using FosUserBundle and have a user created. Copied your controller methods for fetching salt, getting token and fetching information about a user.
What I do:
cURL headers are set with:
$headers = [ CURLOPT_HTTPHEADER => (array)json_decode($tokenRequest->getContent()) ];
Still I get error 401: You are not authenticated.
Also tried generating a WSSE token using CLI tool
php app/console app:token:create myusername mysecretpassword
Have I missed some really basic stuff?
Thanks!
Did some digging and the following error appears in the logs...
The security context was not populated with a Token
Closing this issue in favor of issue #19
I have the same problem. Any issues ?
Hello,
I have some problems reaching resources requiring authentication.
Using FosUserBundle and have a user created. Copied your controller methods for fetching salt, getting token and fetching information about a user.
What I do:
cURL headers are set with:
Still I get error 401: You are not authenticated.
Also tried generating a WSSE token using CLI tool
Have I missed some really basic stuff?
Thanks!