Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure the firewalls for saml to use onAuthinticationSucess #201

Open
SaraMohamedSamir opened this issue Nov 28, 2022 · 0 comments
Open

Comments

@SaraMohamedSamir
Copy link

SaraMohamedSamir commented Nov 28, 2022

Hello,

I am trying for long time now to configure our app to update the DB for user roles after SAML authentication is successful. For now our integration is working but it only creates a new user in our DB but, when the user is updated our internal DB is never updated.
I have trying to configure the firewalls in security.yml as following but I couldn't success:

 frontend:
        access_denied_handler: mm.frontend_access_denied_handler
        pattern: ^/
        context: MM
        saml:
            check_path: /saml/acs
            login_path: /saml/login
            failure_path: /user/login
            user_factory: mm.user_factory
            success_handler: mm.custom_authentication_success_handler
            persist_user: true

I am not sure if the OneLoginBundle works with (success_handler) specifically or not.
Thanks in advance for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant