Mercurial > hg > nginx-site
changeset 1066:de77e295c073
Documented the "Auth-User" authentication header field.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Sat, 08 Feb 2014 17:42:40 +0400 |
parents | 88c0d96b9825 |
children | 8d9578f8523b |
files | xml/en/docs/mail/ngx_mail_auth_http_module.xml xml/ru/docs/mail/ngx_mail_auth_http_module.xml |
diffstat | 2 files changed, 13 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/mail/ngx_mail_auth_http_module.xml Sat Feb 08 17:42:40 2014 +0400 +++ b/xml/en/docs/mail/ngx_mail_auth_http_module.xml Sat Feb 08 17:42:40 2014 +0400 @@ -10,7 +10,7 @@ <module name="Module ngx_mail_auth_http_module" link="/en/docs/mail/ngx_mail_auth_http_module.html" lang="en" - rev="1"> + rev="2"> <section id="directives" name="Directives"> @@ -138,6 +138,11 @@ </para> <para> +If the <header>Auth-User</header> header exists in a response, +it overrides the username used to authenticate with the backend. +</para> + +<para> For the SMTP, the response additionally takes into account the <header>Auth-Error-Code</header> header — if exists, it is used as a response code in case of an error.
--- a/xml/ru/docs/mail/ngx_mail_auth_http_module.xml Sat Feb 08 17:42:40 2014 +0400 +++ b/xml/ru/docs/mail/ngx_mail_auth_http_module.xml Sat Feb 08 17:42:40 2014 +0400 @@ -10,7 +10,7 @@ <module name="Модуль ngx_mail_auth_http_module" link="/ru/docs/mail/ngx_mail_auth_http_module.html" lang="ru" - rev="1"> + rev="2"> <section id="directives" name="Директивы"> @@ -136,6 +136,12 @@ </para> <para> +Если в ответе есть заголовок <header>Auth-User</header>, +то он переопределяет имя пользователя, +используемое для аутентификации с бэкендом. +</para> + +<para> Для SMTP в ответе дополнительно учитывается заголовок <header>Auth-Error-Code</header> — если он есть, то используется как код ответа в случае ошибки.