Syntax: | auth_jwt
|
---|---|
Default: | auth_jwt off; |
Context: | http , server , location |
Enables validation of JSON Web Token. The specified string
is used as a realm
. Parameter value can contain variables.
The optional token
parameter specifies a variable that contains JSON Web Token. By default, JWT is passed in the “Authorization” header as a Bearer Token. JWT may be also passed as a cookie or a part of a query string:
auth_jwt "closed site" token=$cookie_auth_token;
The special value off
cancels the effect of the auth_jwt
directive inherited from the previous configuration level.
Please login to continue.