Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-14812

[SA] (7.2.z) ElytronSecurityDomainContextImpl does not propagate authenticated subject

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: EJB, Web Services
    • Labels:
      None

      Description

      We have a usecase scenario which requires ElytronSecurityDomainContextImpl to propagate the authenticated subject from webservice subsystem to

      ejb subystem. With old security domain , we used to rely on the following integration code in the SecurityDomainContextImpl:

          @Override
          public void pushSubjectContext(final Subject subject, final Principal principal, final Object credential) {
              AccessController.doPrivileged(new PrivilegedAction<Void>() {
      
                  public Void run() {
                      SecurityContext securityContext = SecurityContextAssociation.getSecurityContext();
                      if (securityContext == null) {
                          securityContext = createSecurityContext(getSecurityDomain());
      setSecurityContextOnAssociation(securityContext);
                      }
      securityContext.getUtil().createSubjectInfo(principal, credential, subject);
                      return null;
                  }
              });
          }
      

      When an Elytron security domain is configured for the ws application, the functionality is not working as the corresponding method in ElytronSecurityDomainContextImpl is empty.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  asoldano Alessio Soldano
                  Reporter:
                  asoldano Alessio Soldano
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: