Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-26622

Adding CAS "Assertion" Object as Session Attribute

    Details

    • Type: Feature Request
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      All

      Description

      Right now the CASFilter.java does add only the Principal name that is retrieved from the CAS via the Atttribute pushing to the Request attribute under the key

      ...
      			if (assertion != null) {
      				AttributePrincipal attributePrincipal =
      					assertion.getPrincipal();
      
      				login = attributePrincipal.getName();
      
      				session.setAttribute(WebKeys.CAS_LOGIN, login);
                                      //Addtional Attribute which could be added
                                      session.setAttribute(WebKeys.CAS_ATTRIBUTE_PRINCIPAL, attributePrincipal);
      			}
      ...
      

      it will be worth to add the AttributePrincipal object to the session attribute so that application that wants to extract the attributes pushed via CAS could use the AttributePrincipal, otherwise we need to rely in SAML for fetching the attributes.

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              kamesh.sampath Kamesh Sampath (Inactive)
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Packages

                Version Package