[
https://issues.apache.org/jira/browse/SYNCOPE-1984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18096761#comment-18096761
]
ASF subversion and git services commented on SYNCOPE-1984:
----------------------------------------------------------
Commit 2566d948258cd4053262b0f0c59619671c014b03 in syncope's branch
refs/heads/4_1_X from Matteo Tatoni
[ https://gitbox.apache.org/repos/asf?p=syncope.git;h=2566d94825 ]
[SYNCOPE-1984] Fix problems and add unit test (#1459)
> Support realm-based enduser formLayout configuration
> ----------------------------------------------------
>
> Key: SYNCOPE-1984
> URL: https://issues.apache.org/jira/browse/SYNCOPE-1984
> Project: Syncope
> Issue Type: New Feature
> Components: enduser
> Affects Versions: 4.1.1
> Reporter: Matteo Tatoni
> Assignee: Matteo Tatoni
> Priority: Minor
> Fix For: 4.1.2, 5.0.0
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> The current {{formLayout}} configuration for enduser is applied globally and
> does not allow different {{layouts}} based on the user realm.
> It would be useful to support realm-based configurations, allowing different
> {{formLayout}} rules to be applied depending on the realm assigned to the
> user.
> A possible structure could be:
> {code:json}
> {
> "layouts": {
> "/": {
> "formClass": "org.apache.syncope.client.enduser.panels.UserFormPanel",
> "auxClasses": true,
> "groups": true,
> "plainAttrs": true,
> "derAttrs": true,
> "resources": true,
> "whichPlainAttrs": {},
> "whichDerAttrs": {},
> "passwordManagement": true,
> "detailsManagement": true,
> "sidebarLayout": {
> "editUserEnabled": true,
> "passwordManagementEnabled": true,
> "securityQuestionManagementEnabled": true,
> "extensionsEnabled": {}
> }
> },
> "/even": {
> "formClass": "org.apache.syncope.client.enduser.panels.UserFormPanel",
> "auxClasses": false,
> "groups": false,
> "plainAttrs": true,
> "derAttrs": false,
> "resources": true,
> "whichPlainAttrs": {},
> "whichDerAttrs": {},
> "passwordManagement": true,
> "detailsManagement": true,
> "sidebarLayout": {
> "editUserEnabled": true,
> "passwordManagementEnabled": false,
> "securityQuestionManagementEnabled": true,
> "extensionsEnabled": {}
> }
> }
> }
> }
> {code}
> The {{/}} configuration would act as the default layout, while more specific
> realm configurations would override it.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)