ICEfaces
  1. ICEfaces
  2. ICE-5570

Spring Security docs and tutorial should be updated for v3

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2a
    • Fix Version/s: EE-1.8.2.GA_P04
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      GF v3, Spring Framework 3.0.0, Spring Security 3.0
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      public String processLogin() throws ServletException, IOException {
            ExternalContext context = FacesContext.getCurrentInstance().getExternalContext();
            RequestDispatcher dispatcher = ((ServletRequest) context.getRequest()).getRequestDispatcher("/j_spring_security_check");

            dispatcher.forward((ServletRequest) context.getRequest(),
                    (ServletResponse) context.getResponse());

            FacesContext.getCurrentInstance().responseComplete();
            // It's OK to return null here because Faces is just going to exit.
            return null;

         }



      web.xml

       <filter-mapping>
            <filter-name>springSecurityFilterChain</filter-name>
            <url-pattern>/*</url-pattern>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
         </filter-mapping>
      Show
      public String processLogin() throws ServletException, IOException {       ExternalContext context = FacesContext.getCurrentInstance().getExternalContext();       RequestDispatcher dispatcher = ((ServletRequest) context.getRequest()).getRequestDispatcher("/j_spring_security_check");       dispatcher.forward((ServletRequest) context.getRequest(),               (ServletResponse) context.getResponse());       FacesContext.getCurrentInstance().responseComplete();       // It's OK to return null here because Faces is just going to exit.       return null;    } web.xml  <filter-mapping>       <filter-name>springSecurityFilterChain</filter-name>       <url-pattern>/*</url-pattern>       <dispatcher>FORWARD</dispatcher>       <dispatcher>REQUEST</dispatcher>    </filter-mapping>

      Description

      Integration with Spring Security 3 from manual - is broken

      Server reply:

      <?xml version="1.0" encoding="utf-8"?>
      <partial-response><redirect url="/j_spring_security_check?j_username=xxxx&j_password=xxxx&_spring_security_remember_me=true"></redirect></partial-response>

      Integration from manal was OK with 1.8

        Activity

        Pavel Kuzin created issue -
        Ken Fyten made changes -
        Field Original Value New Value
        Salesforce Case []
        Fix Version/s 2.0.0 [ 10230 ]
        Affects [Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial]
        Assignee Deryk Sinotte [ deryk.sinotte ]
        Hide
        Deryk Sinotte added a comment -

        Assigning to Greg to update after we meet later this week.

        Show
        Deryk Sinotte added a comment - Assigning to Greg to update after we meet later this week.
        Deryk Sinotte made changes -
        Salesforce Case []
        Assignee Deryk Sinotte [ deryk.sinotte ] Greg Dick [ greg.dick ]
        Ken Fyten made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Ken Fyten made changes -
        Assignee Greg Dick [ greg.dick ] Ken Fyten [ ken.fyten ]
        Hide
        Ken Fyten added a comment -

        This issue pertains to ICEfaces 1.8, not 2.0.

        We have two references to Spring Security for 1.8:

        • The ICEfacesDevelopersGuide.pdf has config. info. on pg 99. This is likely the area that this JIRA is meant to update.

        Since the DevGuide is stable for 1.8 we would be better off updating the tutorial to work with Spring Security 3.

        Show
        Ken Fyten added a comment - This issue pertains to ICEfaces 1.8, not 2.0. We have two references to Spring Security for 1.8: The ICEfacesDevelopersGuide.pdf has config. info. on pg 99. This is likely the area that this JIRA is meant to update. There is also an online tutorial for using ICEfaces with Spring Security: http://facestutorials.icefaces.org/tutorial/spring-security-basic.html Since the DevGuide is stable for 1.8 we would be better off updating the tutorial to work with Spring Security 3.
        Ken Fyten made changes -
        Salesforce Case []
        Fix Version/s 1.8.2-EE-GA_P03 [ 10251 ]
        Fix Version/s 2.0.0 [ 10230 ]
        Affects Version/s 1.8.2a [ 10229 ]
        Affects Version/s 2.0-Alpha2 [ 10214 ]
        Assignee Ken Fyten [ ken.fyten ] Greg Dick [ greg.dick ]
        Ken Fyten made changes -
        Summary Spring Security integration is broken Spring Security docs and tutorial should be updated for v3
        Issue Type Bug [ 1 ] Improvement [ 4 ]
        Salesforce Case []
        Component/s  Documentation [ 10018 ]
        Ken Fyten made changes -
        Salesforce Case []
        Fix Version/s EE-1.8.2.GA_P04 [ 10280 ]
        Fix Version/s EE-1.8.2.GA_P03 [ 10251 ]
        Ken Fyten made changes -
        Assignee Greg Dick [ greg.dick ] Carlo Guglielmin [ carlo.guglielmin ]
        Hide
        Carlo Guglielmin added a comment -

        New material has been published.

        Direct link:
        http://facestutorials.icefaces.org/tutorial/springsecurity-Time.html

        It's also on the main tutorial page:
        http://www.icesoft.org/community/tutorials-samples.jsf

        And the files are checked in under:
        ossrepo/tutorials/trunk/tutorials/icefaces1.8/samples/spring-security-v3/

        Re-assigning to Ken for resolution/closing.

        Show
        Carlo Guglielmin added a comment - New material has been published. Direct link: http://facestutorials.icefaces.org/tutorial/springsecurity-Time.html It's also on the main tutorial page: http://www.icesoft.org/community/tutorials-samples.jsf And the files are checked in under: ossrepo/tutorials/trunk/tutorials/icefaces1.8/samples/spring-security-v3/ Re-assigning to Ken for resolution/closing.
        Carlo Guglielmin made changes -
        Assignee Carlo Guglielmin [ carlo.guglielmin ] Ken Fyten [ ken.fyten ]
        Ken Fyten made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Ken Fyten
            Reporter:
            Pavel Kuzin
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: