Skip to content

Consider Ensuring No Authenticated User Only Responds With 401 #66

@carrvo

Description

@carrvo

Background

I am using mod_authnz_external for an authz that checks for anonymous access (no authenticated user). The auth flow that I would like to achieve is

  1. agent sends request
  2. authz checks for anonymous access
    • if granted then deliver document
  3. when denied anonymous respond with 401 so that the agent knows to authenticate
  4. agent sends request with user credentials
  5. authn checks for valid-user
  6. authz checks for access
    • if granted then deliver document
  7. when denied respond with 403

Problem

Using GroupExternalAuthnCheck Off allows for the Authz to check for anonymous access, but then it forces all further denial responses to be 403. Ideally, not having an authenticated user should only be able to respond with 401 regardless of whether Authn is checked for or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions