git: da1c17007fd9 - main - www/angie-module-auth-jwt: Angie auth-jwt dynamic module
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 09 Aug 2023 13:04:32 UTC
The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=da1c17007fd919ad943d7933ed5faef0cba0a524 commit da1c17007fd919ad943d7933ed5faef0cba0a524 Author: Oleg A. Mamontov <oleg@mamontov.net> AuthorDate: 2023-08-07 18:21:57 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2023-08-09 13:01:15 +0000 www/angie-module-auth-jwt: Angie auth-jwt dynamic module This Angie module implements client authorization by validating the provided JSON Web Token (JWT) using the specified keys. PR: 243928 --- www/Makefile | 1 + www/angie-module-auth-jwt/Makefile | 26 ++++++++++++++++++++++++++ www/angie-module-auth-jwt/files/pkg-message.in | 15 +++++++++++++++ www/angie-module-auth-jwt/pkg-descr | 3 +++ www/angie-module-auth-jwt/pkg-plist | 3 +++ 5 files changed, 48 insertions(+) diff --git a/www/Makefile b/www/Makefile index 394491aa90d3..a419f6d8811c 100644 --- a/www/Makefile +++ b/www/Makefile @@ -27,6 +27,7 @@ SUBDIR += amphetadesk SUBDIR += analog SUBDIR += angie + SUBDIR += angie-module-auth-jwt SUBDIR += angie-module-geoip2 SUBDIR += anyremote2html SUBDIR += apache-mode.el diff --git a/www/angie-module-auth-jwt/Makefile b/www/angie-module-auth-jwt/Makefile new file mode 100644 index 000000000000..cd5723745514 --- /dev/null +++ b/www/angie-module-auth-jwt/Makefile @@ -0,0 +1,26 @@ +PORTNAME= angie-module-auth-jwt +GH_TUPLE= kjdev:nginx-auth-jwt:0.2.1:module + +COMMENT= Angie auth-jwt dynamic module + +LIB_DEPENDS= libjansson.so:devel/jansson + +MASTERDIR= ${.CURDIR}/../../www/angie + +CONFLICTS= www/angie-module-jwt + +do-install: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${MKDIR} ${STAGEDIR}${MODDIR} + + ${INSTALL_LIB} ${WRKSRC}/objs/ngx_http_auth_jwt_module.so \ + ${STAGEDIR}${MODDIR} + + ${INSTALL_MAN} ${WRKSRC_module}/README.md ${STAGEDIR}${DOCSDIR} + +do-install-DEBUG-on: + ${INSTALL} ${COPY} -m ${_SHAREMODE} \ + ${WRKSRC_DEBUG}/objs/ngx_http_auth_jwt_module.so \ + ${STAGEDIR}${MODDIR}/ngx_http_auth_jwt_module-debug.so + +.include "${MASTERDIR}/Makefile" diff --git a/www/angie-module-auth-jwt/files/pkg-message.in b/www/angie-module-auth-jwt/files/pkg-message.in new file mode 100644 index 000000000000..0a06221819ac --- /dev/null +++ b/www/angie-module-auth-jwt/files/pkg-message.in @@ -0,0 +1,15 @@ +[ +{ type: install + message: <<EOM + +The auth-jwt dynamic module for Angie has been installed. +To enable this module, add the following to %%PREFIX%%/etc/angie/angie.conf +and reload angie: + + load_module modules/ngx_http_auth_jwt_module.so; + +Please refer to the module documentation for further details: +https://github.com/kjdev/nginx-auth-jwt +EOM +} +] diff --git a/www/angie-module-auth-jwt/pkg-descr b/www/angie-module-auth-jwt/pkg-descr new file mode 100644 index 000000000000..45407c55d338 --- /dev/null +++ b/www/angie-module-auth-jwt/pkg-descr @@ -0,0 +1,3 @@ +Module implements client authorization by validating the provided +JSON Web Token (JWT) using the specified keys. The module supports +JSON Web Signature (JWS) and can be used for OpenID Connect authentication. diff --git a/www/angie-module-auth-jwt/pkg-plist b/www/angie-module-auth-jwt/pkg-plist new file mode 100644 index 000000000000..52be19d191b7 --- /dev/null +++ b/www/angie-module-auth-jwt/pkg-plist @@ -0,0 +1,3 @@ +%%DOCSDIR%%/README.md +%%MODDIR%%/ngx_http_auth_jwt_module.so +%%DEBUG%%%%MODDIR%%/ngx_http_auth_jwt_module-debug.so