I want to change http_basic to http_digest for the firewall, but there is actually no documentation on how to configure http_digest.
Here the link is incomplete or not updated:
http://symfony.com/doc/2.0/reference/configuration/security.html
http_basic: provider: name http_digest: provider: name
In this example, the book uses a scope and a provider.
http://symfony.com/doc/current/book/security.html
http_basic: realm: "Secured Demo Area"
At least this example works, but when I change http_basic to http_digest, the (non-documented) key is missing.
ErrorException: Note: Undefined index: key in .. \ vendor \ symfony \ src \ Symfony \ Bundle \ SecurityBundle \ DependencyInjection \ Security \ Factory \ HttpDigestFactory.php line 80
http_digest: realm: "Secured Demo Area" key: "whatever"
Adding a key seems to work, but after logging in, another error occurs:
Fatal error: Undefined method call Symfony \ Component \ Security \ Http \ EntryPoint \ DigestAuthenticationEntryPoint :: getKey () in .. \ vendor \ symfony \ src \ Symfony \ Component \ Security \ Http \ Firewall \ DigestAuthenticationListener. php on line 79
That I do not know what is missing in my configuration. I just need a working example for http_digest with Symfony 2.
source share