fix: [Keycloak baseurl] remove trailing slashes

cli-modification-summary
iglocska 2022-01-27 20:59:58 +01:00
parent eb5f7aa675
commit c983c6f130
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 5 additions and 1 deletions

View File

@ -188,7 +188,11 @@ class CerebrateSettingsProvider extends BaseSettingsProvider
'severity' => 'info',
'default' => '',
'description' => __('The baseurl of the keycloak authentication endpoint, such as https://foo.bar/baz/auth.'),
'dependsOn' => 'keycloak.enabled'
'dependsOn' => 'keycloak.enabled',
'beforeSave' => function (&$value, $setting, $validator) {
$value = rtrim($value, '/');
return true;
}
],
'keycloak.authoritative' => [
'name' => 'Authoritative',