Enable Pre-Connection Authentication using HTTP Authentication Headers #29
Labels
development
Standard development
r&d:polykey:core activity 4
End to End Networking behind Consumer NAT Devices
Specification
It should also be possible for TLS Verification to be done via the HTTP 1.1 Basic Authentication (via the
Authentication
header).To achieve this, the VerifyCallback should be expanded to also expose the headers of the incoming request:
As the callers of the
TLSVerifyCallback
s always have context of theIncomingMessage
http request, we can pass theIncomingMessage.headers
into the verifyCallback as the third param.There will also need to be some API in the
WebSocketConfig
to be able to set headers for outgoing messages.ws
provides different APIs for setting headers for clients and servers:headers
event onWebSocketServer
to modify the headers before they are sentfinishRequest
callback to customize headers on theOutgoingMessage
before it is sentAdditional context
Tasks
TLSVerifyCallback
to support passing of headersWebSocketConfig
ws
libraryThe text was updated successfully, but these errors were encountered: