Module: kamailio Branch: master Commit: 9b63c3a7400bb255f102c786b914ea241e68bbab URL: https://github.com/kamailio/kamailio/commit/9b63c3a7400bb255f102c786b914ea241e68bbab
Author: Kamailio Dev <[email protected]> Committer: Kamailio Dev <[email protected]> Date: 2023-10-30T13:33:19+01:00 modules: readme files regenerated - secsipid ... [skip ci] --- Modified: src/modules/secsipid/README --- Diff: https://github.com/kamailio/kamailio/commit/9b63c3a7400bb255f102c786b914ea241e68bbab.diff Patch: https://github.com/kamailio/kamailio/commit/9b63c3a7400bb255f102c786b914ea241e68bbab.patch --- diff --git a/src/modules/secsipid/README b/src/modules/secsipid/README index c2af1a471ac..5883eaa100c 100644 --- a/src/modules/secsipid/README +++ b/src/modules/secsipid/README @@ -49,6 +49,7 @@ Daniel-Constantin Mierla origID, x5u, keyData) 4.8. secsipid_sign(sheaders, spaypload, keyPath) + 4.9. secsipid_sign_prvkey(sheaders, spaypload, keyData) 5. Installation @@ -68,7 +69,8 @@ Daniel-Constantin Mierla 1.12. secsipid_build_identity usage 1.13. secsipid_build_identity_prvkey usage 1.14. secsipid_sign usage - 1.15. Libsecsipid Usage + 1.15. secsipid_sign_prvkey usage + 1.16. Libsecsipid Usage Chapter 1. Admin Guide @@ -105,6 +107,7 @@ Chapter 1. Admin Guide origID, x5u, keyData) 4.8. secsipid_sign(sheaders, spaypload, keyPath) + 4.9. secsipid_sign_prvkey(sheaders, spaypload, keyData) 5. Installation @@ -243,6 +246,7 @@ modparam("secsipid", "libopt", "CacheExpires=0") x5u, keyData) 4.8. secsipid_sign(sheaders, spaypload, keyPath) + 4.9. secsipid_sign_prvkey(sheaders, spaypload, keyData) 4.1. secsipid_check_identity(keyPath) @@ -439,6 +443,30 @@ request_route { } ... +4.9. secsipid_sign_prvkey(sheaders, spaypload, keyData) + + Build Identity value using the private key given by "keyData" to sign + the JWT body. The sheaders and spayload have to be string + representation of JSON headers and payload to be signed. On success, + the Indentity value is stored in variable $secsipid(val). It also sets + $secsipid(ret) to the return value of the libsecsipid functions. + + The parameters can contain pseudo-variables. + + This function can be used from ANY_ROUTE. + + Example 1.15. secsipid_sign_prvkey usage +... +request_route { + ... + if(secsipid_sign_prvkey("_JSON_HEADERS_", "_JSON_PAYLOAD_", + "_PRIVATE_KEY_")) { + xinfo("Identity value: $secsipid(val)\n"); + } + ... +} +... + 5. Installation The module needs "secsipdi_proc.so" module that depends on @@ -453,7 +481,7 @@ request_route { installed and its environment configured, then run the following commands: - Example 1.15. Libsecsipid Usage + Example 1.16. Libsecsipid Usage ... export GO111MODULE=off go get https://github.com/asipto/secsipidx _______________________________________________ Kamailio (SER) - Development Mailing List To unsubscribe send an email to [email protected]
