Skip to content

Add support to use JWK format of public keys in the OpenSIPS script for JWT authentication#3827

Open
vladpaiu wants to merge 1 commit intoOpenSIPS:masterfrom
vladpaiu:jwt_jwk_support
Open

Add support to use JWK format of public keys in the OpenSIPS script for JWT authentication#3827
vladpaiu wants to merge 1 commit intoOpenSIPS:masterfrom
vladpaiu:jwt_jwk_support

Conversation

@vladpaiu
Copy link
Member

Summary
Add support to use JWK format PUB keys in the OpenSIPS script for JWT authentication

Details
Many providers ( like https://www.googleapis.com/oauth2/v3/certs ) are using JWK format for specifying the keys that can be used for validating JWTs, which is using exponent & modulus format for the RSA pub key.

Solution
Add a new script function, extract_pub_key_from_exp_mod, that can be used for generating the corresponding PEM pub key. jwt_script_authorize can be used later for validating the JWT.

Compatibility
Backwards compatible

Closing issues

@vladpaiu vladpaiu added this to the 4.0.0 milestone Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant