Heya,
I noticed the layout shows the connected user's username - this is great!
Do you plan to embed a login / logout management, either based on a simple security.yml in_memory provider, or even a FOSUser integration (in a wayyy farther time) ?
I had to make a simple in_memory login / logout management for a simple project which could be integrated to your bundle's layout if you wish.
Best,
Nicolas
In fact, at the moment, the login management is entirely provided by Symfony's Security Component, so login/logout system would probably only make the bundle heavier than it should be, what do you think @javiereguiluz ?
Sure, but on the other hand it would give an easy and basic way to authenticate
To authenticate, you need to setup a firewall in the security.yml file, so "technically" it comes out of EasyAdmin system. It would certainly need to create a new "SecurityController" that will handle the "login", "check" and "logout" requests, which is not the point right now.
But yes it can be good to implement this, I think it's probably a feature that's gonna be developed in the future ;)
I think, it will be better if easy bundle create a eye catching interface of log in interface also all component (page) of FosUserBundle
As FosUserBundle is _external_ to EasyAdmin, it's up to you to set it up for your admin interface.
As I said, to set up a login interface for EasyAdmin when using FosUserBundle, you have to install the bundle, create your User class, set up your security firewall, set up roles/ACL, and populate your access_control list in security.yml to redirect the non-authenticated user to your login page. And you can easily read the FosUserBundle template overriding documentation page in order to extend the EasyAdmin layout and have your login page directly in EasyAdmin.
Maybe one day it's gonna be done by EasyAdmin, but it's not the current subject ;)
Closing it as _"won't fix"_ because in the near term we're not going to provide this feature. We'll keep relying on Symfony for the security part. In the future we'll reconsider this decision.
I have authentication already setup and working. Is there a way to link to the logout route from the security provider. I would like to have a logout link next to where the username is displayed
@evansmwendwa this was on my TODO list for a long time, so I decided to finish this feature. See #1560.
Would be nice to have a simple example how to create a login area for the backend.
@ninsky You mean like what this documentation page explains? => https://symfony.com/doc/current/security/form_login_setup.html
@Pierstoval, yes, I think an easy example based on this page would be helpful. Or a link to the page you've mentioned.
EasyAdminBundle has no opinion on how symfony authentication works. I think symfony documentation is organized well enough for feature discovery
Most helpful comment
@evansmwendwa this was on my TODO list for a long time, so I decided to finish this feature. See #1560.