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
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.
19
30
20
31
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.
0 commit comments