← Volver al índice de módulos

jwt

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 wor
🛠️ Utilidades y Varios Kamailio 6.1 2 parámetros 6 funciones

Descripción general

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.

Documentación oficial: https://www.kamailio.org/docs/modules/stable/modules/jwt.html
Código fuente: https://github.com/kamailio/kamailio/tree/master/src/modules/jwt

Parámetros de configuración

ParámetroTipoDescripció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).

Funciones exportadas

jwt_generate(prvkey, alg, claims[, headers])

4.2. jwt_verify(pubkeypath, alg, claims, jwtval) 4.3. jwt_verify_key(pubkeyval, alg, claims, jwtval)

jwt_verify(pubkeypath, alg, claims, jwtval)

4.3. jwt_verify_key(pubkeyval, alg, claims, jwtval)

jwt_verify_key(pubkeyval, alg, claims, jwtval)

4.1. jwt_generate(prvkey, alg, claims[, headers])

jwt_generate(prvkey, alg, claims[, headers])

Generate the JWT, its value can be retrieved in the variable $jwt(val).

jwt_verify(pubkeypath, alg, claims, jwtval)

Verify the JWT.

jwt_verify_key(pubkeyval, alg, claims, jwtval)

Verify the JWT.

Autores y contribuidores

Daniel-Constantin Mierla <miconda@gmail.com>

Copyright © 2021 asipto.com

Módulos relacionados

auth_web3 auth_xkeys avp avpops benchmark blst call_control call_obj