Mercurial > hg > nginx-site
diff xml/ru/docs/http/ngx_http_auth_jwt_module.xml @ 2086:bdfbdf74fb3d
Fixed auth_jwt_claim_set example.
Previously, the example had auth_jwt_claim_set directive in the location
context, while it's only allowed in the http context. The directives
auth_jwt and auth_jwt_key_file are removed from the example to avoid confusion
between location and server contexts.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Fri, 15 Dec 2017 21:45:00 +0300 |
parents | fee7627f6a5a |
children | f6e578b1b02d |
line wrap: on
line diff
--- a/xml/ru/docs/http/ngx_http_auth_jwt_module.xml Tue Dec 12 15:31:23 2017 +0000 +++ b/xml/ru/docs/http/ngx_http_auth_jwt_module.xml Fri Dec 15 21:45:00 2017 +0300 @@ -9,7 +9,7 @@ <module name="Модуль ngx_http_auth_jwt_module" link="/ru/docs/http/ngx_http_auth_jwt_module.html" lang="ru" - rev="4"> + rev="5"> <section id="summary"> @@ -153,12 +153,8 @@ Сопоставление имён начинается с верхнего уровня дерева JSON. Для массива переменная хранит список его элементов, разделяемых запятыми. <example> -location / { - auth_jwt "closed site"; - auth_jwt_key_file conf/keys.json; - auth_jwt_claim_set $email info e-mail; - auth_jwt_claim_set $job info "job title"; -} +auth_jwt_claim_set $email info e-mail; +auth_jwt_claim_set $job info "job title"; </example> <note> До версии 1.13.7 можно было указать лишь одно имя,