Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-74114 Make Liferay compatible with version 2.0 tests in the Portlet 3.0 TCK
  3. LPS-76630

Portlet 3.0 TCK: Method getAuthType(): Returns a String indicating the authentication type if the request was authenticated.

    Details

      Description

      Test failures:

      4 test cases fail because PortletRequest.getAuthType() returns null:

      • V2RequestTests_PortletRequest_ApiAction_getAuthType1
      • V2RequestTests_PortletRequest_ApiEvent_getAuthType1
      • V2RequestTests_PortletRequest_ApiRender_getAuthType1
      • V2RequestTests_PortletRequest_ApiResource_getAuthType1
      • V3HeaderPortletTests_SPEC14_PortletRequest_ApiHeader_getAuthType1

      Background:

      Portlet Spec 3.0 Ch 14.1.6:

      The getAuthType method indicates the authentication scheme being used between the user and the portal. It may return one of the defined constants (BASIC_AUTH, DIGEST_AUTH, CERT_AUTH, and FORM_AUTH) or another String value that represents a vendor-provided authentication type. If the user is not authenticated, the getAuthType method must return null.

      And JavaDoc of javax.portlet.PortletRequest:

      /**
       * Returns the name of the authentication scheme used for the 
       * connection between client and portal,
       * for example, BASIC_AUTH, CLIENT_CERT_AUTH, 
       * a custom one or null if there was no authentication.
       *
       * @return    one of the static members BASIC_AUTH, 
       *       FORM_AUTH, CLIENT_CERT_AUTH, 
       *        DIGEST_AUTH (suitable for == comparison) 
       *       indicating the authentication scheme, 
       *       a custom one, or 
       *       null if the request was 
       *       not authenticated.     
       */
      

      In Liferay's SecureFilter, if the current user is not default user, auth type will be set to null.

        Attachments

          Activity

            People

            • Assignee:
              shuyang.zhou Shuyang Zhou
              Reporter:
              dante.wang Dante Wang
              Recent user:
              Csaba Turcsan
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 33 weeks, 4 days ago

                Packages

                Version Package
                7.0.0 DXP FP40
                7.0.0 DXP SP7
                7.0.5 CE GA6
                7.0.X
                Master