caddyserver / forwardproxy

Forward proxy plugin for the Caddy web server
Apache License 2.0
603 stars 228 forks source link

Add realm to Proxy-Authenticate header #53

Closed sergeyfrolov closed 5 years ago

sergeyfrolov commented 5 years ago

1. What does this change do, exactly?

Even though realm was not required in older standards, newer https://tools.ietf.org/html/rfc7617 says

The authentication parameter 'realm' is REQUIRED ([RFC7235], Section 2.2).

I can't seem to find any functional meaning behind realms in this context. Squid's default realm is "Squid proxy-caching web server", so I gave descriptive realm to Caddy as well: "Caddy Secure Web Proxy".

Proxy-Authenticate: Basic -> Proxy-Authenticate: Basic realm="Caddy Secure Web Proxy"

2. Please link to the relevant issues.

Resolves #52

3. Which documentation changes (if any) need to be made because of this PR?

None

4. Checklist