From fcae5a82a7dc7f2cd76d38433b7d1c9a2fb62973 Mon Sep 17 00:00:00 2001 From: AlistairDoswald <31471158+AlistairDoswald@users.noreply.github.com> Date: Tue, 29 May 2018 13:07:52 +0200 Subject: [PATCH] Corrections to the Documentation --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 49e8f85..f4610bd 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ integrated into Keycloak. Currently, the module contains the following mappers: -* JavaScript mapper for SAML: This mapper is analogous to the OIDC script mapper, allowing the use of JavaScript to fill -mappers. +* JavaScript mapper for SAML: This mapper is analogous to the OIDC script mapper, allowing the use of JavaScript to add +attribute values to SAML tokens. This module is currently working on 3.4.3.Final. @@ -21,13 +21,13 @@ This is an example with keycloak available at /opt/keycloak install -d -v -m755 /opt/keycloak/modules/system/layers/client-mappers -o keycloak -g keycloak #Setup the module directory -install -d -v -m755 /opt/keycloak/modules/system/layers/layers/client-mappers/io/cloudtrust/keycloak-client-mappers/main/ -o keycloak -g keycloak +install -d -v -m755 /opt/keycloak/modules/system/layers/client-mappers/io/cloudtrust/keycloak-client-mappers/main/ -o keycloak -g keycloak #Install jar -install -v -m0755 -o keycloak -g keycloak -D target/keycloak-client-mappers-3.4.3.Final.jar /opt/keycloak/modules/system/layers/layers/client-mappers/io/cloudtrust/keycloak-client-mappers/main/ +install -v -m0755 -o keycloak -g keycloak -D target/keycloak-client-mappers-3.4.3.Final.jar /opt/keycloak/modules/system/layers/client-mappers/io/cloudtrust/keycloak-client-mappers/main/ #Install module file -install -v -m0755 -o keycloak -g keycloak -D module.xml /opt/keycloak/modules/system/layers/layers/client-mappers/io/cloudtrust/keycloak-client-mappers/main/ +install -v -m0755 -o keycloak -g keycloak -D module.xml /opt/keycloak/modules/system/layers/client-mappers/io/cloudtrust/keycloak-client-mappers/main/ ``` @@ -58,6 +58,6 @@ __standalone.xml__ It's use is almost analog to the OIDC script mapper: the [nashorn javascript engine](https://docs.oracle.com/javase/10/nashorn/introduction.htm#JSNUG136) is used to evaluate the input script, and the last statement is the value that will be returned in the SAML attribute. The -sole difference to the OIDC varient is that the `SAML javascript mapper` can handle Iterables or arrays as a return +sole difference to the OIDC varient is that the JavaScript mapper for SAML can handle Iterables or arrays as a return value: the result will either be multiple attributes, or a single attribute with a grouped value, depending on the -value of the **Single Group Attribute** option. \ No newline at end of file +value of the **Single Group Attribute** option.