Make use of :unauthenticated-handler in the http-basic workflow.#79
Make use of :unauthenticated-handler in the http-basic workflow.#79damionjunk wants to merge 1 commit into
:unauthenticated-handler in the http-basic workflow.#79Conversation
Setting the `:unauthenticated-handler` had no effect previously. If not set, the call to `http-basic-deny` still takes place as it did before.
|
Lack of support for What are you hoping to do in this handler that will be applied to failing HTTP Basic authentication attempts? |
|
I thought it may be intentional, but I noticed in the tests and examples for http-basic that you've provided the handler in the configuration anyway. I just wanted to provide a custom message in the body rather than rely on what was returned by the container. I get something like this (which likely varies by container and container config): I'm using HTTP basic for JSON/REST API authentication, so I'd rather be able to return either a known string, or some JSON body along with the 401. |
|
Okay, that's fair. A couple of things need to happen, though:
|
|
I'm happy to have this feature added in, but the current patch needs a couple of tweaks (described above). Bump, etc. |
|
Sorry about the delay in response. I recently relocated to a different city, so things have been chaotic. :) I do intend to get to this shortly though. |
Setting the
:unauthenticated-handlerhad no effect previously when using thehttp-basicworkflow. If not set, the call tohttp-basic-denystill takes place as it did before.