From 4f14efbfc556607d651c354951dd2ce7edcd835b Mon Sep 17 00:00:00 2001 From: Pier Paolo MAMMI Date: Thu, 27 Aug 2026 09:45:24 +0200 Subject: [PATCH 1/2] update environment files after update to bruno 4.x --- .../environments/ESSE3 Anagrafica Pre-Prod #2.yml | 3 +++ .../environments/ESSE3 Common Auth Pre-Prod #2.yml | 3 +++ bruno/collections/IDEM WebServices/.env.template | 2 +- .../collections/IDEM WebServices/environments/Produzione.yml | 4 ++++ bruno/collections/IDEM WebServices/environments/Test.yml | 4 ++++ .../environments/IRIS - Prod.yml | 3 +++ .../ORDS generated API for publish/environments/ORDS.yml | 1 + bruno/collections/Scopus/environments/Scopus - Prod.yml | 2 ++ 8 files changed, 21 insertions(+), 1 deletion(-) diff --git a/bruno/collections/ESSE3 Anagrafica API/environments/ESSE3 Anagrafica Pre-Prod #2.yml b/bruno/collections/ESSE3 Anagrafica API/environments/ESSE3 Anagrafica Pre-Prod #2.yml index 7cfd6dc..470cc43 100644 --- a/bruno/collections/ESSE3 Anagrafica API/environments/ESSE3 Anagrafica Pre-Prod #2.yml +++ b/bruno/collections/ESSE3 Anagrafica API/environments/ESSE3 Anagrafica Pre-Prod #2.yml @@ -2,7 +2,10 @@ name: "ESSE3 Anagrafica Pre-Prod #2" variables: - name: esse3apiRootUrl value: https://unipr2.esse3.pp.cineca.it + description: "" - name: esse3apiUsername value: "{{process.env.esse3apiUsername}}" + description: "" - name: esse3apiPassword value: "{{process.env.esse3apiPassword}}" + description: "" diff --git a/bruno/collections/ESSE3 Common Auth API/environments/ESSE3 Common Auth Pre-Prod #2.yml b/bruno/collections/ESSE3 Common Auth API/environments/ESSE3 Common Auth Pre-Prod #2.yml index b4148d6..9c1b57b 100644 --- a/bruno/collections/ESSE3 Common Auth API/environments/ESSE3 Common Auth Pre-Prod #2.yml +++ b/bruno/collections/ESSE3 Common Auth API/environments/ESSE3 Common Auth Pre-Prod #2.yml @@ -2,7 +2,10 @@ name: "ESSE3 Common Auth Pre-Prod #2" variables: - name: esse3apiUsername value: "{{process.env.esse3apiUsername}}" + description: "" - name: esse3apiPassword value: "{{process.env.esse3apiPassword}}" + description: "" - name: esse3apiRootUrl value: https://unipr2.esse3.pp.cineca.it/e3rest/api + description: "" diff --git a/bruno/collections/IDEM WebServices/.env.template b/bruno/collections/IDEM WebServices/.env.template index 9bc94ce..917c195 100644 --- a/bruno/collections/IDEM WebServices/.env.template +++ b/bruno/collections/IDEM WebServices/.env.template @@ -1,3 +1,3 @@ IdemApiUsername= IdemApiPassword= -IdemApiKey= +IdemApiKey= \ No newline at end of file diff --git a/bruno/collections/IDEM WebServices/environments/Produzione.yml b/bruno/collections/IDEM WebServices/environments/Produzione.yml index a8405de..4933a27 100644 --- a/bruno/collections/IDEM WebServices/environments/Produzione.yml +++ b/bruno/collections/IDEM WebServices/environments/Produzione.yml @@ -3,9 +3,13 @@ color: "#2E8A54" variables: - name: IdemApiUrl value: https://www.idem.unipr.it/ws/elix + description: "" - name: IdemApiUsername value: "{{process.env.IdemApiUsername}}" + description: "" - name: IdemApiPassword value: "{{process.env.IdemApiPassword}}" + description: "" - name: IdemApiKey value: "{{process.env.IdemApiKey}}" + description: "" diff --git a/bruno/collections/IDEM WebServices/environments/Test.yml b/bruno/collections/IDEM WebServices/environments/Test.yml index 131863b..d6faed0 100644 --- a/bruno/collections/IDEM WebServices/environments/Test.yml +++ b/bruno/collections/IDEM WebServices/environments/Test.yml @@ -3,9 +3,13 @@ color: "#C77A0F" variables: - name: IdemApiUrl value: https://www.idem2.unipr.it/ws/elix + description: "" - name: IdemApiUsername value: "{{process.env.IdemApiUsername}}" + description: "" - name: IdemApiPassword value: "{{process.env.IdemApiPassword}}" + description: "" - name: IdemApiKey value: "{{process.env.IdemApiKey}}" + description: "" diff --git a/bruno/collections/IRIS GW (Gateway) REST API (v1)/environments/IRIS - Prod.yml b/bruno/collections/IRIS GW (Gateway) REST API (v1)/environments/IRIS - Prod.yml index e63a503..a3ae478 100644 --- a/bruno/collections/IRIS GW (Gateway) REST API (v1)/environments/IRIS - Prod.yml +++ b/bruno/collections/IRIS GW (Gateway) REST API (v1)/environments/IRIS - Prod.yml @@ -3,7 +3,10 @@ color: "#2E8A54" variables: - name: IrisApiUrl value: https://air.unipr.it/gw/rest/api + description: "" - name: IrisApiUsername value: "{{process.env.IrisApiUsername}}" + description: "" - name: IrisApiPassword value: "{{process.env.IrisApiPassword}}" + description: "" diff --git a/bruno/collections/ORDS generated API for publish/environments/ORDS.yml b/bruno/collections/ORDS generated API for publish/environments/ORDS.yml index 50a2943..22a7821 100644 --- a/bruno/collections/ORDS generated API for publish/environments/ORDS.yml +++ b/bruno/collections/ORDS generated API for publish/environments/ORDS.yml @@ -2,3 +2,4 @@ name: ORDS variables: - name: situasBaseUrl value: https://situas-servizi.istat.it/publish + description: "" diff --git a/bruno/collections/Scopus/environments/Scopus - Prod.yml b/bruno/collections/Scopus/environments/Scopus - Prod.yml index afe09ff..650bc6e 100644 --- a/bruno/collections/Scopus/environments/Scopus - Prod.yml +++ b/bruno/collections/Scopus/environments/Scopus - Prod.yml @@ -3,5 +3,7 @@ color: "#2E8A54" variables: - name: ScopusApiKey1 value: "{{process.env.ScopusApiKey1}}" + description: "" - name: ScopusApiKey2 value: "{{process.env.ScopusApiKey2}}" + description: "" From 935862439228dfaf77aa1c82b7193df09bc2ab6a Mon Sep 17 00:00:00 2001 From: Pier Paolo MAMMI Date: Thu, 27 Aug 2026 10:21:51 +0200 Subject: [PATCH 2/2] add shibboleth collection to environment automation --- .../Authorize (manual flow in browser).yml | 4 ++-- .../Shibboleth/Generate Access Token.yml | 8 ++++---- .../Get OIDC well-known configuration.yml | 2 +- bruno/collections/Shibboleth/Get UserInfo.yml | 2 +- .../Shibboleth/environments/Shibboleth.yml | 11 ++++------- env.json.template | 16 +++++++++++++--- 6 files changed, 25 insertions(+), 18 deletions(-) diff --git a/bruno/collections/Shibboleth/Authorize (manual flow in browser).yml b/bruno/collections/Shibboleth/Authorize (manual flow in browser).yml index f156f45..1a6c4d6 100644 --- a/bruno/collections/Shibboleth/Authorize (manual flow in browser).yml +++ b/bruno/collections/Shibboleth/Authorize (manual flow in browser).yml @@ -5,13 +5,13 @@ info: http: method: GET - url: "{{serverUri}}/idp/profile/oidc/authorize?client_id={{clientId}}&redirect_uri={{redirectUri}}&response_type=code&scope=openid profile email" + url: "{{shibbolethServerUri}}/idp/profile/oidc/authorize?client_id={{clientId}}&redirect_uri={{clientRedirectUri}}&response_type=code&scope=openid profile email" params: - name: client_id value: "{{clientId}}" type: query - name: redirect_uri - value: "{{redirectUri}}" + value: "{{clientRedirectUri}}" type: query - name: response_type value: code diff --git a/bruno/collections/Shibboleth/Generate Access Token.yml b/bruno/collections/Shibboleth/Generate Access Token.yml index 55a9a2e..45de766 100644 --- a/bruno/collections/Shibboleth/Generate Access Token.yml +++ b/bruno/collections/Shibboleth/Generate Access Token.yml @@ -5,7 +5,7 @@ info: http: method: POST - url: "{{serverUri}}/idp/profile/oidc/token" + url: "{{shibbolethServerUri}}/idp/profile/oidc/token" headers: - name: Content-Type value: application/x-www-form-urlencoded @@ -15,11 +15,11 @@ http: - name: grant_type value: authorization_code - name: redirect_uri - value: "{{redirectUri}}" + value: "{{clientRedirectUri}}" - name: scope value: openid profile email - name: code - value: "" + value: AAdzZWNyZXQxcKlGLY3zJzZp-SXBg9tSJp2n8PxhgB5nnYFr1f50GfD69sLo_OZ3t73WEPW2BKhY5sGh6A-dEmu7nX_PCk0QU7UwZEkFTQPu28BPyE11r-aqAZEO88CN0bTZB5nzx8ecAcQMvE8X74rHpmiWDf2YKdQVPlb9N7ON_ALKWx1XmVueinmHiwXFow1hnhZMxZK_Jy0DSmT9QN4pbfyDD2UkRZo4BOgyxqlYiDWWGF39DkVdwJfrduq5HM3yT3bUdR2zB-u25ol6NrOpfkoaM5-QKWexCfmFLx_huZah4vXY0RnvdzE8v5fpLCYVDUwv3gSXpsOuS4Ynf84Wz8Nr6bdaCo8hfHdCvNDtNPEBy7DTQ-2rb3Lgqq_piqj3N9WpBFIqqRQfwHBnKGGr07TXoaEi_fSROZ99VIJaPVJZNTdCNiiR9Sql_78KJr1tapx9eQD2UnkRPlzpBvQU6W4uX4YHqgd0i9sLEBOFv4BkGc9AwpB5ew description: Paste code obtained by manual flow in browser auth: type: basic @@ -31,7 +31,7 @@ runtime: - type: after-response code: |- var jsonData = res.getBody(); - bru.setEnvVar("accessToken", jsonData.access_token); + bru.setVar("accessToken", jsonData.access_token); - type: tests code: |- test("Status code is 200", function () { diff --git a/bruno/collections/Shibboleth/Get OIDC well-known configuration.yml b/bruno/collections/Shibboleth/Get OIDC well-known configuration.yml index fe1ff74..9cb76bd 100644 --- a/bruno/collections/Shibboleth/Get OIDC well-known configuration.yml +++ b/bruno/collections/Shibboleth/Get OIDC well-known configuration.yml @@ -5,7 +5,7 @@ info: http: method: GET - url: "{{serverUri}}/.well-known/openid-configuration" + url: "{{shibbolethServerUri}}/.well-known/openid-configuration" auth: inherit settings: diff --git a/bruno/collections/Shibboleth/Get UserInfo.yml b/bruno/collections/Shibboleth/Get UserInfo.yml index 3299b4a..2d2c4f5 100644 --- a/bruno/collections/Shibboleth/Get UserInfo.yml +++ b/bruno/collections/Shibboleth/Get UserInfo.yml @@ -5,7 +5,7 @@ info: http: method: GET - url: "{{serverUri}}/idp/profile/oidc/userinfo?client_id={{clientId}}&client_secret={{clientSecret}}" + url: "{{shibbolethServerUri}}/idp/profile/oidc/userinfo?client_id={{clientId}}&client_secret={{clientSecret}}" headers: - name: Content-Type value: application/x-www-form-urlencoded diff --git a/bruno/collections/Shibboleth/environments/Shibboleth.yml b/bruno/collections/Shibboleth/environments/Shibboleth.yml index c20d53c..406aece 100644 --- a/bruno/collections/Shibboleth/environments/Shibboleth.yml +++ b/bruno/collections/Shibboleth/environments/Shibboleth.yml @@ -1,17 +1,14 @@ name: Shibboleth variables: - name: clientId - value: "{{process.env.client_id}}" + value: "{{process.env.clientId}}" description: "" - name: clientSecret - value: "{{process.env.client_secret}}" + value: "{{process.env.clientSecret}}" description: "" - - name: redirectUri + - name: clientRedirectUri value: https://gitea.unipr.it/user/oauth2/Shibboleth/callback description: "" - - name: accessToken - value: AAdzZWNyZXQx1CToBgEqA8mxMWGsLKf0V86PS2Oz-3bI5BlRuiitj3iXP_qfSJgNzYsMdsIQ9QRmoIOS6ISVvFSyJ5XeHYE_msw6VJELg9S6qsO4mrBBwCaUM9p3zMPwNBwZJVn6vqgGghpMS_xeW2EGthh9W0HBsh7WuPYK4HJVpTYIxgYR782xET0ZU3XxLBknOeMoye2IrH3sYpeCRQCmd1GUyTl1Ra4sGdqYcw3iiISA_FbPMXOLFQN8GcFtEcPxzc9CtH4PHKDYIj_QQx0IUgEH814pyC-Oc5-19Gfg4Ulps9ZHF9rb4csbi9mvWAuJESHcSp5NSAK9tEMFvBUCe_2nr7WyzaGTI1D6Nr1PenxbWIRAmXGF5LtzSrv-8_k8XSdufefACBVbZH6EQWm4smrqSlMab71F5s9wB3rFEK5IuANQblFljG_vfoCATpmk0MCYo47SApSrorMYN5K6yWf4P3PuyQrIdrw0PsRzBWoY8XpzQTGYN1I - description: "" - - name: serverUri + - name: shibbolethServerUri value: https://shibidp.unipr.it description: "" diff --git a/env.json.template b/env.json.template index 0aeb101..928a962 100644 --- a/env.json.template +++ b/env.json.template @@ -3,15 +3,19 @@ "ExcludeFromBruno": [ "elixFormsApiUrl", "elixFormsApiUrl_Default", + "elixFormsRootUrl", "esse3apiRootUrl", "IdemApiUrl", - "IrisApiUrl" + "IrisApiUrl", + "shibbolethServerUri", + "clientRedirectUri" ] }, "API": { "elixForms API v2": { - "elixFormsApiUrl": "https://procedure.unipr.it/eF/services/api", - "elixFormsApiUrl_Default": "https://procedure.unipr.it/eF/api", + "elixFormsApiUrl": "https://console-unipr.elixforms.it/eF/services/api", + "elixFormsApiUrl_Default": "https://console-unipr.elixforms.it/eF/api", + "elixFormsRootUrl": "https://console-unipr.elixforms.it", "elixFormsApiUsername": null, "elixFormsApiPassword": null, "elixFormsWsAuthenticationToken": null @@ -40,6 +44,12 @@ "Scopus": { "ScopusApiKey1": null, "ScopusApiKey2": null + }, + "Shibboleth": { + "shibbolethServerUri": "https://shibidp.unipr.it", + "clientId": null, + "clientSecret": null, + "clientRedirectUri": "https://gitea.unipr.it/user/oauth2/Shibboleth/callback" } } } \ No newline at end of file