Julio Montoya d4d5e07b00 Minor - fix php errors | 5 tahun lalu | |
---|---|---|
.. | ||
lang | 6 tahun lalu | |
KeycloakPlugin.php | 5 tahun lalu | |
README.md | 5 tahun lalu | |
index.php | 6 tahun lalu | |
metadata.php | 6 tahun lalu | |
plugin.php | 6 tahun lalu | |
settings.dist.php | 6 tahun lalu | |
start.php | 5 tahun lalu |
Create a new settings.php file here plugin/keycloak/settings.php you can find an example here: plugin/keycloak/settings.dist.php
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', )
Create a client with "client id" value: http://www.example.org/plugin/keycloak/metadata.php
Valid redirect URIs: *
Client Protocol: saml
Logout service redirect Binding URL: http://www.example.org/plugin/keycloak/start.php?sls
Change the client scope roles to "Single role attribute".
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 keycloak new button in Chamilo.