0
|
1 Auth request module for nginx.
|
|
2
|
|
3 This module allows authorization based on subrequest result. Once subrequest
|
|
4 returns 2xx status - access is allowed, on 401 or 403 - disabled with
|
|
5 appropriate status. Anything else is considered to be an error.
|
|
6
|
|
7 For 401 status WWW-Authenticate header from subrequest response will be
|
|
8 passed to client.
|
|
9
|
|
10 Configuration directives:
|
|
11
|
|
12 auth_request <uri>|off
|
|
13
|
|
14 Context: http, server, location
|
|
15 Default: off
|
|
16
|
|
17 Switches auth request module on and sets uri which will be asked for
|
|
18 authorization.
|
|
19
|
|
20 Usage:
|
|
21
|
|
22 location /private/ {
|
|
23 auth_request /auth;
|
|
24 ...
|
|
25 }
|
|
26
|
|
27 location = /auth {
|
|
28 proxy_pass ...
|
|
29 }
|
|
30
|
|
31 To compile nginx with auth request module, use "--add-module <path>" option
|
|
32 to nginx configure.
|
|
33
|
|
34 Development of this module was sponsored by Openstat (http://www.openstat.com/).
|