You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-3
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ This module requires several new `nginx.conf` directives, which can be specified
21
21
|`auth_jwt_loginurl`| The URL to redirect to if `auth_jwt_redirect` is enabled and authentication fails. |
22
22
|`auth_jwt_enabled`| Set to "on" to enable JWT checking. |
23
23
|`auth_jwt_algorithm`| The algorithm to use. One of: HS256, HS384, HS512, RS256, RS384, RS512 |
24
-
|`auth_jwt_validation_type`| Indicates where the JWT is located in the request -- see below. |
24
+
|`auth_jwt_location`| Indicates where the JWT is located in the request -- see below. |
25
25
|`auth_jwt_validate_sub`| Set to "on" to validate the `sub` claim (e.g. user id) in the JWT. |
26
26
|`auth_jwt_extract_request_claims`| Set to a space-delimited list of claims to extract from the JWT and set as request headers. These will be accessible via e.g: `$http_jwt_sub`|
27
27
|`auth_jwt_extract_response_claims`| Set to a space-delimited list of claims to extract from the JWT and set as response headers. These will be accessible via e.g: `$sent_http_jwt_sub`|
@@ -67,10 +67,11 @@ auth_jwt_redirect off;
67
67
```
68
68
## JWT Locations
69
69
70
-
By default, the authorization header is used to provide a JWT for validation. However, you may use the `auth_jwt_validation_type` configuration to specify the name of a cookie that provides the JWT:
70
+
By default, the`Authorization`header is used to provide a JWT for validation. However, you may use the `auth_jwt_location` directive to specify the name of the header or cookie which provides the JWT:
71
71
72
72
```nginx
73
-
auth_jwt_validation_type COOKIE=jwt;
73
+
auth_jwt_location HEADER=auth-token; # get the JWT from the "auth-token" header
74
+
auth_jwt_location COOKIE=auth-token; # get the JWT from the "auth-token" cookie
0 commit comments