The authentication request could not be processed

I am implementing a login module where I am trying to use a database object User

for authentication.

I configured my file security.yml

as follows to integrate a custom object:

providers:
    our_db_provider:
        entity:
           class: UserBundle:User
           property: username

      

But I ran into this error:

The authentication request could not be processed due to a system problem.

Can anyone please let me know why this problem is coming?

+3


source to share


1 answer


If you are using a class for authentication that inherits from your UserBundle \ Entity \ User, you must specify that the latter is a superclass and not an entity. Here's an example for User.orm.yaml:

UserBundle\Entity\User:
type: mappedSuperclass
[...]

      



More information on Doctrine documentation: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/inheritance-mapping.html

0


source







All Articles