Skip to content

Commit

Permalink
update midPoint to 4.8.4 and fix MP logout
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Aug 20, 2024
1 parent 4703e02 commit 17eb161
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
7 changes: 5 additions & 2 deletions Workbench/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,14 @@ services:
- comanage_midpoint_data:/var/lib/postgresql/data

data_init:
image: evolveum/midpoint:${MP_VER:-4.8.3}-rockylinux
image: evolveum/midpoint:${MP_VER:-4.8.4}-rockylinux
depends_on:
midpoint_data:
condition: service_healthy
command: >
bash -c "
cd /opt/midpoint ;
if [ ! -z "${CSPHOSTNAME}" ]; then sed -i 's|__SERVERNAME__|${CSPHOSTNAME}|g' /opt/midpoint/mp-home-in/post-initial-objects/securityPolicy/000-security-policy.xml ; else echo 'var not set' ; fi ;
bin/midpoint.sh init-native ;
echo ' - - - - - - ' ;
bin/ninja.sh -B info >/dev/null 2>/tmp/ninja.log ;
Expand All @@ -284,6 +285,7 @@ services:
cp /opt/midpoint/csv_in/faculty-portal.csv /opt/midpoint/var/ ;
cp /opt/midpoint/csv_in/mailing-lists.csv /opt/midpoint/var/ ;
cp -R /opt/midpoint/mp-home-in/* /opt/midpoint/var/ ;
echo "env var is:** $CSPHOSTNAME **"
"
environment:
- MP_SET_midpoint_repository_jdbcUsername=midpoint
Expand All @@ -293,6 +295,7 @@ services:
- MP_INIT_CFG=/opt/midpoint/var
- MP_PW_DEF=/run/secrets/m_keystore_password.txt
- MP_KEYSTORE=/opt/midpoint/var/keystore.jceks
- CSPHOSTNAME
networks:
- net
secrets:
Expand Down Expand Up @@ -327,7 +330,7 @@ services:
- midpoint_data:/var/lib/postgresql/data

midpoint_server:
image: evolveum/midpoint:${MP_VER:-4.8.3}-rockylinux
image: evolveum/midpoint:${MP_VER:-4.8.4}-rockylinux
container_name: midpoint_server
hostname: midpoint-container
depends_on:
Expand Down
1 change: 1 addition & 0 deletions Workbench/midpoint_server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#This file is no longer used. As of midPoint version 4.8.3, we are using the native midpoint container from Evolveum. See the docker-compose.yml file for additional clarity.
FROM i2incommon/midpoint:4.8.2

ARG CSPHOSTNAME=localhost
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<httpHeader>
<identifier>httpHeader</identifier>
<usernameHeader>REMOTE_USER</usernameHeader>
<logoutUrl>/Shibboleth.sso/Logout</logoutUrl>
<logoutUrl>https://__SERVERNAME__/mppSSO/Shibboleth.sso/Logout</logoutUrl>
</httpHeader>
</modules>
<sequence>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<httpHeader>
<identifier>httpHeader</identifier>
<usernameHeader>REMOTE_USER</usernameHeader>
<logoutUrl>https://localhost:8443/Shibboleth.sso/Logout</logoutUrl>
<logoutUrl>https://test.workbench.incommon.org/mppSSO/Shibboleth.sso/Logout</logoutUrl>
</httpHeader>
</modules>
<sequence>
Expand Down
1 change: 1 addition & 0 deletions Workbench/mpproxy/container_files/httpd/midpoint.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ ProxyBadHeader Ignore
</Location>

RequestHeader unset Authorization
ProxyPass /midpoint/mppSSO !
ProxyPass /midpoint ajp://midpoint_server:9090/midpoint secret=s3cr3t timeout=2400 retry=0

2 changes: 1 addition & 1 deletion Workbench/mpproxy/container_files/httpd/shib.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ShibCompatValidUser On
#
# Ensures handler will be accessible.
#
<Location /Shibboleth.sso>
<Location /mppSSO/Shibboleth.sso>
AuthType None
Require all granted
SetHandler shib
Expand Down
2 changes: 1 addition & 1 deletion Workbench/webproxy/container_files/httpd/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h3>Welcome to the InCommon TAP Workbench!</h3>

<ul>
<li><a href="https://__CSPHOSTNAME__/grouper" target="TAP-WB-GROUPER">Grouper (4.14.2)</a></li>
<li><a href="https://__CSPHOSTNAME__/midpoint" target="TAP-WB-MIDPOINT">midPoint (4.8.3)</a></li>
<li><a href="https://__CSPHOSTNAME__/midpoint" target="TAP-WB-MIDPOINT">midPoint (4.8.4)</a></li>
<ul><li><a href="https://__CSPHOSTNAME__/midPoint-doc.html" target="TAP-WB-MIDPOINT-CONFIG">Technical doc on midPoint's configuration</a></li></ul>
<li><a href="https://__CSPHOSTNAME__/registry" target="TAP-WB-COMANAGE">COmanage Registry (4.3.4)</a></li>
<li><a href="https://__CSPHOSTNAME__/idpui/" target="TAP-WB-IDPUI">Shibboleth IdP UI (1.18.0)</a></li>
Expand Down

0 comments on commit 17eb161

Please sign in to comment.