changeset 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 cccce78e2b23
children 4931a7ba6a32
files xml/en/docs/http/ngx_http_auth_jwt_module.xml xml/ru/docs/http/ngx_http_auth_jwt_module.xml
diffstat 2 files changed, 6 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_auth_jwt_module.xml
+++ b/xml/en/docs/http/ngx_http_auth_jwt_module.xml
@@ -9,7 +9,7 @@
 <module name="Module ngx_http_auth_jwt_module"
         link="/en/docs/http/ngx_http_auth_jwt_module.html"
         lang="en"
-        rev="4">
+        rev="5">
 
 <section id="summary">
 
@@ -155,12 +155,8 @@ identified by key names.
 Name matching starts from the top level of the JSON tree.
 For arrays, the variable keeps a list of array elements separated by commas.
 <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>
 Prior to version 1.13.7, only one key name could be specified,
--- a/xml/ru/docs/http/ngx_http_auth_jwt_module.xml
+++ b/xml/ru/docs/http/ngx_http_auth_jwt_module.xml
@@ -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 @@ auth_jwt "closed site" token=$cookie_aut
 Сопоставление имён начинается с верхнего уровня дерева 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 можно было указать лишь одно имя,