This module provides JWT (JSON Web Token) functions to be used in Kamailio configuration file. It relies on libjwt (at least v1.12.0) library (https://github.com/benmcollins/libjwt), but it is not working with the new libjwt3.
| Parámetro | Tipo | Descripción |
|---|---|---|
| key_mode | int | 3.1. key_mode (int) |
| key_mode | int | Mode to use the private and public keys. If set to 0, they are read always from the disk. If set to 1, they are cached in memory with the first use (no reload support yet). |
4.2. jwt_verify(pubkeypath, alg, claims, jwtval) 4.3. jwt_verify_key(pubkeyval, alg, claims, jwtval)
4.3. jwt_verify_key(pubkeyval, alg, claims, jwtval)
4.1. jwt_generate(prvkey, alg, claims[, headers])
Generate the JWT, its value can be retrieved in the variable $jwt(val).
Verify the JWT.
Verify the JWT.
Copyright © 2021 asipto.com