From 23f96a6f8fa1d595ad501ef713b85775733cf08d Mon Sep 17 00:00:00 2001
From: Carina Antunes <carina.oliveira.antunes@cern.ch>
Date: Wed, 31 Jul 2024 15:03:34 +0200
Subject: [PATCH 1/3] Update oidc-options.json

---
 .../php/wordpress-content/plugins/oidc-options.json             | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/root/usr/share/container-scripts/php/wordpress-content/plugins/oidc-options.json b/root/usr/share/container-scripts/php/wordpress-content/plugins/oidc-options.json
index d741300..076789e 100644
--- a/root/usr/share/container-scripts/php/wordpress-content/plugins/oidc-options.json
+++ b/root/usr/share/container-scripts/php/wordpress-content/plugins/oidc-options.json
@@ -1 +1 @@
-{"login_type":"auto","client_id":"$OIDC_CLIENT_ID","client_secret":"$OIDC_CLIENT_SECRET","scope":"openid","endpoint_login":"https:\/\/auth.cern.ch\/auth\/realms\/cern\/protocol\/openid-connect\/auth","endpoint_userinfo":"https:\/\/auth.cern.ch\/auth\/realms\/cern\/protocol\/openid-connect\/userinfo","endpoint_token":"https:\/\/auth.cern.ch\/auth\/realms\/cern\/protocol\/openid-connect\/token","endpoint_end_session":"https://$APPLICATION_NAME/*","acr_values":"","identity_key":"preferred_username","no_sslverify":"0","http_request_timeout":"5","enforce_privacy":"0","alternate_redirect_uri":"0","nickname_key":"preferred_username","email_format":"{email}","displayname_format":"","identify_with_username":"0","state_time_limit":"180","token_refresh_enable":"1","link_existing_users":1,"create_if_does_not_exist":"1","redirect_user_back":"0","redirect_on_logout":"1","enable_logging":"0","log_limit":"1000"}
\ No newline at end of file
+{"login_type":"auto","client_id":"$OIDC_CLIENT_ID","client_secret":"$OIDC_CLIENT_SECRET","scope":"openid","endpoint_login":"https:\/\/auth.cern.ch\/auth\/realms\/cern\/protocol\/openid-connect\/auth","endpoint_userinfo":"https:\/\/auth.cern.ch\/auth\/realms\/cern\/protocol\/openid-connect\/userinfo","endpoint_token":"https:\/\/auth.cern.ch\/auth\/realms\/cern\/protocol\/openid-connect\/token","endpoint_end_session":"https://$APPLICATION_NAME","acr_values":"","identity_key":"preferred_username","no_sslverify":"0","http_request_timeout":"5","enforce_privacy":"0","alternate_redirect_uri":"0","nickname_key":"preferred_username","email_format":"{email}","displayname_format":"","identify_with_username":"0","state_time_limit":"180","token_refresh_enable":"1","link_existing_users":1,"create_if_does_not_exist":"1","redirect_user_back":"0","redirect_on_logout":"1","enable_logging":"0","log_limit":"1000"}
\ No newline at end of file
-- 
GitLab


From d34a35a9d4b421e099653ea51c2efe90df877dfa Mon Sep 17 00:00:00 2001
From: Carina Antunes <carina.oliveira.antunes@cern.ch>
Date: Wed, 31 Jul 2024 15:12:25 +0200
Subject: [PATCH 2/3] Update oidc-options.json

---
 .../php/wordpress-content/plugins/oidc-options.json             | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/root/usr/share/container-scripts/php/wordpress-content/plugins/oidc-options.json b/root/usr/share/container-scripts/php/wordpress-content/plugins/oidc-options.json
