Auth JWT#

The module lets through only requests whose JSON Web Token (JWT), taken from the Authorization header or a variable, is signed with a key from a JWKS or key-value source: a file or a subrequest. It can also require specific values in the token's claims and headers.

  • Supports JSON Web Signature (JWS).

  • Can be used for authentication via OpenID Connect.

Installation#

To install the module, use one of the following packages:

  • Angie: angie-module-auth-jwt

  • Angie PRO: angie-pro-module-auth-jwt

Loading the Module#

Load the module in the main{} context:

load_module modules/ngx_http_auth_jwt_module.so;

Configuration Example#

location / {
    auth_jwt          "closed site";
    auth_jwt_key_file conf/keys.json;
}

A complete configuration example is available at: kjdev/nginx-auth-jwt

Additional Information#

Version: 0.15.1

Detailed documentation and source code are available at: kjdev/nginx-auth-jwt