lightSAML / SpBundle

SAML2 SP Symfony Bundle based on LightSAML
https://www.lightsaml.com/SP-Bundle/
MIT License
66 stars 70 forks source link

Error installing SPBundle on Symfony 4.0.9 #77

Closed jhonnynho closed 5 years ago

jhonnynho commented 5 years ago

Hi, I have an error when I install this bundle, when I run this $ composer.phar require lightsaml/sp-bundle, then appears this error

The child node "own" at path "light_saml_symfony_bridge" must be configured.

What can I do?

Thanks in advance

arturslogins commented 5 years ago

Hey, what did you do to fix this issue?

jhonnynho commented 5 years ago

Hey @arturslogins, after installing the library you have to create the light_saml_symfony_bridge.yaml into the config/packages directory. That message is really a warning, when you run $ composer.phar require lightsaml/sp-bundle the bundle installs without problems. So, create the file and you will have to put something like this.

light_saml_symfony_bridge:
    own:
        entity_id: http://localhost:8008/saml
        credentials:
            -
                certificate: "%kernel.root_dir%/../vendor/lightsaml/lightsaml/web/sp/saml.crt"
                key:         "%kernel.root_dir%/../vendor/lightsaml/lightsaml/web/sp/saml.key"
                password:    ~
    party:
        idp:
            files:
                - "%kernel.root_dir%/../src/Idp/idp.local.xml"
#                - "%kernel.root_dir%/../vendor/lightsaml/lightsaml/web/sp/openidp.feide.no.xml"
    store:
        id_state: id_store

I hope it helps you. See u.