Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-360

Create UrlEncoder

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 2.0.0
    • Web
    • None

    Description

      To customize how URL encoding in a web app occurs, we should have a UrlEncoder component. More specifically, this can be used to customize how JSESSIONID is appended to a URL (if at all, depending on security preferences).

      The solution could be resolved as follows:

      Create a new UrlEncoder interface:

       

      public interface UrlEncoder {
        String encodeUrl(EncodeUrlRequest request);
       }
      

      The EncodeUrlRequest:

      public interface EncodeUrlRequest {
        String getUrl();
        HttpServletRequest getHttpServletRequest();
        HttpServletResponse getHttpServletResponse();
        ServletContext getServletContext();
       }

      Update WebEnvironment to have a new property:

      UrlEncoder getUrlEncoder();

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lhazlewood Les Hazlewood
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: