Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-27399

Add CoreInstance#doAsUser APIs

    Details

      Description

      We want to add CoreInstance#doAsUser APIs allowing to log in the given user into framework and then open a CoreSession.

      This API will leverage Framework#loginAs.

      We should probably also handle the system user in order to replace usage such as below (code extracted from BAF scroller):

      LoginContext loginContext = SYSTEM_USERNAME.equals(username) ? Framework.login() : Framework.loginAsUser(username);
      

      Furthermore, opening a system CoreSession with CoreInstance doesn't always logs in the framework whereas it should. This limitation has presented cases where UnrestrictedSessionRunner was inefficient because session was already unrestricted without an unrestricted login context.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kleturc Kevin Leturc
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.