comparison xml/en/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
comparison
equal deleted inserted replaced
2085:cccce78e2b23 2086:bdfbdf74fb3d
7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> 7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
8 8
9 <module name="Module ngx_http_auth_jwt_module" 9 <module name="Module ngx_http_auth_jwt_module"
10 link="/en/docs/http/ngx_http_auth_jwt_module.html" 10 link="/en/docs/http/ngx_http_auth_jwt_module.html"
11 lang="en" 11 lang="en"
12 rev="4"> 12 rev="5">
13 13
14 <section id="summary"> 14 <section id="summary">
15 15
16 <para> 16 <para>
17 The <literal>ngx_http_auth_jwt_module</literal> module (1.11.3) 17 The <literal>ngx_http_auth_jwt_module</literal> module (1.11.3)
153 Sets the <value>variable</value> to a JWT claim parameter 153 Sets the <value>variable</value> to a JWT claim parameter
154 identified by key names. 154 identified by key names.
155 Name matching starts from the top level of the JSON tree. 155 Name matching starts from the top level of the JSON tree.
156 For arrays, the variable keeps a list of array elements separated by commas. 156 For arrays, the variable keeps a list of array elements separated by commas.
157 <example> 157 <example>
158 location / { 158 auth_jwt_claim_set $email info e-mail;
159 auth_jwt "closed site"; 159 auth_jwt_claim_set $job info "job title";
160 auth_jwt_key_file conf/keys.json;
161 auth_jwt_claim_set $email info e-mail;
162 auth_jwt_claim_set $job info "job title";
163 }
164 </example> 160 </example>
165 <note> 161 <note>
166 Prior to version 1.13.7, only one key name could be specified, 162 Prior to version 1.13.7, only one key name could be specified,
167 and the result was undefined for arrays. 163 and the result was undefined for arrays.
168 </note> 164 </note>