Search code examples
symfonyauthenticationcookiessymfony-security

Symfony/security authentication by cookie


I am trying to configure the security bundle of Symfony to Authenticate into my web service using a cookie. The problem is that the security bundle doesn't seem to allow authentication in another way than a form, http-basic authentication, a memory, or an LDAP component... For the moment I tried creating a custom WebserviceUserProfiler to control how Users are loaded but when I go to the page I want to access, symfony still ask for an authentication...


Solution

  • Symfony allow you any type of authentication; api keys, custom headers, or some more complex. See

    Api key authentication

    Guard authentication