BlackbitDigitalCommerce / pimcore-single-sign-on

GNU General Public License v3.0
3 stars 0 forks source link

Pimcore 11 set config locations #7

Closed valentin- closed 10 months ago

valentin- commented 11 months ago

Hi, I've installed Versions 1.1.9 with Pimcore 11.1.3 but I'm not able to save the config using the settings-store.

As explained in the readme.md I've added this line to the .env file but has no effect: PIMCORE_WRITE_TARGET_SSO: settings-store

I think the content for the yaml file unter Configuration storage (readme) is invalid, trying to set the config as used for other components won't work:

blackbit_single_sign_on:
    config_location:
        single-sign-on:
            write_target:
                type: 'settings-store'
            read_target:
                type: 'settings-store'

Unrecognized option "single_sign_on" under "blackbit_single_sign_on.configlocation". Did you mean "single-sign-on"? Probably a typo with -/ in the config reader?

Or did I miss something?

Thanks, Valentin

BlackbitDevs commented 11 months ago

Hi @valentin-,

what does bin/console config:dump-reference blackbit_single_sign_on provide you?

Should be something like

blackbit_single_sign_on:
  config_location:
        single-sign-on:
            write_target:
                type:                 symfony-config # One of "symfony-config"; "settings-store"; "disabled"
                options:

                    # Default:
                    directory:           /var/www/html/var/config/single-sign-on
valentin- commented 11 months ago

Hi @BlackbitDevs, yes I'm getting the same output and it's already defined like that. But getting the error.

blackbit_single_sign_on:
    config_location:
        single-sign-on:
            write_target:
                type: settings-store

image

BlackbitDevs commented 10 months ago

Is fixed in 1.1.13.

Please change config to

blackbit_single_sign_on:
  config_location:
    write_target:
      type: 'settings-store'