Add suport for user name correction in Share

- effectively support login by alternative identity attributes, e.g.
  Keycloak login by email
This commit is contained in:
AFaust
2020-09-04 21:39:32 +02:00
parent 96746690b3
commit 74f79afa8a
4 changed files with 273 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<webscript>
<shortname>Get effective user name</shortname>
<description>Retrieves the effective name for the currently authenticated user</description>
<url>/acosix/api/keycloak/effectiveUserName</url>
<format default="json">argument</format>
<authentication>user</authentication>
<transaction buffersize="4096" allow="readonly">required</transaction>
</webscript>

View File

@@ -0,0 +1,3 @@
<#compress><#escape x as jsonUtils.encodeJSONString(x)>{
"userName": "${person.properties.userName}"
}</#escape></#compress>