Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: 4.3.3
    • Fix Version/s: 4.3.4, 4.4.0
    • Component/s: None
    • Labels:
      None
    • Similar Issues:
      Show 5 results 

      Description

      See http://blogs.sun.com/pdblog/entry/opensso_and_liferay_integration

      Instead of a writing a few minor hooks and making some properties changes, you just go to the GUI now.

      Enterprise Admin -> Settings -> Authentication -> OpenSSO

        Activity

        Show
        john wang added a comment - this code doesn't seem to be working. See link to forum posts about issues: http://www.liferay.com/web/guest/community/forums/message_boards/message/464781 http://www.liferay.com/web/guest/community/forums/message_boards/message/479061 https://www.liferay.com/web/guest/community/forums/message_boards/message/508581
        Show
        john wang added a comment - this code doesn't seem to be working. See link to forum posts about issues: http://www.liferay.com/web/guest/community/forums/message_boards/message/464781 http://www.liferay.com/web/guest/community/forums/message_boards/message/479061 https://www.liferay.com/web/guest/community/forums/message_boards/message/508581
        Hide
        James Min added a comment -

        Here is the relevant post from the 3rd thread above:

        Hi

        this session variable is set in OpenSSOFilter.java.

        String cookieName = PrefsPropsUtil.getString(
        companyId, PropsUtil.OPEN_SSO_SUBJECT_COOKIE_NAME,
        PropsValues.OPEN_SSO_SUBJECT_COOKIE_NAME);

        This will get the cookie value which we will set in the settings of Enterprise Admin.

        protected boolean isAuthenticated(
        HttpServletRequest req, String cookieName) {

        String cookieValue = CookieUtil.get(req.getCookies(), cookieName);
        if (Validator.isNotNull(cookieValue))

        { HttpSession ses = req.getSession(); ses.setAttribute(WebKeys.OPEN_SSO_LOGIN, cookieValue); return true; }

        else

        { return false; }

        }

        inside this method it checks for the same coookie from the request which is coming from Fed Access manager . If cookie is not coming from FAM its value will be set to null , which is what exactly happening.

        It seems to be on the Liferay end. Here's the actual error message from the server log.

        ERROR [OpenSSOAutoLogin:185] no content-type

        This happens once the code picks up the cookie and session variable. Which for me, right now takes me having to press the "sign-in" button -> going to OpenSSO and logging in -> redirect back to liferay still not logged in -> choose sign-in from the drop-down menu again -> then I see this error message.

        The liferay code isn't able to pull the user profile from the OpenSSO REST call when it does the connection.

        Show
        James Min added a comment - Here is the relevant post from the 3rd thread above: Hi this session variable is set in OpenSSOFilter.java. String cookieName = PrefsPropsUtil.getString( companyId, PropsUtil.OPEN_SSO_SUBJECT_COOKIE_NAME, PropsValues.OPEN_SSO_SUBJECT_COOKIE_NAME); This will get the cookie value which we will set in the settings of Enterprise Admin. protected boolean isAuthenticated( HttpServletRequest req, String cookieName) { String cookieValue = CookieUtil.get(req.getCookies(), cookieName); if (Validator.isNotNull(cookieValue)) { HttpSession ses = req.getSession(); ses.setAttribute(WebKeys.OPEN_SSO_LOGIN, cookieValue); return true; } else { return false; } } inside this method it checks for the same coookie from the request which is coming from Fed Access manager . If cookie is not coming from FAM its value will be set to null , which is what exactly happening. It seems to be on the Liferay end. Here's the actual error message from the server log. ERROR [OpenSSOAutoLogin:185] no content-type This happens once the code picks up the cookie and session variable. Which for me, right now takes me having to press the "sign-in" button -> going to OpenSSO and logging in -> redirect back to liferay still not logged in -> choose sign-in from the drop-down menu again -> then I see this error message. The liferay code isn't able to pull the user profile from the OpenSSO REST call when it does the connection.
        Hide
        Prashant Dighe added a comment -

        mistook commit for self assign...reopening

        Show
        Prashant Dighe added a comment - mistook commit for self assign...reopening
        Hide
        Prashant Dighe added a comment -

        Appears to be same as LEP-5187

        Show
        Prashant Dighe added a comment - Appears to be same as LEP-5187

          People

          • Assignee:
            Prashant Dighe
            Reporter:
            Brian Chan
          • Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development

                Structure Helper Panel