Skip to content

Commit

Permalink
DC logout issue on UMS
Browse files Browse the repository at this point in the history
  • Loading branch information
mmouly committed Dec 3, 2020
1 parent 4c89418 commit c30ba24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion decisioncenter/config/OdmOidcProviders.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"introspectionURL": "OPENID_INTROSPECTION_URL",
"clientId": "OPENID_CLIENT_ID",
"clientSecret": "OPENID_CLIENT_SECRET",
"tokenFormat": "OPENID_TOKEN_FORMAT"
"tokenFormat": "OPENID_TOKEN_FORMAT",
"logoutURL": "OPENID_LOGOUT_URL"
}
]
}
4 changes: 4 additions & 0 deletions decisioncenter/script/updateDCConfigurations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ then
OPENID_TOKEN_FORMAT=$(grep OPENID_TOKEN_FORMAT /config/authOidc/openIdParameters.properties | sed "s/OPENID_TOKEN_FORMAT=//g")
echo "OAuth config : set Token Format to $OPENID_TOKEN_FORMAT"
sed -i 's|OPENID_TOKEN_FORMAT|'$OPENID_TOKEN_FORMAT'|g' /config/OdmOidcProviders.json

OPENID_LOGOUT_URL=$(grep OPENID_LOGOUT_URL /config/authOidc/openIdParameters.properties | sed "s/OPENID_LOGOUT_URL=//g")
echo "OAuth config : set logout URL to $OPENID_LOGOUT_URL"
sed -i 's|OPENID_LOGOUT_URL|'$OPENID_LOGOUT_URL'|g' /config/OdmOidcProviders.json

echo "Copy /config/OdmOidcProviders.json resource to $APPS/decisioncenter.war/WEB-INF/classes/config/OdmOidcProviders.json"
cp /config/OdmOidcProviders.json $APPS/decisioncenter.war/WEB-INF/classes/OdmOidcProviders.json
Expand Down

0 comments on commit c30ba24

Please sign in to comment.