# HG changeset patch # User Roman Arutyunyan # Date 1513363500 -10800 # Node ID bdfbdf74fb3d7462fe1ed2eee76fa41cd017e435 # Parent cccce78e2b237ed2848a81937947a474626e9a80 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. diff -r cccce78e2b23 -r bdfbdf74fb3d xml/en/docs/http/ngx_http_auth_jwt_module.xml --- a/xml/en/docs/http/ngx_http_auth_jwt_module.xml Tue Dec 12 15:31:23 2017 +0000 +++ b/xml/en/docs/http/ngx_http_auth_jwt_module.xml Fri Dec 15 21:45:00 2017 +0300 @@ -9,7 +9,7 @@ + rev="5">
@@ -155,12 +155,8 @@ Name matching starts from the top level of the JSON tree. For arrays, the variable keeps a list of array elements separated by commas. -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"; Prior to version 1.13.7, only one key name could be specified, diff -r cccce78e2b23 -r bdfbdf74fb3d xml/ru/docs/http/ngx_http_auth_jwt_module.xml --- 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 @@ + rev="5">
@@ -153,12 +153,8 @@ Сопоставление имён начинается с верхнего уровня дерева JSON. Для массива переменная хранит список его элементов, разделяемых запятыми. -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"; До версии 1.13.7 можно было указать лишь одно имя,