Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/plugin/keycloak
Yannick Warnier 11922c1283
Documentation: Fix typo in Keycloak's README
1 year ago
..
lang Minor - check if file exists, add comments 7 years ago
KeycloakPlugin.php Minor - flint fixes 7 years ago
README.md Documentation: Fix typo in Keycloak's README 1 year ago
index.php Add keycloack plugin BT#15160 7 years ago
metadata.php Minor - format code 6 years ago
plugin.php Add keycloack plugin BT#15160 7 years ago
settings.dist.php Add URL shortcuts see BT#15160 6 years ago
start.php Minor - fix php errors 6 years ago

README.md

Keycloak

  1. Enable the plugin.

  2. Create a new settings.php file here plugin/keycloak/settings.php you can find an example here: plugin/keycloak/settings.dist.php

  3. Edit the settings.php file with your Keycloak settings:

'idp' => array(
    'entityId' => 'http://localhost:8080/auth/realms/master',
    'singleSignOnService' => array (
        'url' => 'http://localhost:8080/auth/realms/master/protocol/saml',
    ),
    'singleLogoutService' => array (
        'url' => 'http://localhost:8080/auth/realms/master/protocol/saml',
    ),
    'x509cert' => 'xxx',
)
  1. Configure your keycloak server with the following settings:

Change the client scope roles to "Single role attribute".

  • Client Scopes-> role_list -> Mappers -> role list -> "Single Role Attribute" = true

Add user mappers for "FirstName", "LastName" and "Email" so Chamilo can get those values.

Clients -> (select the client previously created) -> mappers -> create

Name: Email Mapper Type = User Property. User Attribute: Email Friendly Name: Email SAML Attribute Name: Email SAML Attribute: Basic

Repeat the process for the 3 attributes.

Create a demo user in keycloak

Try to login using the new keycloak button in Chamilo.

When everything works, restrict Valid redirect URIs setting from * to http://www.example.org/plugin/keycloak/start.php?acs