-
-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Description
Prerequisites
- I have written a descriptive issue title
- I have searched existing issues to ensure the feature has not already been requested
🚀 Feature Proposal
I suggest to introduce the ability to customise the status code for failed authentication requests
Motivation
A follow-up issue to #164. To support using Proxy-Authenticate in a manner that is compliant to the http standard it is necessary to use the 407 status code in the error response. See
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Proxy-Authenticate
Example
options = {
authenticate: { realm: "My Realm", header: "Proxy-Authorization", failureStatusCode: 407 }
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels