You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have not an user table in my project and the authentification is simple done with the cas server. I used an user provider which implements the UserFactoryInterface to run the create_user function.
So, first of all, is it the best way to autenticate a user without an user provider like an user table ?
If it is true, then, i return in the loaduserbyusername function an usernameNotFoundException to run the create_user function. In this function i create and return a user entity but it is not word. The create_user is running but i can't autenticate me.
Thanks your help.
William.
The text was updated successfully, but these errors were encountered:
If you don't have a user table to work with you can use the in_memory provider, as demonstrated in the documentation under the Basic Example: HTTP Authentication section. I am not 100% clear on what you are trying to do with the UserFactoryInterface, but if you use the in_memory provider you shouldn't need to create a user programmatically - users should be defined in the config file as shown in the documentation.
If you do want to store users in a table, then I recommend the FOSUserBundle.
Hello,
I have not an user table in my project and the authentification is simple done with the cas server. I used an user provider which implements the UserFactoryInterface to run the create_user function.
So, first of all, is it the best way to autenticate a user without an user provider like an user table ?
If it is true, then, i return in the loaduserbyusername function an usernameNotFoundException to run the create_user function. In this function i create and return a user entity but it is not word. The create_user is running but i can't autenticate me.
Thanks your help.
William.
The text was updated successfully, but these errors were encountered: