diff options
| author | Oleg A. Mamontov <oleg@mamontov.net> | 2023-08-07 18:21:57 +0000 |
|---|---|---|
| committer | Robert Clausecker <fuz@FreeBSD.org> | 2023-08-09 13:01:15 +0000 |
| commit | da1c17007fd919ad943d7933ed5faef0cba0a524 (patch) | |
| tree | 1a07900798d1c200e1d418bf8d0312b481752cca | |
| parent | 75574aa769a2f27ff844717fa46d2215fd2ac5d3 (diff) | |
| download | ports-da1c17007fd919ad943d7933ed5faef0cba0a524.tar.gz ports-da1c17007fd919ad943d7933ed5faef0cba0a524.zip | |
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
| -rw-r--r-- | www/Makefile | 1 | ||||
| -rw-r--r-- | www/angie-module-auth-jwt/Makefile | 26 | ||||
| -rw-r--r-- | www/angie-module-auth-jwt/files/pkg-message.in | 15 | ||||
| -rw-r--r-- | www/angie-module-auth-jwt/pkg-descr | 3 | ||||
| -rw-r--r-- | www/angie-module-auth-jwt/pkg-plist | 3 |
5 files changed, 48 insertions, 0 deletions
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 |
