I've a server which needs a Digest Authentication to access to it.
I also have a reverse proxy based on nginx which will redirect all requests made to to /redirect/mysecureserver, using proxy_pass directive.
This works well when my authentication method in the secure server is Basic type, I just need to inject a header with a base64 encoded string ("username:password"). Unfortunally in my secure server is not possible to change the method to "Basic Authentication" using digest Authentication is a must by design, because this server is in fact a embedded system with a lighttpd server and the digest authetication method can not be changed.
If some of you have a good idea to solve this, rise your hand.