index 076789e..57bc36c 100644
--- a/root/usr/share/container-scripts/php/wordpress-content/plugins/oidc-options.json
+++ b/root/usr/share/container-scripts/php/wordpress-content/plugins/oidc-options.json
@@ -1 +1 @@
-{"login_type":"auto","client_id":"$OIDC_CLIENT_ID","client_secret":"$OIDC_CLIENT_SECRET","scope":"openid","endpoint_login":"https:\/\/auth.cern.ch\/auth\/realms\/cern\/protocol\/openid-connect\/auth","endpoint_userinfo":"https:\/\/auth.cern.ch\/auth\/realms\/cern\/protocol\/openid-connect\/userinfo","endpoint_token":"https:\/\/auth.cern.ch\/auth\/realms\/cern\/protocol\/openid-connect\/token","endpoint_end_session":"https://$APPLICATION_NAME","acr_values":"","identity_key":"preferred_username","no_sslverify":"0","http_request_timeout":"5","enforce_privacy":"0","alternate_redirect_uri":"0","nickname_key":"preferred_username","email_format":"{email}","displayname_format":"","identify_with_username":"0","state_time_limit":"180","token_refresh_enable":"1","link_existing_users":1,"create_if_does_not_exist":"1","redirect_user_back":"0","redirect_on_logout":"1","enable_logging":"0","log_limit":"1000"}
\ No newline at end of file
+{"login_type":"auto","client_id":"$OIDC_CLIENT_ID","client_secret":"$OIDC_CLIENT_SECRET","scope":"openid","endpoint_login":"https:\/\/auth.cern.ch\/auth\/realms\/cern\/protocol\/openid-connect\/auth","endpoint_userinfo":"https:\/\/auth.cern.ch\/auth\/realms\/cern\/protocol\/openid-connect\/userinfo","endpoint_token":"https:\/\/auth.cern.ch\/auth\/realms\/cern\/protocol\/openid-connect\/token","endpoint_end_session":"https://auth.cern.ch/auth/realms/cern/protocol/openid-connect/logout?redirect_uri=https://$APPLICATION_NAME","acr_values":"","identity_key":"preferred_username","no_sslverify":"0","http_request_timeout":"5","enforce_privacy":"0","alternate_redirect_uri":"0","nickname_key":"preferred_username","email_format":"{email}","displayname_format":"","identify_with_username":"0","state_time_limit":"180","token_refresh_enable":"1","link_existing_users":1,"create_if_does_not_exist":"1","redirect_user_back":"0","redirect_on_logout":"1","enable_logging":"0","log_limit":"1000"}
\ No newline at end of file
-- 
GitLab


From f5e9d28c9d064b78d6b80b449a34e3069bd2b358 Mon Sep 17 00:00:00 2001
From: Carina Antunes <carina.oliveira.antunes@cern.ch>
Date: Wed, 31 Jul 2024 15:22:29 +0200
Subject: [PATCH 3/3] Update oidc-options.json

---
 .../php/wordpress-content/plugins/oidc-options.json             | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/root/usr/share/container-scripts/php/wordpress-content/plugins/oidc-options.json b/root/usr/share/container-scripts/php/wordpress-content/plugins/oidc-options.json
index 57bc36c..d9eee49 100644
--- a/root/usr/share/container-scripts/php/wordpress-content/plugins/oidc-options.json
+++ b/root/usr/share/container-scripts/php/wordpress-content/plugins/oidc-options.json
@@ -1 +1 @@
-{"login_type":"auto","client_id":"$OIDC_CLIENT_ID","client_secret":"$OIDC_CLIENT_SECRET","scope":"openid","endpoint_login":"https:\/\/auth.cern.ch\/auth\/realms\/cern\/protocol\/openid-connect\/auth","endpoint_userinfo":"https:\/\/auth.cern.ch\/auth\/realms\/cern\/protocol\/openid-connect\/userinfo","endpoint_token":"https:\/\/auth.cern.ch\/auth\/realms\/cern\/protocol\/openid-connect\/token","endpoint_end_session":"https://auth.cern.ch/auth/realms/cern/protocol/openid-connect/logout?redirect_uri=https://$APPLICATION_NAME","acr_values":"","identity_key":"preferred_username","no_sslverify":"0","http_request_timeout":"5","enforce_privacy":"0","alternate_redirect_uri":"0","nickname_key":"preferred_username","email_format":"{email}","displayname_format":"","identify_with_username":"0","state_time_limit":"180","token_refresh_enable":"1","link_existing_users":1,"create_if_does_not_exist":"1","redirect_user_back":"0","redirect_on_logout":"1","enable_logging":"0","log_limit":"1000"}
\ No newline at end of file
+{"login_type":"auto","client_id":"$OIDC_CLIENT_ID","client_secret":"$OIDC_CLIENT_SECRET","scope":"openid","endpoint_login":"https:\/\/auth.cern.ch\/auth\/realms\/cern\/protocol\/openid-connect\/auth","endpoint_userinfo":"https:\/\/auth.cern.ch\/auth\/realms\/cern\/protocol\/openid-connect\/userinfo","endpoint_token":"https:\/\/auth.cern.ch\/auth\/realms\/cern\/protocol\/openid-connect\/token","endpoint_end_session":"https://auth.cern.ch/auth/realms/cern/protocol/openid-connect/logout?post_logout_redirect_uri=https://$APPLICATION_NAME&client_id=$OIDC_CLIENT_ID","acr_values":"","identity_key":"preferred_username","no_sslverify":"0","http_request_timeout":"5","enforce_privacy":"0","alternate_redirect_uri":"0","nickname_key":"preferred_username","email_format":"{email}","displayname_format":"","identify_with_username":"0","state_time_limit":"180","token_refresh_enable":"1","link_existing_users":1,"create_if_does_not_exist":"1","redirect_user_back":"0","redirect_on_logout":"1","enable_logging":"0","log_limit":"1000"}
\ No newline at end of file
-- 
GitLab