Skip to content

Commit 375407c

Browse files
committed
use encrypted JWTs for storing encrypted cache contents
- avoid using static AAD/IV; thanks @niebardzo - bump to 2.4.9-dev Signed-off-by: Hans Zandbelt <[email protected]>
1 parent 56d2e02 commit 375407c

File tree

7 files changed

+103
-377
lines changed

7 files changed

+103
-377
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@
2424
/Dockerfile-*
2525
/*.rpm
2626

27+
/config.guess~
28+
/config.sub~

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
06/10/2021
2+
- use encrypted JWTs for storing encrypted cache contents and avoid using static AAD/IV; thanks @niebardzo
3+
- bump to 2.4.9-dev
4+
15
06/04/2021
26
- fix a problem where the host and port are calculated incorrectly, when you use literal ipv6 address.
37

Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
FROM ubuntu:bionic
22
33

4+
ENV DEBIAN_FRONTEND noninteractive
5+
46
RUN apt-get update && apt-get install -y pkg-config make gcc gdb lcov valgrind vim curl iputils-ping wget
57
RUN apt-get update && apt-get install -y autoconf automake libtool
68
RUN apt-get update && apt-get install -y libssl-dev libjansson-dev libcurl4-openssl-dev check
7-
#RUN apt-get update && apt-get install -y libcjose-dev
89
RUN apt-get update && apt-get install -y apache2 apache2-dev
9-
1010
RUN apt-get update && apt-get install -y libpcre3-dev zlib1g-dev
11+
RUN apt-get update && apt-get install -y libapache2-mod-php
1112

1213
RUN wget https://mod-auth-openidc.org/download/libcjose0_0.6.1.5-1~bionic+1_amd64.deb
1314
RUN wget https://mod-auth-openidc.org/download/libcjose-dev_0.6.1.5-1~bionic+1_amd64.deb
@@ -35,4 +36,8 @@ ADD openidc.conf /etc/apache2/conf-available
3536
RUN a2enconf openidc
3637
RUN /usr/sbin/apache2ctl start
3738

38-
# docker run -p 443:443 -it 749d1204d189 /bin/bash -c "source /etc/apache2/envvars && valgrind --leak-check=full /usr/sbin/apache2 -X"
39+
RUN mkdir -p /var/www/html/protected
40+
RUN echo "<html><body><h1>Hello, <?php echo($_SERVER['REMOTE_USER']) ?></h1><pre><?php print_r(array_map(\"htmlentities\", apache_request_headers())); ?></pre><a href=\"/protected/?logout=https%3A%2F%2Flocalhost.zmartzone.eu%2Floggedout.html\">Logout</a></body></html>" > /var/www/html/protected/index.php
41+
RUN mkdir -p /var/www/html/api && cp /var/www/html/protected/index.php /var/www/html/api
42+
43+
# docker run -p 443:443 -it mod_auth_openidc /bin/bash -c "source /etc/apache2/envvars && valgrind --leak-check=full /usr/sbin/apache2 -X"

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AC_INIT([mod_auth_openidc],[2.4.8.4],[[email protected]])
1+
AC_INIT([mod_auth_openidc],[2.4.9-dev],[[email protected]])
22

33
AC_SUBST(NAMEVER, AC_PACKAGE_TARNAME()-AC_PACKAGE_VERSION())
44

openidc.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ OIDCCryptoPassphrase blabla1234
2424

2525
OIDCInfoHook iat access_token access_token_expires id_token userinfo refresh_token session
2626

27+
OIDCScope "openid email profile"
28+
2729
<Location /protected>
2830
AuthType openid-connect
2931
Require valid-user

0 commit comments

Comments
 (0)