TeslaGov / ngx-http-auth-jwt-module

Secure your NGINX locations with JWT
MIT License
310 stars 119 forks source link

RSA Key Validation Support #30

Closed TimUnderhay closed 6 years ago

TimUnderhay commented 6 years ago

This pull request adds support for RSA256 public key JWT validation through the option 'auth_jwt_algorithm' (with values of 'HS256' - the default, and 'RS256'), and by entering a public key in auth_jwt_key. It also adds the ability to disable the email JWT property validation with option 'auth_jwt_validate_email'. It also changes the log level of log calls in getJwt() to NGX_LOG_DEBUG to prevent debug-type messages from logging errors to the logfile. README.md has been updated to reflect the changes.

Sorry for all the commits - they were necessary to test the changes with MacPorts

I also don't have Docker running on my build PC so I haven't run build.sh yet - so the .so file isn't current.

fitzyjoe commented 6 years ago

Very cool @citizentim . I'd like to get some changes in there but I see that you're not running Docker. I'll see if I can get a test running in docker.

TimUnderhay commented 6 years ago

Thanks @fitzyjoe. Your requested else condition has been added.