Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-1756

EJB3: EJBContext getCallerPrincipal does not see the custom principal

    Details

    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Use the custom principal in the calling client.

      SecurityClient client = SecurityClientFactory.getSecurityClient();
      client.setSimple(new CustomPrincipal("testuser"), "testpwd");
      client.login();

      Show
      Use the custom principal in the calling client. SecurityClient client = SecurityClientFactory.getSecurityClient(); client.setSimple(new CustomPrincipal("testuser"), "testpwd"); client.login();
    • Estimated Difficulty:
      Medium

      Description

      Forum thread reports a case where custom principal in the Login Module is not being propagated to the EJBContext getCallerPrincipal.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  wolfc Carlo de Wolf
                  Reporter:
                  anil.saldhana Anil Saldanha
                • Votes:
                  23 Vote for this issue
                  Watchers:
                  24 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: