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
Could you please assist me one more time? Is there any way to update a logged in user info if his name/phone/title were changed? I haven't found any other option except of override AuthenticationSuccessHandlerInterface and put it there. But I suppose that is not the best solution
I don't know if it is the best way to do this, but it works for us 😄
I am not sure why we are not using Symfony's security events. This should be a better way to do this :-) You may fetch the current SamlSpResponseToken which has a method getResponse() which should return the SAML Response.
Activity
frostieDE commentedon Apr 5, 2020
One way is to provide a custom
SamlSpTokenFactorywhich then dispatches a customAuthenticationEvent. See my implementation (SamlSpTokenFactory.php, AuthenticationEvent.php).Do not forget to configure the custom Factory inside your
security.yaml:... secured: pattern: ^/ light_saml_sp: provider: database user_creator: App\Security\User\UserCreator login_path: /saml/login check_path: /saml/login_check token_factory: App\Security\SamlSpTokenFactoryI don't know if it is the best way to do this, but it works for us 😄
I am not sure why we are not using Symfony's security events. This should be a better way to do this :-) You may fetch the current
SamlSpResponseTokenwhich has a methodgetResponse()which should return the SAML Response.