Matteo Tatoni created SYNCOPE-1984:
--------------------------------------

             Summary: 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
             Fix For: 4.1.2, 5.0.0


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)

Reply via email to