kurollo/saml-bundle

The SamlBundle adds support for SAML 2.0 Service Provider in Symfony >= 5.4

Installs: 72

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 5

Type:symfony-bundle

5.4 2022-08-02 17:49 UTC

This package is auto-updated.

Last update: 2025-05-29 01:47:26 UTC


README

The SamlBundle adds support for SAML 2.0 Service Provider in Symfony >= 5.4. It provides security listener that can be configured to authenticate users against one or more SAML Identity Providers.

License

This bundle is under the MIT license. See the complete license in the bundle:

Resources/meta/LICENSE

Install

composer require kurollo/Saml-Bundle

Configuration

add in services.yml

    ....

    PDias\SamlBundle\Controller\SecurityController:
    tags: [ 'controller.service_arguments' ]
    calls:
        - ['setContainer', ['@service_container', ContainerInterface]]

    ...

add in packages security.yml

secuirty:
    ...

    providres:

    ....
        samlservice:
            id: saml.service.user.provider
    ...

    firewall:
        saml_secured:
            pattern: ^/
            saml:
                provider: samlservice
                login_path: /login-saml
                check_path: /login-check-saml
                default_target_path: /
                always_use_default_target_path: true
            logout:
                path:   /logout-saml
                target: /
    ....

Documentation

Getting Started With SimpleSamlPhp

Credits

Thanks to Esmeralda Câmara from FCCN.