Symfony2: Custom Authentication Provider
Regarding Security, in Symfony you have 2 providers. One is an Authentication provider and the other is an UserProvider.
- An authentication provider is used to extract information from a request to be used to identify the user.
- An user provider is used to check if the user found by the authentication provider exists on our pool of users.
AP: -Hey UP, i think i found an user on the request, take a look at this token-UP: -let me see… Mmhh.. yeah, i found one, your token is valid!-AP: -Ok, thanks. Hey Symfony Security layer, this token is valid!-