Merge remote-tracking branch 'origin/develop' into develop

pull/73/head
Sami Mokaddem 2021-10-20 15:41:21 +02:00
commit 0953a91db4
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
3 changed files with 123 additions and 10 deletions

View File

@ -43,6 +43,7 @@ class CerebrateSettingsProvider extends BaseSettingsProvider
'test' => 'testUuid', 'test' => 'testUuid',
], ],
], ],
/*
'Miscellaneous' => [ 'Miscellaneous' => [
'sc2.hero' => [ 'sc2.hero' => [
'description' => 'The true hero', 'description' => 'The true hero',
@ -80,6 +81,7 @@ class CerebrateSettingsProvider extends BaseSettingsProvider
// 'severity' => 'info', // 'severity' => 'info',
'type' => 'integer' 'type' => 'integer'
], ],
*/
], ],
'Network' => [ 'Network' => [
'Proxy' => [ 'Proxy' => [
@ -128,6 +130,115 @@ class CerebrateSettingsProvider extends BaseSettingsProvider
], ],
], ],
], ],
'Authentication' => [
'Providers' => [
'KeyCloak' => [
'keycloak.enabled' => [
'name' => 'Enabled',
'type' => 'boolean',
'severity' => 'warning',
'description' => __('Enable keycloak authentication'),
'default' => false,
],
'keycloak.provider.applicationId' => [
'name' => 'Client ID',
'type' => 'string',
'severity' => 'info',
'default' => '',
'description' => __('The Client ID configured for Cerebrate.'),
'dependsOn' => 'keycloak.enabled'
],
'keycloak.provider.applicationSecret' => [
'name' => 'Client Secret',
'type' => 'string',
'severity' => 'info',
'default' => '',
'description' => __('The client secret in Cerebrate used to request tokens.'),
'dependsOn' => 'keycloak.enabled'
],
'keycloak.provider.realm' => [
'name' => 'Realm',
'type' => 'string',
'severity' => 'info',
'default' => '',
'description' => __('The realm under which the Cerebrate client is enrolled in KeyCloak.'),
'dependsOn' => 'keycloak.enabled'
],
'keycloak.provider.baseUrl' => [
'name' => 'Baseurl',
'type' => 'string',
'severity' => 'info',
'default' => '',
'description' => __('The baseurl of the keycloak authentication endpoint, such as https://foo.bar/baz/auth.'),
'dependsOn' => 'keycloak.enabled'
],
'keycloak.authoritative' => [
'name' => 'Authoritative',
'type' => 'boolean',
'severity' => 'info',
'description' => __('Override local role and organisation settings based on the settings in KeyCloak'),
'default' => false,
'dependsOn' => 'keycloak.enabled'
],
'keycloak.default_role_name' => [
'name' => 'Authoritative',
'type' => 'boolean',
'severity' => 'info',
'description' => __('Override local role and organisation settings based on the settings in KeyCloak'),
'default' => false,
'dependsOn' => 'keycloak.enabled'
],
'keycloak.mapping.org_uuid' => [
'name' => 'org_uuid mapping',
'type' => 'string',
'severity' => 'info',
'default' => 'org_uuid',
'description' => __('org_uuid mapped name in keycloak'),
'dependsOn' => 'keycloak.enabled'
],
'keycloak.mapping.role_name' => [
'name' => 'role_name mapping',
'type' => 'string',
'severity' => 'info',
'default' => 'role_name',
'description' => __('role_name mapped name in keycloak'),
'dependsOn' => 'keycloak.enabled'
],
'keycloak.mapping.username' => [
'name' => 'username mapping',
'type' => 'string',
'severity' => 'info',
'default' => 'preferred_username',
'description' => __('username mapped name in keycloak'),
'dependsOn' => 'keycloak.enabled'
],
'keycloak.mapping.email' => [
'name' => 'email mapping',
'type' => 'string',
'severity' => 'info',
'default' => 'email',
'description' => __('email mapped name in keycloak'),
'dependsOn' => 'keycloak.enabled'
],
'keycloak.mapping.first_name' => [
'name' => 'first_name mapping',
'type' => 'string',
'severity' => 'info',
'default' => 'given_name',
'description' => __('first_name mapped name in keycloak'),
'dependsOn' => 'keycloak.enabled'
],
'keycloak.mapping.family_name' => [
'name' => 'family_name mapping',
'type' => 'string',
'severity' => 'info',
'default' => 'family_name',
'description' => __('family_name mapped name in keycloak'),
'dependsOn' => 'keycloak.enabled'
],
]
]
],
'Security' => [ 'Security' => [
'Development' => [ 'Development' => [
'Debugging' => [ 'Debugging' => [
@ -149,6 +260,7 @@ class CerebrateSettingsProvider extends BaseSettingsProvider
], ],
] ]
], ],
/*
'Features' => [ 'Features' => [
'Demo Settings' => [ 'Demo Settings' => [
'demo.switch' => [ 'demo.switch' => [
@ -162,6 +274,7 @@ class CerebrateSettingsProvider extends BaseSettingsProvider
], ],
] ]
], ],
*/
]; ];
} }
} }

View File

@ -9,7 +9,7 @@ $bookmarks = !empty($loggedUser->user_settings_by_name['ui.bookmarks']['value'])
<?= __('Bookmarks') ?> <?= __('Bookmarks') ?>
</h3> </h3>
<div class="row"> <div class="row">
<? if (!empty($bookmarks)) : ?> <?php if (!empty($bookmarks)): ?>
<ul class="col-sm-12 col-md-10 col-l-8 col-xl-8 mb-3"> <ul class="col-sm-12 col-md-10 col-l-8 col-xl-8 mb-3">
<?php foreach ($bookmarks as $bookmark) : ?> <?php foreach ($bookmarks as $bookmark) : ?>
<li class="list-group-item"> <li class="list-group-item">