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

        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.
        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.
        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: