tatsuhiro-t / spdylay

The experimental SPDY protocol version 2, 3 and 3.1 implementation in C
http://tatsuhiro-t.github.io/spdylay/
MIT License
602 stars 103 forks source link

Add support for basic authentication to shrpx #64

Closed snnn closed 11 years ago

snnn commented 11 years ago

Hello, I want to setup shrpx at my VPS and access it through chrome from my desktop computer, so there must be some access restrict. I think http basic authentication maybe is the simplest way. Here is the document of spdy authentication: http://www.chromium.org/spdy/spdy-authentication

We should reply "407 Proxy Authentication Required" when the client didn't send "Proxy-Authenticate" header in the syn request, and the client then retries the request with a Proxy-Authorization header, and we will check the username and password whether they are correct.

tatsuhiro-t commented 11 years ago

You can use backend server's basic authentication feature for this purpose.