<!-- review: finished -->

<a id="external-auth-jwt"></a>

# Auth JWT

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

- Supports JSON Web Signature (JWS).
- Can be used for authentication via OpenID Connect.

<a id="installation"></a>

## Installation

To [install](https://en.angie.software//angie/docs/installation/index.md#install-packages) the module, use one of the following packages:

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

<a id="loading-the-module"></a>

## Loading the module

Load the module in the `main{}` context:

```nginx
load_module modules/ngx_http_auth_jwt_module.so;
```

<a id="configuration-example-78"></a>

## Configuration example

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

A complete configuration example is available at:
[https://github.com/kjdev/nginx-auth-jwt/tree/main/example](https://github.com/kjdev/nginx-auth-jwt/tree/main/example)

<a id="additional-information"></a>

## Additional information

Detailed documentation and source code are available at:
[https://github.com/kjdev/nginx-auth-jwt](https://github.com/kjdev/nginx-auth-jwt)
