Uploaded image for project: 'Nuxeo Java Client'
  1. Nuxeo Java Client
  2. JAVACLIENT-106

When using 'PortalSSO' authentication, user name provided to interceptor is not taken inot account

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0, 2.2
    • Fix Version/s: 1.1, 2.3
    • Component/s: API

      Description

      How to reproduce:

      NuxeoClient nuxeoClient = new NuxeoClient("http://localhost:8080/nuxeo", "Administrator", "Administrator");
      nuxeoClient.setAuthenticationMethod(new PortalSSOAuthInterceptor("nuxeo5secretkey", "user1"));
      CurrentUser currentUser = nuxeoClient.fetchCurrentUser();
      System.out.println("current user: " + currentUser.getUsername());
      

      Output should be current user: user1 but is current user: Administrator.

      The following works:

      NuxeoClient nuxeoClient = new NuxeoClient("http://localhost:8080/nuxeo", "Administrator", "Administrator");
      nuxeoClient.setAuthenticationMethod(new PortalSSOAuthInterceptor("nuxeo5secretkey", "user1")).timeout(10);
      CurrentUser currentUser = nuxeoClient.fetchCurrentUser();
      System.out.println("current user: " + currentUser.getUsername());
      

      Output is current user: user1.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h