Auth JWT#

The module implements client authorisation by verifying the provided JSON Web Token (JWT) using the specified keys.

  • Supports JSON Web Signature (JWS) format.

  • Can be used for authentication via OpenID Connect.

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#

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