auth_jwt

Syntax: auth_jwt string [token=$variable] | off;
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.

doc_nginx
2017-02-09 07:05:33
Comments
Leave a Comment

Please login to continue.