1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00

New port: www/mod_auth_openidc:

mod_auth_openidc is an authentication/authorization module for the Apache 2.x
HTTP server that functions as an OpenID Connect Relying Party, authenticating
users against an OpenID Connect Provider. It can also function as an OAuth 2.0
Resource Server, validating OAuth 2.0 access tokens presented by OAuth 2.0
Clients.

WWW: https://github.com/pingidentity/mod_auth_openidc/
This commit is contained in:
Ryan Steinmetz 2017-09-13 02:04:45 +00:00
parent 5ab2e6478b
commit d5d77a3eac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=449748
6 changed files with 67 additions and 0 deletions

View File

@ -424,6 +424,7 @@
SUBDIR += mod_auth_mysql2
SUBDIR += mod_auth_mysql_another
SUBDIR += mod_auth_openid
SUBDIR += mod_auth_openidc
SUBDIR += mod_auth_pam2
SUBDIR += mod_auth_pgsql2
SUBDIR += mod_auth_pubtkt

View File

@ -0,0 +1,48 @@
# Created by: Ryan Steinmetz <zi@FreeBSD.org>
# $FreeBSD$
PORTNAME= mod_auth_openidc
PORTVERSION= 2.3.1
DISTVERSIONPREFIX= v
CATEGORIES= www
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
MAINTAINER= zi@FreeBSD.org
COMMENT= OpenID Connect Relying Party and OAuth 2.0 Resource Server for Apache
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
LIB_DEPENDS= libcjose.so:devel/cjose \
libcurl.so:ftp/curl \
libjansson.so:devel/jansson \
libpcre.so:devel/pcre
USE_GITHUB= yes
GH_ACCOUNT= pingidentity
PLIST_FILES= ${APACHEMODDIR}/mod_auth_openidc.so
USE_APACHE= 22+
USES= autoreconf:autoconf gmake libtool pkgconfig ssl
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-hiredis
CONFIGURE_ENV+= OPENSSL_CFLAGS="-I${OPENSSLINC}" OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto" \
PKG_CONFIG_PATH="${LOCALBASE}/libdata/pkgconfig"
SUB_FILES= pkg-message
post-patch:
@${REINPLACE_CMD} -e \
's|@APXS2@ @APXS2_OPTS@ -i|@APXS2@ @APXS2_OPTS@ -S LIBEXECDIR=${STAGEDIR}${PREFIX}/${APACHEMODDIR} -i|' \
${WRKSRC}/Makefile.in
pre-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR} \
${STAGEDIR}${PREFIX}/${APACHEETCDIR}/Includes
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/${PORTNAME}.so
${INSTALL_DATA} ${WRKSRC}/auth_openidc.conf \
${STAGEDIR}${PREFIX}/${APACHEETCDIR}/Includes/auth_openidc.conf.sample
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1505264187
SHA256 (pingidentity-mod_auth_openidc-v2.3.1_GH0.tar.gz) = 4bbed6531b24bfcfd3e2e10911831216a68246a00908a226a97812f9fc9cd337
SIZE (pingidentity-mod_auth_openidc-v2.3.1_GH0.tar.gz) = 210766

View File

@ -0,0 +1,7 @@
===========================================================================
Please add the following to %%PREFIX%%/%%APACHEETCDIR%%/httpd.conf:
LoadModule auth_openidc_module %%APACHEMODDIR%%/mod_auth_openidc.so
Then update the following config file with your settings:
%%PREFIX%%/%%APACHEETCDIR%%/Includes/auth_openidc.conf
===========================================================================

View File

@ -0,0 +1,7 @@
mod_auth_openidc is an authentication/authorization module for the Apache 2.x
HTTP server that functions as an OpenID Connect Relying Party, authenticating
users against an OpenID Connect Provider. It can also function as an OAuth 2.0
Resource Server, validating OAuth 2.0 access tokens presented by OAuth 2.0
Clients.
WWW: https://github.com/pingidentity/mod_auth_openidc/

View File

@ -0,0 +1 @@
@sample %%APACHEETCDIR%%/Includes/auth_openidc.conf.sample