Fake Basic Auth

Christian Felsing pug+nginx at felsing.net
Sun Aug 25 06:53:57 UTC 2013


I am new to nginx and have following problem:

Nginx should be used as a reverse proxy and configured for client
certificate authentication. Backoffice application supports basic auth only.
Apache 2.4 solution for that kind of problems is "Fake Basic Auth" so
backoffice application gets a remote_user and password generated from
client certificate presented by user.

AuthBasicFake %{SSL_CLIENT_S_DN_CN} %{sha1:passphrase-%{SSL_CLIENT_S_DN_CN}}
This set remote user to CN from client certifiate.

is there a similar mechanism in Nginx?

Does HttpLuaModule allow to fake a 401 authentication?

best regards

More information about the nginx mailing list