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

Allow for POST only logout requests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0-RC2
    • None
    • None

    Description

      See:
      http://stackoverflow.com/questions/3521290/logout-get-or-post

      A logout causes a change of state, so should NOT be a GET.

      Also, due to browser pre-fetching, a typing http://localhost:8080/log may cause a prefetch to /logout

      To stay backwards compatible, this need to be an op-in feature.

      The proposed solution set a shiro.postOnlyLogout = true attribute, (same as logout.postOnlyLogout = true)

      Attachments

        Activity

          People

            bdemers Brian Demers
            bdemers Brian Demers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: