In my symfony 2 application I'm using FOSUserBundle to authenticate users.
Now i'd like to give an option to login users by SSO.
Since there are multiple Idps for the SSO, I'm not sure there's a sufficient bundle for it. Anyone knows a Bundle where i can set multiple Idps?
If not, I might need to make it myself, but I wonder if I can login a user based on email only using FOSUserBundle (without password).
Anyone has experience with this?
You could create yourself your own user provider and they use both FOSUserBundle and your own as explained here:
https://symfony.com/doc/current/security/multiple_user_providers.html
Related
I am doing a back office under symfony and easy admin bundle and FOSUserBundle. I would like to know if it was possible when the admin connects in his space, he sees only the normal users, which do not have the role admin only.
or separate administrators from normal users.
I ask the question because using Sonata I know it's possible, but since I have to do it under easyadmin I do not know if it's feasible.
I have been trying to do this for a while now and I would like to know if it was possible.
Merci d'avance :)
In easy admin bundle you can filter entities with a DQL FILTER see the documentation here
You can use this for dislplaying only normal users.
you can try this filter:
dql_filter: "entity.roles NOT LIKE '%%env(ROLE_ADMIN)%%'"
as you seem to be French-speaking, here is a very interesting article about easyadminbundle
Iam having 4 Wordpress sites, 2 MediaWiki sites and one Drupal site.
I want to create a Single centralized login system so that users can access all these sites with Single account. I want to host it. I don't want SSO like FB Login, G Login, etc.
Is there any wordpress plugin or CMS or Script available for this?
Welcome to Stackoverflow!
What you want is implementing your own Identity Provider (IdP). Today the two most used standards are OAuth 2.0 and SAML.
For SAML - you can use for example simpleSAMLphp project. It will allow you to have SSO with your own user repository and there are some nice plugins for common CMS systems (Drupal, Wordpress) to integrate with any SAML IdP.
If you're new in this field it may take you some time to fully understand and debug the SAML authentication, but it is commonly used, secure (if you do it right) and works.
I am new to Symfony and Sylius, and I have installed Sylius which is installed as a symfony "vendor" bundle by default.
I have moved the route to Sylius (which is accessible by default at "/") to "/shop", and I will developp myself the home page and other pages (not related to the shop, like information pages, etc.)
But, I need authentication in these other pages to manage user accounts (with data not related to the shop).
What I would like is a shared authentication system, but I don't know if it is possible to use Sylius' one and how to do this.
Thanks for you help !
Jon
THis is related to Symfony, you will need to override security in way to share context - your app and Sylius. Then some parts of Sylius will be locked as now.
http://symfony.com/doc/current/security.html
What I have made is route my Bundle under "/admin/blog". As my route is under /admin, I have to authenticate with the Sylius authentication, and it Seems to work well ! :-)
i'm little confused..
I'm using sonata admin bundle in my project and i'd like to install user management for this, tell me please do i really have to install sonata user bundle? (i was using this tutorial http://domitable.com/content/getting-started-symfony-23-sonata-admin-user-bundles ) or only fos user bundle will be enought? i'm asking this becouse i want to install as little dependiendes as possible.
honestly the best way for me would be to use only my custom user bundle with custom user entity..(if need be only my class + FOS)
Do i have to use easy-extends to generate my user entity class or default doctrine generate entity is okay?
What about sonata ACL in this sitaution?
what is the best way to resolve this issue?
I'll try my best with what I have. Basically, SonataUserBundle is only useful if you want to manage the users via SonataAdmin.
FosUserBundle is simply a bundle that manages users and some actions such as login, but from the point of view of a user. That is, it does not have the tools built in for an admin to manage users.
Therefore, to manage the users, you need SonataAdmin and SonataUser.
If you easy extends SonataUser, then you could transfer your custom entity in the extended bundle. That is a way you could do it.
ACL is a complete different thing, read here for more information:http://symfony.com/fr/doc/current/cookbook/security/acl.html
I want to create a way for Moodle users to automatically login to a Drupal site using OAuth or ldap.
How can this be done..
Is there any well written modules or api around there?
Any help will be thankful and grateful?
Thanks in advance...
Have you already had a look to this integration mechanism?
http://drupal.org/project/moodle
You can configure your Drupal site with Moodle using any of the 2 protocols (OAuth or LDAP). If you are looking for some plugins or module to do so, you can check out the Drupal OAuth Login module for OAuth and also the Drupal LDAP module (if you are looking for LDAP)