fix: [Keycloak baseurl] remove trailing slashes
parent
eb5f7aa675
commit
c983c6f130
|
@ -188,7 +188,11 @@ class CerebrateSettingsProvider extends BaseSettingsProvider
|
||||||
'severity' => 'info',
|
'severity' => 'info',
|
||||||
'default' => '',
|
'default' => '',
|
||||||
'description' => __('The baseurl of the keycloak authentication endpoint, such as https://foo.bar/baz/auth.'),
|
'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' => [
|
'keycloak.authoritative' => [
|
||||||
'name' => 'Authoritative',
|
'name' => 'Authoritative',
|
||||||
|
|
Loading…
Reference in New Issue