Hi and thanks for your work on this bundle!
I'm currently in the process of integrating it inside a new Symfony site.
In my use-case I don't want the user provider to create users on SAML success, but rather:
- retrieve the SAML attributes
- process them depending on the IdP
- and determine the username/identifier based on these attributes and IdP.
I used to use aerialship/saml-sp-bundle which had a handy UserManagerInterface with loadUserBySamlInfo(SamlSpInfo $samlInfo): UserInterface. The user provider could implement this interface, and that method would be called on SAML auth success. See the docs for a little more details.
Note: It also has a createUserFromSamlInfo(SamlSpInfo $samlInfo): UserInterface but I'm currently not interested in this feature 😉
Is something similar currently possible (maybe listening to an event)?
If not, do you think it could improve the bundle?
Thanks!
Hi and thanks for your work on this bundle!
I'm currently in the process of integrating it inside a new Symfony site.
In my use-case I don't want the user provider to create users on SAML success, but rather:
I used to use
aerialship/saml-sp-bundlewhich had a handyUserManagerInterfacewithloadUserBySamlInfo(SamlSpInfo $samlInfo): UserInterface. The user provider could implement this interface, and that method would be called on SAML auth success. See the docs for a little more details.Note: It also has a
createUserFromSamlInfo(SamlSpInfo $samlInfo): UserInterfacebut I'm currently not interested in this feature 😉Is something similar currently possible (maybe listening to an event)?
If not, do you think it could improve the bundle?
Thanks!