mirror of
https://github.com/bmlong137/alfresco-keycloak.git
synced 2025-09-10 14:11:09 +00:00
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:
@@ -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>
|
@@ -0,0 +1,3 @@
|
||||
<#compress><#escape x as jsonUtils.encodeJSONString(x)>{
|
||||
"userName": "${person.properties.userName}"
|
||||
}</#escape></#compress>
|
Reference in New Issue
Block a user