@@ -39,6 +39,10 @@ AUTH_JWT Module
3939 extract_pub_key_from_cert(certificate,out_publ
4040 ic_key)
4141
42+ 1.4.4.
43+ extract_pub_key_from_exp_mod(e,n,out_public_ke
44+ y)
45+
4246 2. Contributors
4347
4448 2.1. By Commit Statistics
@@ -72,6 +76,7 @@ AUTH_JWT Module
7276 1.13. jwt_db_authorize usage
7377 1.14. jwt_script_authorize usage
7478 1.15. extract_pub_key_from_cert usage
79+ 1.16. extract_pub_key_from_exp_mod usage
7580
7681Chapter 1. Admin Guide
7782
@@ -355,6 +360,32 @@ if (extract_pub_key_from_cert("$avp(my_certificate)",$avp(my_pub_key)))
355360}
356361...
357362
363+ 1.4.4. extract_pub_key_from_exp_mod(e,n,out_public_key)
364+
365+ The function reads a base64url-encoded RSA exponent (e) and
366+ modulus (n), then builds a PEM public key and stores it into
367+ out_public_key. Return codes are :
368+ * -1 : Failure in extracting the pub key
369+ * 1 : out_public_key succesfully populated
370+
371+ Meaning of the parameters is as follows:
372+ * e (string) - Base64url-encoded RSA exponent
373+ The string may contain pseudo variables.
374+ * n (string) - Base64url-encoded RSA modulus
375+ The string may contain pseudo variables.
376+ * out_public_key (pvar) - PVAR used to store the extracted
377+ public key
378+
379+ This function can be used from REQUEST_ROUTE.
380+
381+ Example 1.16. extract_pub_key_from_exp_mod usage
382+ ...
383+ if (extract_pub_key_from_exp_mod("$avp(my_exp)", "$avp(my_mod)", $avp(my
384+ _pub_key))) {
385+ xlog("Succesfully extracted public key - $avp(my_pub_key) \n");
386+ }
387+ ...
388+
358389Chapter 2. Contributors
359390
3603912.1. By Commit Statistics
@@ -365,10 +396,11 @@ Chapter 2. Contributors
365396 1. Vlad Paiu (@vladpaiu) 20 6 1521 16
366397 2. Liviu Chircu (@liviuchircu) 5 3 4 6
367398 3. Bogdan-Andrei Iancu (@bogdan-iancu) 4 2 6 7
368- 4. pavelkohout396 3 1 24 2
369- 5. Alexandra Titoc 3 1 5 4
370- 6. Maksym Sobolyev (@sobomax) 3 1 3 3
371- 7. Peter Lemenkov (@lemenkov) 3 1 2 1
399+ 4. vladpaiu 4 1 231 1
400+ 5. pavelkohout396 3 1 24 2
401+ 6. Alexandra Titoc 3 1 5 4
402+ 7. Maksym Sobolyev (@sobomax) 3 1 3 3
403+ 8. Peter Lemenkov (@lemenkov) 3 1 2 1
372404
373405 (1) DevScore = author_commits + author_lines_added /
374406 (project_lines_added / project_commits) + author_lines_deleted
@@ -390,13 +422,14 @@ Chapter 2. Contributors
390422
391423 Table 2.2. Most recently active contributors^(1) to this module
392424 Name Commit Activity
393- 1. pavelkohout396 Feb 2026 - Feb 2026
394- 2. Peter Lemenkov (@lemenkov) Jul 2025 - Jul 2025
395- 3. Liviu Chircu (@liviuchircu) May 2023 - Sep 2024
396- 4. Alexandra Titoc Sep 2024 - Sep 2024
397- 5. Vlad Paiu (@vladpaiu) Mar 2020 - Jul 2023
398- 6. Maksym Sobolyev (@sobomax) Feb 2023 - Feb 2023
399- 7. Bogdan-Andrei Iancu (@bogdan-iancu) Mar 2020 - Dec 2021
425+ 1. vladpaiu Feb 2026 - Feb 2026
426+ 2. pavelkohout396 Feb 2026 - Feb 2026
427+ 3. Peter Lemenkov (@lemenkov) Jul 2025 - Jul 2025
428+ 4. Liviu Chircu (@liviuchircu) May 2023 - Sep 2024
429+ 5. Alexandra Titoc Sep 2024 - Sep 2024
430+ 6. Vlad Paiu (@vladpaiu) Mar 2020 - Jul 2023
431+ 7. Maksym Sobolyev (@sobomax) Feb 2023 - Feb 2023
432+ 8. Bogdan-Andrei Iancu (@bogdan-iancu) Mar 2020 - Dec 2021
400433
401434 (1) including any documentation-related commits, excluding
402435 merge commits
@@ -405,5 +438,5 @@ Chapter 3. Documentation
405438
4064393.1. Contributors
407440
408- Last edited by: Liviu Chircu (@liviuchircu), Vlad Paiu
409- (@vladpaiu).
441+ Last edited by: vladpaiu, Liviu Chircu (@liviuchircu), Vlad
442+ Paiu (@vladpaiu).
0 commit comments