Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-2437

Elytron Http status code for missing LoginPermission

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Optional Optional
    • None
    • 3.0.0.Beta7
    • Security
    • None

      Lack of LoginPermission leads to 401 http code. Which could IMO indicate user can try to login again with different password. However it won't help in this case. I wonder, wouldn't 403 Forbidden be more suitable here? Indicating user authentication passed, but user is missing some permission.

      Setting with low priority as in DR7 in default configuration LoginPermission is added by default.

      David: "I think you may be right @MartinChoma - 401 is called "unauthorized" but really it should say "authentication required" 403 is the correct response for an authorization error"

              jkalina@redhat.com Jan Kalina (Inactive)
              mchoma@redhat.com Martin Choma
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: