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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: