Uploaded image for project: 'Identity Gateway'
  1. Identity Gateway
  2. OPENIG-871

Policy Enforcement Filter should return a 403 instead of a 401

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.1, 4.0.0
    • Fix Version/s: 4.5.0
    • Component/s: None
    • Labels:
    • Sprint:
      OpenIG Sprint 77

      Description

      Actually, the Policy Enforcement Filter returns a 401 UNAUTHORIZED when the policy denies access to the resource.

      Nevertheless: according to the RFCs it seems that it should return a 403.

      A 401 response indicates that access to the resource is restricted, and the request did not provide any HTTP authentication.

      A 403 response generally indicates[...] Authentication was provided, but the authenticated user is not permitted to perform the requested operation.

      See Hypertext Transfer Protocol (HTTP/1.1): Authentication
      Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content
      Wikipedia

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                violette Violette Roche Montane
                Reporter:
                violette Violette Roche Montane
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: