2.0.0
This release applies a number of feature adjustments, some of which may require small adjustments to your NGINX config. The goals of this release were cleanup and to remove places where we hard-coded a few things, allowing for greater flexibility.
- Breaking Change: Renamed directive
auth_jwt_extract_sub
toauth_jwt_validate_sub
and it no longer extracts the sub, it only validates that it is non-empty (as the name suggests). Note that this is off by default. - Breaking Change: Removed directive
auth_jwt_validate_email
-- useauth_jwt_extract_*_claims
instead (see below). - Breaking Change: Renamed directive
auth_jwt_validation_type
toauth_jwt_location
for clarity (see below). - New Feature: Added
auth_jwt_extract_request_claims
andauth_jwt_extract_response_claims
which can be used to extract one or more claims from the JWT and place them on request or response cookies, and also access them by variable. See the README for more information. - New Feature: You may now specify a custom header which contains the JWT. Use the
auth_jwt_location
directive to do so, e.g.auth_jwt_location: HEADER=Auth-Token
. You may optionally prefix the JWT with "Bearer ". (#72) - Fix: #82 -- Compatibility with nginx 1.23.0+
- Cleanup: Some of the build process has been cleaned up and refactored, as well as the actual C code for the module.
- Cleanup: The README has been cleaned up and reorganized.