Project

General

Profile

Actions

Support #25212

closed

Configurare openportal front end all'accesso da siti *.isti.cnr.it

Added by Michele Artini about 1 year ago. Updated 10 months ago.

Status:
Closed
Priority:
High
Start date:
Jun 05, 2023
Due date:
% Done:

100%

Estimated time:
VREName:

Description

Lo scopo è quello di permettere a client provenienti da domini *.isti.cnr.it di accedere al front end con chiamate tipo

https://openportal.isti.cnr.it/results?format=json&qv=

e autorizzare questi domini nell'header della risposta così da evitare problemi di CORS


Add

Subtasks


Add

Related issues

Related to ISTI Open Access - Support #27104: Problema accesso a dati openportal da nuovo sito web wnlabClosed_InfraScience Systems EngineerMar 22, 2024

Delete relationActions

Updated by Tommaso Piccioli about 1 year ago

  • Status changed from New to In Progress

Per ora ho aperto l'accesso a solr attraverso nginx (https: porta 443) all'IP richiesto.

Abbiamo già un'altra macchina che fa accesso alle API e non abbiamo impostato nessun header specifico, potete controllare se funziona già così?

Updated by Leonardo Candela about 1 year ago

  • Status changed from In Progress to Paused

Propongo di bloccare questa attività per il caso specifico. Gli indico la strada delle chiamate che tornano JSON.

Updated by Leonardo Candela about 1 year ago

  • Status changed from Paused to In Progress
  • Priority changed from Normal to High

This is going to be reconsidered ... we should only set the openportal.isti.cnr.it front end to be exploited / embedded in third party sites.

I would say all *.ist.cnr.it domains.

There is no need to give access to the backend.

Actions #4

Updated by Leonardo Candela about 1 year ago

  • Subject changed from Autorizzare nuovo indirizzo IP to Configurare openportal front end all'accesso da siti *.isti.cnr.it
  • Description updated (diff)

Updated by Tommaso Piccioli about 1 year ago

Scusate ma sono un po' confuso su questa cosa.

Attualmente è possibile fare interrogazioni sul frontend di openportal, anche dalla macchina www-wnlab.isti.cnr.it

wget "https://openportal.isti.cnr.it/results?format=json&qv=Crivello"

ritorna vari records preceduti dalle statistiche sulla ricerca eseguita.

Updated by Tommaso Piccioli about 1 year ago

  • Status changed from In Progress to Feedback

Ho parlato con Crivello, ho aggiunto alla configurazione dell'intero VirtualHost https del portale openportal ISTI

     # allow https query from wnlab site
     Header set Access-Control-Allow-Origin "www-wnlab.isti.cnr.it"

Updated by Tommaso Piccioli about 1 year ago

Credo di aver risolto, la configurazione corretta dovrebbe essere questa, per il virtualhost

Header set Access-Control-Allow-Origin "https://www-wnlab.isti.cnr.it"

Ho fatto delle prove con il codice indicato da Crivello dalla console del browser visualizzando il sito www-wnlab.isti.cnr.it e non vedo più errori, ci confermeranno se ora riescono ad ottenere i dati correttamente.

Updated by Leonardo Candela about 1 year ago

  • % Done changed from 0 to 50

OK abbiamo risolto lo specifico ma così facendo quando passeranno al sito di produzione dovremmo cambiare di nuovo.

Non è possibile avere un header tipo *.isti.cnr.it?

Updated by Tommaso Piccioli 12 months ago

Appena riesco a capire come farlo.

Updated by Tommaso Piccioli 12 months ago

Non si può usare "Access-Control-Allow-Origin" con wildcard, per ora ho aggiunto specificatamente www-wnlab.isti.cnr.it e wnlab.isti.cnr.it

Updated by Leonardo Candela 10 months ago

  • % Done changed from 50 to 100

Questo ticket si può considerare completo.

Actions #12

Updated by Leonardo Candela 10 months ago

  • Status changed from Feedback to Closed
Actions #13

Updated by Leonardo Candela 4 months ago

  • Related to Support #27104: Problema accesso a dati openportal da nuovo sito web wnlab added
Actions

Also available in: Atom PDF