Skip to content

Commit 6aa585f

Browse files
authored
Update README.md
1 parent 6e1f280 commit 6aa585f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,18 @@ auth_jwt_loginurl "https://yourdomain.com/loginpage";
1515
auth_jwt_enabled on;
1616
```
1717

18-
So, a typical use would be to specify the key and loginurl on the main level and then only turn on the locations that you want to secure (not the login page).
18+
So, a typical use would be to specify the key and loginurl on the main level and then only turn on the locations that you want to secure (not the login page). Unauthorized requests are given 302 "Moved Temporarily" responses with a ___location of the specified loginurl.
19+
20+
```
21+
auth_jwt_redirect off;
22+
```
23+
If you prefer to return 401 Unauthorized, you may turn `auth_jwt_redirect` off.
24+
25+
```
26+
auth_jwt_validation_type AUTHORIZATION;
27+
auth_jwt_validation_type COOKIE=rampartjwt;
28+
```
29+
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.
1930

2031
The Dockerfile builds all of the dependencies as well as the module, downloads a binary version of nginx, and runs the module as a dynamic module.
2132

0 commit comments

Comments
 (0)