From f39ce3f93c07d26f8419c011ae23442fb9e8549c Mon Sep 17 00:00:00 2001 From: amandilaras Date: Thu, 9 May 2024 17:55:24 +0300 Subject: [PATCH] deployment update --- deployment/.env | 13 +- deployment/docker-compose.override.yml | 248 +- deployment/docker-compose.yml | 92 +- .../elk/elasticsearch/elasticsearch.yml | 2 +- deployment/elk/elasticsearch/index_init.sh | 8 +- .../keycloak/imports/opencdmp-realm.json | 3368 +++++++++++++++ .../opencdmp-realm.jsonZone.Identifier | 3 + deployment/keycloak/keycloak.env | 10 +- .../annotation/config/app.env | 12 +- .../annotation/config/cipher-test.yml | 0 .../opencdmp/annotation/config/cors-test.yml | 3 + .../annotation/config/db-test.yml | 0 .../annotation/config/email-test.yml | 0 .../annotation/config/logging-test.yml | 0 .../config/logging/logback-test.xml | 0 .../annotation/config/queue-test.yml | 0 .../annotation/config/security-test.yml | 0 .../annotation/config/server-test.yml | 0 .../annotation/config/tenant-test.yml | 0 .../annotation/messages/messages.properties | 0 .../messages/messages_el.properties | 0 .../backend/Semantics.json | 0 .../backend/certificates/client-identity.p12 | Bin .../certificates/elasticsearch_dev04.crt | 0 deployment/opencdmp/backend/config/app.env | 57 + .../opencdmp/backend/config/cors-test.yml | 3 + .../backend/config/db-test.yml | 0 .../backend/config/deposit-test.yml | 2 +- .../backend/config/elasticsearch-test.yml | 0 .../backend/config/file-transformer-test.yml | 4 +- .../backend/config/keycloak-test.yml | 2 +- .../backend/config/logging-test.yml | 0 .../backend/config/logging/logback-test.xml | 0 .../backend/config/metrics-test.yml | 0 .../backend/config/queue-test.yml | 0 .../backend/config/security-test.yml | 2 +- .../backend/config/server-test.yml | 0 .../backend/config/storage-test.yml | 0 .../backend/config/tenant-test.yml | 0 .../backend/i18n/de.json | 0 .../backend/i18n/en.json | 39 +- .../backend/i18n/es.json | 0 .../backend/i18n/gr.json | 0 .../backend/i18n/hr.json | 0 .../backend/i18n/pl.json | 0 .../backend/i18n/pt.json | 0 .../backend/i18n/sk.json | 0 .../backend/i18n/sr.json | 0 .../backend/i18n/tr.json | 0 .../backend/material/about/About_en.html | 0 .../backend/material/faq/Faq_en.html | 4 +- .../material/glossary/Glossary_en.html | 0 .../terms-of-service/TermsOfService_en.html | 4 +- .../material/user-guide/UserGuide_de.html | 0 .../material/user-guide/UserGuide_en.html | 0 .../material/user-guide/UserGuide_es.html | 0 .../material/user-guide/UserGuide_gr.html | 0 .../material/user-guide/UserGuide_pt.html | 76 +- .../material/user-guide/UserGuide_sk.html | 0 .../material/user-guide/UserGuide_sr.html | 0 .../material/user-guide/UserGuide_tr.html | 0 .../file-transformer-docx/config/app.env | 8 + .../config/documents/styles.xml | 0 .../file-transformer-docx/config/pdf-test.yml | 0 .../config/pidLinks.json | 0 .../config/security-test.yml | 0 .../config/storage-test.yml | 0 .../config/word-file-transformer-test.yml | 0 .../file-transformer-rda-json/config/app.env | 5 + .../config/rda-file-transformer-test.yml | 0 .../config/security-test.yml | 0 .../config/storage-test.yml | 0 .../internal/rda-lang-map.json | 0 .../frontend/WebAppNginx.conf | 0 .../frontend/config.json | 13 +- .../{opendmp => opencdmp}/frontend/nginx.conf | 0 .../notification/config/app.env | 10 +- .../notification/config/cipher-test.yml | 0 .../notification/config/cors-test.yml | 3 + .../notification/config/db-test.yml | 0 .../notification/config/email-test.yml | 0 .../notification/config/logging-test.yml | 0 .../config/logging/logback-test.xml | 0 .../notification/config/notification-test.yml | 0 .../notification/config/queue-test.yml | 0 .../notification/config/security-test.yml | 0 .../notification/config/server-test.yml | 0 .../notification/config/tenant-test.yml | 0 .../notification/messages/messages.properties | 0 .../messages/messages_el.properties | 0 .../contactsupport/email/body.en.html | 0 .../contactsupport/email/subject.en.txt | 0 .../descriptionfinalised/email/body.en.html | 0 .../descriptionfinalised/email/subject.en.txt | 0 .../descriptionfinalised/inapp/body.en.html | 0 .../descriptionfinalised/inapp/subject.en.txt | 0 .../descriptionmodified/email/body.en.html | 0 .../descriptionmodified/email/subject.en.txt | 0 .../descriptionmodified/inapp/body.en.html | 0 .../descriptionmodified/inapp/subject.en.txt | 0 .../email/body.en.html | 0 .../email/subject.en.txt | 0 .../inapp/body.en.html | 0 .../inapp/subject.en.txt | 0 .../descrptionfinalised/email/body.en.html | 0 .../descrptionfinalised/email/subject.en.txt | 0 .../descrptionfinalised/inapp/body.en.html | 0 .../descrptionfinalised/inapp/subject.en.txt | 0 .../dmpdeposit/email/body.en.html | 0 .../dmpdeposit/email/subject.en.txt | 0 .../dmpdeposit/inapp/body.en.html | 0 .../dmpdeposit/inapp/subject.en.txt | 0 .../dmpfinalised/email/body.en.html | 0 .../dmpfinalised/email/subject.en.txt | 0 .../dmpfinalised/inapp/body.en.html | 0 .../dmpfinalised/inapp/subject.en.txt | 0 .../email/body.en.html | 0 .../email/subject.en.txt | 0 .../inapp/body.en.html | 0 .../inapp/subject.en.txt | 0 .../email/body.en.html | 0 .../email/subject.en.txt | 0 .../dmpmodified/email/body.en.html | 0 .../dmpmodified/email/subject.en.txt | 0 .../dmpmodified/inapp/body.en.html | 0 .../dmpmodified/inapp/subject.en.txt | 0 .../email/body.en.html | 2 +- .../email/subject.en.txt | 0 .../inapp/body.en.html | 2 +- .../inapp/subject.en.txt | 0 .../publiccontactsupport/email/body.en.html | 0 .../publiccontactsupport/email/subject.en.txt | 0 .../email/body.en.html | 2 +- .../email/subject.en.txt | 0 .../inapp/body.en.html | 2 +- .../inapp/subject.en.txt | 0 deployment/opencdmp/zenodo/config/app.env | 9 + .../zenodo/config/security-test.yml | 0 .../zenodo/config/server-test.yml | 0 .../zenodo/config/storage-test.yml | 0 .../zenodo/config/zenodo-test.yml | 6 +- .../{opendmp => opencdmp}/zenodo/zenodo.jpg | Bin .../opendmp/annotation/config/cors-test.yml | 3 - deployment/opendmp/backend/config/app.env | 57 - .../opendmp/backend/config/cors-test.yml | 3 - .../file-transformer-docx/config/app.env | 8 - .../file-transformer-rda-json/config/app.env | 5 - .../opendmp/notification/config/cors-test.yml | 3 - deployment/opendmp/zenodo/config/app.env | 7 - deployment/postgres/opencdmp_init.sql | 3607 +++++++++++++++++ deployment/proxy/ProxyNginx.conf | 103 +- 151 files changed, 7397 insertions(+), 413 deletions(-) create mode 100644 deployment/keycloak/imports/opencdmp-realm.json create mode 100644 deployment/keycloak/imports/opencdmp-realm.jsonZone.Identifier rename deployment/{opendmp => opencdmp}/annotation/config/app.env (56%) rename deployment/{opendmp => opencdmp}/annotation/config/cipher-test.yml (100%) create mode 100644 deployment/opencdmp/annotation/config/cors-test.yml rename deployment/{opendmp => opencdmp}/annotation/config/db-test.yml (100%) rename deployment/{opendmp => opencdmp}/annotation/config/email-test.yml (100%) rename deployment/{opendmp => opencdmp}/annotation/config/logging-test.yml (100%) rename deployment/{opendmp => opencdmp}/annotation/config/logging/logback-test.xml (100%) rename deployment/{opendmp => opencdmp}/annotation/config/queue-test.yml (100%) rename deployment/{opendmp => opencdmp}/annotation/config/security-test.yml (100%) rename deployment/{opendmp => opencdmp}/annotation/config/server-test.yml (100%) rename deployment/{opendmp => opencdmp}/annotation/config/tenant-test.yml (100%) rename deployment/{opendmp => opencdmp}/annotation/messages/messages.properties (100%) rename deployment/{opendmp => opencdmp}/annotation/messages/messages_el.properties (100%) rename deployment/{opendmp => opencdmp}/backend/Semantics.json (100%) rename deployment/{opendmp => opencdmp}/backend/certificates/client-identity.p12 (100%) rename deployment/{opendmp => opencdmp}/backend/certificates/elasticsearch_dev04.crt (100%) create mode 100644 deployment/opencdmp/backend/config/app.env create mode 100644 deployment/opencdmp/backend/config/cors-test.yml rename deployment/{opendmp => opencdmp}/backend/config/db-test.yml (100%) rename deployment/{opendmp => opencdmp}/backend/config/deposit-test.yml (79%) rename deployment/{opendmp => opencdmp}/backend/config/elasticsearch-test.yml (100%) rename deployment/{opendmp => opencdmp}/backend/config/file-transformer-test.yml (74%) rename deployment/{opendmp => opencdmp}/backend/config/keycloak-test.yml (91%) rename deployment/{opendmp => opencdmp}/backend/config/logging-test.yml (100%) rename deployment/{opendmp => opencdmp}/backend/config/logging/logback-test.xml (100%) rename deployment/{opendmp => opencdmp}/backend/config/metrics-test.yml (100%) rename deployment/{opendmp => opencdmp}/backend/config/queue-test.yml (100%) rename deployment/{opendmp => opencdmp}/backend/config/security-test.yml (78%) rename deployment/{opendmp => opencdmp}/backend/config/server-test.yml (100%) rename deployment/{opendmp => opencdmp}/backend/config/storage-test.yml (100%) rename deployment/{opendmp => opencdmp}/backend/config/tenant-test.yml (100%) rename deployment/{opendmp => opencdmp}/backend/i18n/de.json (100%) rename deployment/{opendmp => opencdmp}/backend/i18n/en.json (97%) rename deployment/{opendmp => opencdmp}/backend/i18n/es.json (100%) rename deployment/{opendmp => opencdmp}/backend/i18n/gr.json (100%) rename deployment/{opendmp => opencdmp}/backend/i18n/hr.json (100%) rename deployment/{opendmp => opencdmp}/backend/i18n/pl.json (100%) rename deployment/{opendmp => opencdmp}/backend/i18n/pt.json (100%) rename deployment/{opendmp => opencdmp}/backend/i18n/sk.json (100%) rename deployment/{opendmp => opencdmp}/backend/i18n/sr.json (100%) rename deployment/{opendmp => opencdmp}/backend/i18n/tr.json (100%) rename deployment/{opendmp => opencdmp}/backend/material/about/About_en.html (100%) rename deployment/{opendmp => opencdmp}/backend/material/faq/Faq_en.html (99%) rename deployment/{opendmp => opencdmp}/backend/material/glossary/Glossary_en.html (100%) rename deployment/{opendmp => opencdmp}/backend/material/terms-of-service/TermsOfService_en.html (91%) rename deployment/{opendmp => opencdmp}/backend/material/user-guide/UserGuide_de.html (100%) rename deployment/{opendmp => opencdmp}/backend/material/user-guide/UserGuide_en.html (100%) rename deployment/{opendmp => opencdmp}/backend/material/user-guide/UserGuide_es.html (100%) rename deployment/{opendmp => opencdmp}/backend/material/user-guide/UserGuide_gr.html (100%) rename deployment/{opendmp => opencdmp}/backend/material/user-guide/UserGuide_pt.html (93%) rename deployment/{opendmp => opencdmp}/backend/material/user-guide/UserGuide_sk.html (100%) rename deployment/{opendmp => opencdmp}/backend/material/user-guide/UserGuide_sr.html (100%) rename deployment/{opendmp => opencdmp}/backend/material/user-guide/UserGuide_tr.html (100%) create mode 100644 deployment/opencdmp/file-transformer-docx/config/app.env rename deployment/{opendmp => opencdmp}/file-transformer-docx/config/documents/styles.xml (100%) rename deployment/{opendmp => opencdmp}/file-transformer-docx/config/pdf-test.yml (100%) rename deployment/{opendmp => opencdmp}/file-transformer-docx/config/pidLinks.json (100%) rename deployment/{opendmp => opencdmp}/file-transformer-docx/config/security-test.yml (100%) rename deployment/{opendmp => opencdmp}/file-transformer-docx/config/storage-test.yml (100%) rename deployment/{opendmp => opencdmp}/file-transformer-docx/config/word-file-transformer-test.yml (100%) create mode 100644 deployment/opencdmp/file-transformer-rda-json/config/app.env rename deployment/{opendmp => opencdmp}/file-transformer-rda-json/config/rda-file-transformer-test.yml (100%) rename deployment/{opendmp => opencdmp}/file-transformer-rda-json/config/security-test.yml (100%) rename deployment/{opendmp => opencdmp}/file-transformer-rda-json/config/storage-test.yml (100%) rename deployment/{opendmp => opencdmp}/file-transformer-rda-json/internal/rda-lang-map.json (100%) rename deployment/{opendmp => opencdmp}/frontend/WebAppNginx.conf (100%) rename deployment/{opendmp => opencdmp}/frontend/config.json (79%) rename deployment/{opendmp => opencdmp}/frontend/nginx.conf (100%) rename deployment/{opendmp => opencdmp}/notification/config/app.env (72%) rename deployment/{opendmp => opencdmp}/notification/config/cipher-test.yml (100%) create mode 100644 deployment/opencdmp/notification/config/cors-test.yml rename deployment/{opendmp => opencdmp}/notification/config/db-test.yml (100%) rename deployment/{opendmp => opencdmp}/notification/config/email-test.yml (100%) rename deployment/{opendmp => opencdmp}/notification/config/logging-test.yml (100%) rename deployment/{opendmp => opencdmp}/notification/config/logging/logback-test.xml (100%) rename deployment/{opendmp => opencdmp}/notification/config/notification-test.yml (100%) rename deployment/{opendmp => opencdmp}/notification/config/queue-test.yml (100%) rename deployment/{opendmp => opencdmp}/notification/config/security-test.yml (100%) rename deployment/{opendmp => opencdmp}/notification/config/server-test.yml (100%) rename deployment/{opendmp => opencdmp}/notification/config/tenant-test.yml (100%) rename deployment/{opendmp => opencdmp}/notification/messages/messages.properties (100%) rename deployment/{opendmp => opencdmp}/notification/messages/messages_el.properties (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/contactsupport/email/body.en.html (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/contactsupport/email/subject.en.txt (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/descriptionfinalised/email/body.en.html (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/descriptionfinalised/email/subject.en.txt (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/descriptionfinalised/inapp/body.en.html (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/descriptionfinalised/inapp/subject.en.txt (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/descriptionmodified/email/body.en.html (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/descriptionmodified/email/subject.en.txt (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/descriptionmodified/inapp/body.en.html (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/descriptionmodified/inapp/subject.en.txt (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/descriptiontemplateinvitation/email/body.en.html (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/descriptiontemplateinvitation/email/subject.en.txt (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/descriptiontemplateinvitation/inapp/body.en.html (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/descriptiontemplateinvitation/inapp/subject.en.txt (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/descrptionfinalised/email/body.en.html (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/descrptionfinalised/email/subject.en.txt (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/descrptionfinalised/inapp/body.en.html (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/descrptionfinalised/inapp/subject.en.txt (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/dmpdeposit/email/body.en.html (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/dmpdeposit/email/subject.en.txt (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/dmpdeposit/inapp/body.en.html (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/dmpdeposit/inapp/subject.en.txt (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/dmpfinalised/email/body.en.html (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/dmpfinalised/email/subject.en.txt (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/dmpfinalised/inapp/body.en.html (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/dmpfinalised/inapp/subject.en.txt (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/dmpinvitationexistinguser/email/body.en.html (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/dmpinvitationexistinguser/email/subject.en.txt (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/dmpinvitationexistinguser/inapp/body.en.html (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/dmpinvitationexistinguser/inapp/subject.en.txt (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/dmpinvitationexternaluser/email/body.en.html (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/dmpinvitationexternaluser/email/subject.en.txt (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/dmpmodified/email/body.en.html (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/dmpmodified/email/subject.en.txt (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/dmpmodified/inapp/body.en.html (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/dmpmodified/inapp/subject.en.txt (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/mergeacountconfirmation/email/body.en.html (99%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/mergeacountconfirmation/email/subject.en.txt (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/mergeacountconfirmation/inapp/body.en.html (98%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/mergeacountconfirmation/inapp/subject.en.txt (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/publiccontactsupport/email/body.en.html (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/publiccontactsupport/email/subject.en.txt (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/removecredentialconfirmation/email/body.en.html (99%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/removecredentialconfirmation/email/subject.en.txt (100%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/removecredentialconfirmation/inapp/body.en.html (98%) rename deployment/{opendmp => opencdmp}/notification/notification_templates/removecredentialconfirmation/inapp/subject.en.txt (100%) create mode 100644 deployment/opencdmp/zenodo/config/app.env rename deployment/{opendmp => opencdmp}/zenodo/config/security-test.yml (100%) rename deployment/{opendmp => opencdmp}/zenodo/config/server-test.yml (100%) rename deployment/{opendmp => opencdmp}/zenodo/config/storage-test.yml (100%) rename deployment/{opendmp => opencdmp}/zenodo/config/zenodo-test.yml (71%) rename deployment/{opendmp => opencdmp}/zenodo/zenodo.jpg (100%) delete mode 100644 deployment/opendmp/annotation/config/cors-test.yml delete mode 100644 deployment/opendmp/backend/config/app.env delete mode 100644 deployment/opendmp/backend/config/cors-test.yml delete mode 100644 deployment/opendmp/file-transformer-docx/config/app.env delete mode 100644 deployment/opendmp/file-transformer-rda-json/config/app.env delete mode 100644 deployment/opendmp/notification/config/cors-test.yml delete mode 100644 deployment/opendmp/zenodo/config/app.env create mode 100644 deployment/postgres/opencdmp_init.sql diff --git a/deployment/.env b/deployment/.env index ea5232293..2b39be141 100644 --- a/deployment/.env +++ b/deployment/.env @@ -4,12 +4,12 @@ DEPLOY_USER=1000 DEPLOY_GROUP=1000 #version selections PROXY_TAG=mainline-alpine -MAIN_APP_TAG=2.1.3 -NOTIFICATION_APP_TAG=2.1.3 -ANNOTATION_APP_TAG=2.1.3 -DOCX_APP_TAG=0.0.8 -JSON_APP_TAG=0.0.6 -ZENODO_APP_TAG=2.0.4 +MAIN_APP_TAG=2.1.8 +NOTIFICATION_APP_TAG=2.1.7 +ANNOTATION_APP_TAG=2.1.7 +DOCX_APP_TAG=0.0.12 +JSON_APP_TAG=0.0.8 +ZENODO_APP_TAG=2.0.8 POSTGRES_TAG=16-alpine ELK_TAG=8.13.0 KEYCLOAK_TAG=24.0.2 @@ -23,5 +23,4 @@ PROFILE=test #port speficiations SERVER_PORT=8080 PROXY_APP_PORT=8081 -PROXY_MS_PORT=8082 POSTGRES_PORT=5432 \ No newline at end of file diff --git a/deployment/docker-compose.override.yml b/deployment/docker-compose.override.yml index 3cc3491af..33f2c833d 100644 --- a/deployment/docker-compose.override.yml +++ b/deployment/docker-compose.override.yml @@ -1,105 +1,104 @@ services: ############################## PROXY ######################################## - opendmp.proxy: + opencdmp.proxy: restart: unless-stopped cpus: 1 mem_limit: 256m ports: - "${PROXY_APP_PORT}:8081" - - "${PROXY_MS_PORT}:8082" - env_file: - - ./proxy/proxy.env + # env_file: + # - ./proxy/proxy.env volumes: - ./proxy/nginx.conf:/etc/nginx/nginx.conf - ./proxy/ProxyNginx.conf:/etc/nginx/conf.d/default.conf - ./logs/proxy:/tmp/logs networks: - - opendmp-proxy-network + - opencdmp-proxy-network ############################## OPENDMP APP ################################# - opendmp.backend: + opencdmp.backend: restart: unless-stopped cpus: 1 mem_limit: 2048m environment: - PROFILE=${PROFILE} ports: - - "8080" + - "0.0.0.0:50030:8080" volumes: - - ./opendmp/backend/config:/config - - ./opendmp/backend/certificates:/certificates - - ./opendmp/backend/i18n:/i18n - - ./opendmp/backend/material:/material - - ./opendmp/backend/Semantics.json:/Semantics.json - - ./storage/opendmp/backend:/storage - - ./logs/opendmp/backend:/logs + - ./opencdmp/backend/config:/config + - ./opencdmp/backend/certificates:/certificates + - ./opencdmp/backend/i18n:/i18n + - ./opencdmp/backend/material:/material + - ./opencdmp/backend/Semantics.json:/Semantics.json + - ./storage/opencdmp/backend:/storage + - ./logs/opencdmp/backend:/logs networks: - - opendmp-proxy-network - - opendmp-backend-network - - opendmp-plugins-network - - opendmp-gotenberg-shared-network - - opendmp-elastic-shared-network - - opendmp-keycloak-shared-network - - opendmp-postgres-shared-network - - opendmp-rabbitmq-shared-network + - opencdmp-proxy-network + - opencdmp-backend-network + - opencdmp-plugins-network + - opencdmp-gotenberg-shared-network + - opencdmp-elastic-shared-network + - opencdmp-keycloak-shared-network + - opencdmp-postgres-shared-network + - opencdmp-rabbitmq-shared-network - opendmp.frontend: + opencdmp.frontend: restart: unless-stopped cpus: 1 mem_limit: 2048m ports: - - "8080" + - "0.0.0.0:50031:8080" volumes: - - ./opendmp/frontend/config.json:/usr/share/nginx/html/assets/config/config.json - - ./opendmp/frontend/nginx.conf:/etc/nginx/nginx.conf - - ./opendmp/frontend/WebAppNginx.conf:/etc/nginx/conf.d/default.conf + - ./opencdmp/frontend/config.json:/usr/share/nginx/html/assets/config/config.json + - ./opencdmp/frontend/nginx.conf:/etc/nginx/nginx.conf + - ./opencdmp/frontend/WebAppNginx.conf:/etc/nginx/conf.d/default.conf networks: - - opendmp-proxy-network + - opencdmp-proxy-network - opendmp.notification: + opencdmp.notification: cpus: 1 mem_limit: 1024m restart: unless-stopped ports: - - "8080" + - "0.0.0.0:50036:8080" environment: - PROFILE=${PROFILE} volumes: - - ./opendmp/notification/config:/config - - ./opendmp/notification/messages:/messages - - ./opendmp/notification/notification_templates:/notification_templates - - ./logs/opendmp/notification-api:/logs + - ./opencdmp/notification/config:/config + - ./opencdmp/notification/messages:/messages + - ./opencdmp/notification/notification_templates:/notification_templates + - ./logs/opencdmp/notification:/logs networks: - - opendmp-proxy-network - - opendmp-backend-network - - opendmp-plugins-network - - opendmp-rabbitmq-shared-network - - opendmp-keycloak-shared-network - - opendmp-postgres-shared-network + - opencdmp-proxy-network + - opencdmp-backend-network + - opencdmp-plugins-network + - opencdmp-rabbitmq-shared-network + - opencdmp-keycloak-shared-network + - opencdmp-postgres-shared-network - opendmp.annotation: + opencdmp.annotation: cpus: 1 mem_limit: 1024m restart: unless-stopped ports: - - "8080" + - "0.0.0.0:50035:8080" environment: - PROFILE=${PROFILE} volumes: - - ./opendmp/annotation/config:/config - - ./opendmp/annotation/messages:/messages - - ./logs/opendmp/annotation-api:/logs + - ./opencdmp/annotation/config:/config + - ./opencdmp/annotation/messages:/messages + - ./logs/opencdmp/annotation:/logs networks: - - opendmp-proxy-network - - opendmp-backend-network - - opendmp-plugins-network - - opendmp-rabbitmq-shared-network - - opendmp-keycloak-shared-network - - opendmp-postgres-shared-network + - opencdmp-proxy-network + - opencdmp-backend-network + - opencdmp-plugins-network + - opencdmp-rabbitmq-shared-network + - opencdmp-keycloak-shared-network + - opencdmp-postgres-shared-network -# ############################## FILE-TRANSFORMER ################################# +# # ############################## FILE-TRANSFORMER ################################# - opendmp.file.transformer.docx: + opencdmp.file.transformer.docx: restart: unless-stopped cpus: 1 mem_limit: 1024m @@ -109,15 +108,15 @@ services: - SERVER_PORT=${SERVER_PORT} - PROFILE=${PROFILE} volumes: - - ./opendmp/file-transformer-docx/config:/config - - ./logs/opendmp/file-transformer-docx:/logs - - ./storage/opendmp/file-transformer-docx:/storage + - ./opencdmp/file-transformer-docx/config:/config + - ./logs/opencdmp/file-transformer-docx:/logs + - ./storage/opencdmp/file-transformer-docx:/storage networks: - - opendmp-backend-network - - opendmp-plugins-network - - opendmp-gotenberg-shared-network + - opencdmp-backend-network + - opencdmp-plugins-network + - opencdmp-gotenberg-shared-network - opendmp.file.transformer.rdajson: + opencdmp.file.transformer.rdajson: restart: unless-stopped cpus: 1 mem_limit: 1024m @@ -127,16 +126,16 @@ services: - SERVER_PORT=${SERVER_PORT} - PROFILE=${PROFILE} volumes: - - ./opendmp/file-transformer-rda-json/config:/config - - ./opendmp/file-transformer-rda-json/internal:/internal - - ./logs/opendmp/file-transformer-rda-json:/logs - - ./storage/opendmp/file-transformer-rda-json:/storage + - ./opencdmp/file-transformer-rda-json/config:/config + - ./opencdmp/file-transformer-rda-json/internal:/internal + - ./logs/opencdmp/file-transformer-rda-json:/logs + - ./storage/opencdmp/file-transformer-rda-json:/storage networks: - - opendmp-backend-network - - opendmp-plugins-network + - opencdmp-backend-network + - opencdmp-plugins-network -############################## ZENODO ####################################### - opendmp.zenodo: +# ############################## ZENODO ####################################### + opencdmp.zenodo: restart: unless-stopped cpus: 1 mem_limit: 1024m @@ -145,44 +144,43 @@ services: environment: - PROFILE=${PROFILE} volumes: - - ./opendmp/zenodo/config:/config - - ./opendmp/zenodo/zenodo.jpg:/zenodo.jpg - - ./storage/opendmp/zenodo:/storage - - ./logs/opendmp/zenodo:/logs + - ./opencdmp/zenodo/config:/config + - ./opencdmp/zenodo/zenodo.jpg:/zenodo.jpg + - ./storage/opencdmp/zenodo:/storage + - ./logs/opencdmp/zenodo:/logs networks: - - opendmp-plugins-network - - opendmp-keycloak-shared-network + - opencdmp-plugins-network + - opencdmp-keycloak-shared-network ############################## POSTGRES 16 ################################# - opendmp.postgres: - restart: unless-stopped - mem_limit: 2048M - ports: - # - "127.0.0.1:${POSTGRES_PORT}:5432" # If you want to make it accessible locally only - - "${POSTGRES_PORT}:5432" - env_file: - - ./postgres/postgres.env - volumes: - - ./storage/postgres/data:/var/lib/postgresql/data - - ./postgres/opendmp_init.sql:/docker-entrypoint-initdb.d/opendmp_init.sql - - ./postgres/user_init.sql:/docker-entrypoint-initdb.d/user_init.sql - networks: - - opendmp-postgres-shared-network - healthcheck: - test: ["CMD-SHELL", "sh -c 'pg_isready -U opendmp-psql -d opendmp'"] - interval: 15s - timeout: 60s - retries: 5 + # opencdmp.postgres: + # restart: unless-stopped + # mem_limit: 2048M + # ports: + # # - "127.0.0.1:${POSTGRES_PORT}:5432" # If you want to make it accessible locally only + # - "${POSTGRES_PORT}:5432" + # env_file: + # - ./postgres/postgres.env + # volumes: + # - ./storage/postgres/data:/var/lib/postgresql/data + # - ./postgres/opencdmp_init.sql:/docker-entrypoint-initdb.d/opencdmp_init.sql + # networks: + # - opencdmp-postgres-shared-network + # healthcheck: + # test: ["CMD-SHELL", "sh -c 'pg_isready -U postgres -d opencdmp'"] + # interval: 15s + # timeout: 60s + # retries: 5 ################################# ELASTICSEARCH ################################################# - opendmp.elasticsearch: + opencdmp.elasticsearch: restart: unless-stopped cpus: 2 mem_limit: 1024m env_file: - - elk/elk.env + - ./elk/elk.env environment: ES_JAVA_OPTS: -Xmx512m -Xms512m ulimits: @@ -200,7 +198,7 @@ services: - "9200" - "9300" networks: - - opendmp-elastic-shared-network + - opencdmp-elastic-shared-network healthcheck: test: curl -s http://localhost:9200 >/dev/null; if [[ $$? == 52 ]]; then echo 0; else echo 1; fi interval: 30s @@ -208,27 +206,27 @@ services: retries: 5 ############################## KEYCLOAK ############################################### - # opendmp.keycloak: + # opencdmp.keycloak: # restart: unless-stopped # command: ["start-dev", "--log=console,file", "--log-file=/tmp/logs/keycloak.log", "--import-realm"] # cpus: 2 # mem_limit: 2048M # env_file: - # - keycloak/keycloak.env + # - ./keycloak/keycloak.env # environment: # - JAVA_OPTS_APPEND="-Djava.net.preferIPv4Stack=true" # volumes: # - ./logs/keycloak:/tmp/logs - # - ./keycloak/imports/opendmp-realm.json:/opt/keycloak/data/import/opendmp-realm.json + # - ./keycloak/imports/opencdmp-realm.json:/opt/keycloak/data/import/opencdmp-realm.json # expose: # - "8080" # networks: - # - opendmp-proxy-network - # - opendmp-postgres-shared-network - # - opendmp-keycloak-shared-network + # - opencdmp-proxy-network + # - opencdmp-postgres-shared-network + # - opencdmp-keycloak-shared-network ############################## RABBITMQ ############################################### - opendmp.rabbitmq: + opencdmp.rabbitmq: labels: NAME: "rabbitmq" cpus: 1 @@ -238,15 +236,15 @@ services: - "0.0.0.0:15672:15672" - "0.0.0.0:5672:5672" env_file: - - rabbitmq/rabbitmq.env + - ./rabbitmq/rabbitmq.env volumes: - /rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro networks: - - opendmp-proxy-network - - opendmp-rabbitmq-shared-network + - opencdmp-proxy-network + - opencdmp-rabbitmq-shared-network ############################## GOTENBERG ############################################## - opendmp.gotenberg: + opencdmp.gotenberg: cpus: 2 mem_limit: 2048m restart: unless-stopped @@ -254,29 +252,29 @@ services: - "3000" hostname: gotenberg env_file: - - gotenberg/gotenberg.env + - ./gotenberg/gotenberg.env networks: - - opendmp-gotenberg-shared-network + - opencdmp-gotenberg-shared-network networks: - opendmp-proxy-network: - name: opendmp-proxy-network - opendmp-backend-network: - name: opendmp-backend-network - opendmp-plugins-network: - name: opendmp-plugins-network - opendmp-keycloak-shared-network: + opencdmp-proxy-network: + name: opencdmp-proxy-network + opencdmp-backend-network: + name: opencdmp-backend-network + opencdmp-plugins-network: + name: opencdmp-plugins-network + opencdmp-keycloak-shared-network: external: true - name: opendmp-keycloak-shared-network - opendmp-gotenberg-shared-network: + name: opencdmp-keycloak-shared-network + opencdmp-gotenberg-shared-network: external: true - name: opendmp-gotenberg-shared-network - opendmp-rabbitmq-shared-network: + name: opencdmp-gotenberg-shared-network + opencdmp-rabbitmq-shared-network: external: true - name: opendmp-rabbitmq-shared-network - opendmp-elastic-shared-network: + name: opencdmp-rabbitmq-shared-network + opencdmp-elastic-shared-network: external: true - name: opendmp-elastic-shared-network - opendmp-postgres-shared-network: + name: opencdmp-elastic-shared-network + opencdmp-postgres-shared-network: external: true - name: opendmp-postgres-shared-network + name: opencdmp-postgres-shared-network diff --git a/deployment/docker-compose.yml b/deployment/docker-compose.yml index c36dc5aa5..3ef89c1b9 100644 --- a/deployment/docker-compose.yml +++ b/deployment/docker-compose.yml @@ -1,84 +1,88 @@ services: ############################## PROXY ######################################## - opendmp.proxy: - container_name: opendmp.proxy + opencdmp.proxy: + container_name: opencdmp.proxy image: nginx:${PROXY_TAG} - # depends_on: - # - opendmp.keycloak + depends_on: + - opencdmp.frontend + - opencdmp.backend + - opencdmp.notification + - opencdmp.annotation + # - opencdmp.keycloak ############################## OPENDMP APP ################################# - opendmp.frontend: - container_name: opendmp.frontend + opencdmp.frontend: + container_name: opencdmp.frontend image: ${DOCKER_REGISTRY}open-dmp-webapp:${MAIN_APP_TAG} depends_on: - - opendmp.backend - - opendmp.notification - - opendmp.annotation + - opencdmp.backend + - opencdmp.notification + - opencdmp.annotation - opendmp.backend: - container_name: opendmp.backend + opencdmp.backend: + container_name: opencdmp.backend image: ${DOCKER_REGISTRY}open-dmp-api:${MAIN_APP_TAG} - depends_on: - - opendmp.postgres + # depends_on: + # - opencdmp.postgres - opendmp.notification: - container_name: opendmp.notification + opencdmp.notification: + container_name: opencdmp.notification image: ${DOCKER_REGISTRY}open-dmp-notification-api:${NOTIFICATION_APP_TAG} - depends_on: - - opendmp.postgres + # depends_on: + # - opencdmp.postgres - opendmp.annotation: - container_name: opendmp.annotation + opencdmp.annotation: + container_name: opencdmp.annotation image: ${DOCKER_REGISTRY}open-dmp-annotation-api:${ANNOTATION_APP_TAG} - depends_on: - - opendmp.postgres + # depends_on: + # - opencdmp.postgres -# ############################## FILE-TRANSFORMERS ####################################### +# # ############################## FILE-TRANSFORMERS ####################################### - opendmp.file.transformer.docx: - container_name: opendmp.file.transformer.docx + opencdmp.file.transformer.docx: + container_name: opencdmp.file.transformer.docx image: ${DOCKER_REGISTRY}file-transformation-docx-api:${DOCX_APP_TAG} depends_on: - - opendmp.backend + - opencdmp.backend - opendmp.file.transformer.rdajson: - container_name: opendmp.file.transformer.rdajson + opencdmp.file.transformer.rdajson: + container_name: opencdmp.file.transformer.rdajson image: ${DOCKER_REGISTRY}file-transformation-rda-json-api:${JSON_APP_TAG} depends_on: - - opendmp.backend + - opencdmp.backend -################################ ZENODO ############################################### - opendmp.zenodo: - container_name: opendmp.zenodo +# ################################ ZENODO ############################################### + opencdmp.zenodo: + container_name: opencdmp.zenodo image: ${DOCKER_REGISTRY}repository-deposit-zenodo:${ZENODO_APP_TAG} depends_on: - - opendmp.backend + - opencdmp.backend ############################## POSTGRES 16 ############################################ - opendmp.postgres: - container_name: opendmp.postgres - image: postgres:${POSTGRES_TAG} + # opencdmp.postgres: + # container_name: opencdmp.postgres + # image: postgres:${POSTGRES_TAG} ################################# ELASTICSEARCH ################################################# - opendmp.elasticsearch: - container_name: opendmp.elasticsearch + opencdmp.elasticsearch: + container_name: opencdmp.elasticsearch image: docker.elastic.co/elasticsearch/elasticsearch:${ELK_TAG} ############################## KEYCLOAK ############################################### - # opendmp.keycloak: - # container_name: opendmp.keycloak + # opencdmp.keycloak: + # container_name: opencdmp.keycloak # image: quay.io/keycloak/keycloak:${KEYCLOAK_TAG} # depends_on: - # opendmp.postgres: + # opencdmp.postgres: # condition: service_healthy ############################## RABBITMQ ############################################### - opendmp.rabbitmq: - container_name: opendmp.rabbitmq + opencdmp.rabbitmq: + container_name: opencdmp.rabbitmq image: rabbitmq:${RABBITMQ_TAG} ############################## GOTENBERG ############################################## - opendmp.gotenberg: + opencdmp.gotenberg: image: gotenberg/gotenberg:${GOTENBERG_TAG} - container_name: opendmp.gotenberg + container_name: opencdmp.gotenberg diff --git a/deployment/elk/elasticsearch/elasticsearch.yml b/deployment/elk/elasticsearch/elasticsearch.yml index b64a4b56d..fda54bb06 100644 --- a/deployment/elk/elasticsearch/elasticsearch.yml +++ b/deployment/elk/elasticsearch/elasticsearch.yml @@ -1,5 +1,5 @@ --- -cluster.name: opendmp-cluster +cluster.name: opencdmp-cluster network.host: 0.0.0.0 discovery.type: single-node diff --git a/deployment/elk/elasticsearch/index_init.sh b/deployment/elk/elasticsearch/index_init.sh index 3ed851b0f..dcf6b3b1c 100644 --- a/deployment/elk/elasticsearch/index_init.sh +++ b/deployment/elk/elasticsearch/index_init.sh @@ -34,17 +34,17 @@ curl -XPUT "http://localhost:9200/descriptions" -u elastic:elastic -H 'Content-T } }' -curl -XPOST "localhost:9200/_security/role/opendmp-api-test" -u elastic:elastic -H 'Content-Type: application/json' -d '{ +curl -XPOST "localhost:9200/_security/role/opencdmp-api-test" -u elastic:elastic -H 'Content-Type: application/json' -d '{ "indices": [ { - "names": [ "opendmp-*-test" ], + "names": [ "opencdmp-*-test" ], "privileges": [ "all" ] } ] }' -curl -XPOST "localhost:9200/_security/user/opendmp-api-test?pretty" -u elastic:elastic -H 'Content-Type: application/json' -d' +curl -XPOST "localhost:9200/_security/user/opencdmp-api-test?pretty" -u elastic:elastic -H 'Content-Type: application/json' -d' { "password" : "your_password_here", - "roles" : [ "opendmp-api-test" ] + "roles" : [ "opencdmp-api-test" ] }' \ No newline at end of file diff --git a/deployment/keycloak/imports/opencdmp-realm.json b/deployment/keycloak/imports/opencdmp-realm.json new file mode 100644 index 000000000..3d3e38c08 --- /dev/null +++ b/deployment/keycloak/imports/opencdmp-realm.json @@ -0,0 +1,3368 @@ +{ + "id": "8ca42ab4-2c36-4f48-b25e-7d96a00cbc1c", + "realm": "OpenCDMP", + "displayName": "", + "displayNameHtml": "", + "notBefore": 0, + "defaultSignatureAlgorithm": "RS256", + "revokeRefreshToken": false, + "refreshTokenMaxReuse": 0, + "accessTokenLifespan": 300, + "accessTokenLifespanForImplicitFlow": 900, + "ssoSessionIdleTimeout": 1800, + "ssoSessionMaxLifespan": 36000, + "ssoSessionIdleTimeoutRememberMe": 0, + "ssoSessionMaxLifespanRememberMe": 0, + "offlineSessionIdleTimeout": 2592000, + "offlineSessionMaxLifespanEnabled": false, + "offlineSessionMaxLifespan": 5184000, + "clientSessionIdleTimeout": 0, + "clientSessionMaxLifespan": 0, + "clientOfflineSessionIdleTimeout": 0, + "clientOfflineSessionMaxLifespan": 0, + "accessCodeLifespan": 60, + "accessCodeLifespanUserAction": 300, + "accessCodeLifespanLogin": 1800, + "actionTokenGeneratedByAdminLifespan": 43200, + "actionTokenGeneratedByUserLifespan": 300, + "oauth2DeviceCodeLifespan": 600, + "oauth2DevicePollingInterval": 5, + "enabled": true, + "sslRequired": "external", + "registrationAllowed": false, + "registrationEmailAsUsername": false, + "rememberMe": false, + "verifyEmail": true, + "loginWithEmailAllowed": true, + "duplicateEmailsAllowed": false, + "resetPasswordAllowed": false, + "editUsernameAllowed": false, + "bruteForceProtected": false, + "permanentLockout": false, + "maxTemporaryLockouts": 0, + "maxFailureWaitSeconds": 900, + "minimumQuickLoginWaitSeconds": 60, + "waitIncrementSeconds": 60, + "quickLoginCheckMilliSeconds": 1000, + "maxDeltaTimeSeconds": 43200, + "failureFactor": 30, + "roles": { + "realm": [ + { + "id": "c7dcf3a3-1974-42a2-82d7-e3cb37be8467", + "name": "uma_authorization", + "description": "${role_uma_authorization}", + "composite": false, + "clientRole": false, + "containerId": "8ca42ab4-2c36-4f48-b25e-7d96a00cbc1c", + "attributes": {} + }, + { + "id": "ea1273c9-d2bc-49bb-8c92-fe0dcbd9cc31", + "name": "default-roles-dmp-staging", + "description": "${role_default-roles}", + "composite": true, + "composites": { + "realm": [ + "offline_access", + "uma_authorization" + ], + "client": { + "account": [ + "manage-account", + "view-profile" + ] + } + }, + "clientRole": false, + "containerId": "8ca42ab4-2c36-4f48-b25e-7d96a00cbc1c", + "attributes": {} + }, + { + "id": "cf094a74-edef-42dd-94e6-e4dd090a657d", + "name": "Admin", + "description": "", + "composite": false, + "clientRole": false, + "containerId": "8ca42ab4-2c36-4f48-b25e-7d96a00cbc1c", + "attributes": {} + }, + { + "id": "9067ecb6-e0fa-4ba9-95d9-8b4f2a7bf2a9", + "name": "User", + "description": "", + "composite": false, + "clientRole": false, + "containerId": "8ca42ab4-2c36-4f48-b25e-7d96a00cbc1c", + "attributes": {} + }, + { + "id": "b43525ac-c594-42ab-89dc-9314cab33b85", + "name": "offline_access", + "description": "${role_offline-access}", + "composite": false, + "clientRole": false, + "containerId": "8ca42ab4-2c36-4f48-b25e-7d96a00cbc1c", + "attributes": {} + } + ], + "client": { + "dmp_webapp": [], + "realm-management": [ + { + "id": "599486f8-ace5-4389-9752-51f8d3059be7", + "name": "manage-authorization", + "description": "${role_manage-authorization}", + "composite": false, + "clientRole": true, + "containerId": "8094376d-fcf3-4366-a812-26301583cc98", + "attributes": {} + }, + { + "id": "ef6546e6-7910-4be8-b826-a7302241f07d", + "name": "realm-admin", + "description": "${role_realm-admin}", + "composite": true, + "composites": { + "client": { + "realm-management": [ + "manage-authorization", + "view-identity-providers", + "query-groups", + "view-events", + "manage-events", + "view-users", + "query-clients", + "manage-users", + "manage-realm", + "impersonation", + "create-client", + "query-users", + "view-realm", + "query-realms", + "view-clients", + "manage-clients", + "view-authorization", + "manage-identity-providers" + ] + } + }, + "clientRole": true, + "containerId": "8094376d-fcf3-4366-a812-26301583cc98", + "attributes": {} + }, + { + "id": "ecbf3dbb-1a14-4072-894d-d3d4c6ec09f8", + "name": "view-identity-providers", + "description": "${role_view-identity-providers}", + "composite": false, + "clientRole": true, + "containerId": "8094376d-fcf3-4366-a812-26301583cc98", + "attributes": {} + }, + { + "id": "297ace12-7c3c-4930-bbc6-8ebff7a0d3da", + "name": "query-groups", + "description": "${role_query-groups}", + "composite": false, + "clientRole": true, + "containerId": "8094376d-fcf3-4366-a812-26301583cc98", + "attributes": {} + }, + { + "id": "b23d1020-bfed-447c-80a0-4dc29e1c9cc0", + "name": "view-events", + "description": "${role_view-events}", + "composite": false, + "clientRole": true, + "containerId": "8094376d-fcf3-4366-a812-26301583cc98", + "attributes": {} + }, + { + "id": "7aa6617f-dc99-4205-8085-1423b2f8ada2", + "name": "manage-events", + "description": "${role_manage-events}", + "composite": false, + "clientRole": true, + "containerId": "8094376d-fcf3-4366-a812-26301583cc98", + "attributes": {} + }, + { + "id": "7769e962-d9fe-41d2-82ab-8d215ca4168b", + "name": "view-users", + "description": "${role_view-users}", + "composite": true, + "composites": { + "client": { + "realm-management": [ + "query-users", + "query-groups" + ] + } + }, + "clientRole": true, + "containerId": "8094376d-fcf3-4366-a812-26301583cc98", + "attributes": {} + }, + { + "id": "7c6a107a-70f7-4293-8fab-6a466094d741", + "name": "query-clients", + "description": "${role_query-clients}", + "composite": false, + "clientRole": true, + "containerId": "8094376d-fcf3-4366-a812-26301583cc98", + "attributes": {} + }, + { + "id": "edb5f914-a65c-4651-9412-4cd3b0382833", + "name": "manage-users", + "description": "${role_manage-users}", + "composite": false, + "clientRole": true, + "containerId": "8094376d-fcf3-4366-a812-26301583cc98", + "attributes": {} + }, + { + "id": "432d4a16-2f32-4f18-81e1-4e17cc9b9673", + "name": "impersonation", + "description": "${role_impersonation}", + "composite": false, + "clientRole": true, + "containerId": "8094376d-fcf3-4366-a812-26301583cc98", + "attributes": {} + }, + { + "id": "16b08c8c-efd6-4762-9df4-4478ef61cf84", + "name": "manage-realm", + "description": "${role_manage-realm}", + "composite": false, + "clientRole": true, + "containerId": "8094376d-fcf3-4366-a812-26301583cc98", + "attributes": {} + }, + { + "id": "eca529e8-6864-424c-b9fd-42a34cec434c", + "name": "create-client", + "description": "${role_create-client}", + "composite": false, + "clientRole": true, + "containerId": "8094376d-fcf3-4366-a812-26301583cc98", + "attributes": {} + }, + { + "id": "a0d68861-91d0-4cf6-8769-a702c69672d7", + "name": "query-users", + "description": "${role_query-users}", + "composite": false, + "clientRole": true, + "containerId": "8094376d-fcf3-4366-a812-26301583cc98", + "attributes": {} + }, + { + "id": "54ab46ba-c370-4bea-b333-86b30474e736", + "name": "view-realm", + "description": "${role_view-realm}", + "composite": false, + "clientRole": true, + "containerId": "8094376d-fcf3-4366-a812-26301583cc98", + "attributes": {} + }, + { + "id": "d7083f59-21b9-4d39-85f9-f3b31a8567b5", + "name": "query-realms", + "description": "${role_query-realms}", + "composite": false, + "clientRole": true, + "containerId": "8094376d-fcf3-4366-a812-26301583cc98", + "attributes": {} + }, + { + "id": "76854cd6-d964-4ca8-9df8-56ca8969f861", + "name": "view-clients", + "description": "${role_view-clients}", + "composite": true, + "composites": { + "client": { + "realm-management": [ + "query-clients" + ] + } + }, + "clientRole": true, + "containerId": "8094376d-fcf3-4366-a812-26301583cc98", + "attributes": {} + }, + { + "id": "0a240e40-f696-43ee-8f8f-d4d41e767036", + "name": "manage-clients", + "description": "${role_manage-clients}", + "composite": false, + "clientRole": true, + "containerId": "8094376d-fcf3-4366-a812-26301583cc98", + "attributes": {} + }, + { + "id": "8d85f653-e3e4-4e7a-b54c-ce2b6aa12e75", + "name": "manage-identity-providers", + "description": "${role_manage-identity-providers}", + "composite": false, + "clientRole": true, + "containerId": "8094376d-fcf3-4366-a812-26301583cc98", + "attributes": {} + }, + { + "id": "8e55d13c-9c40-423b-997a-90897471c327", + "name": "view-authorization", + "description": "${role_view-authorization}", + "composite": false, + "clientRole": true, + "containerId": "8094376d-fcf3-4366-a812-26301583cc98", + "attributes": {} + } + ], + "dmp_annotation": [ + { + "id": "8efa8a18-11aa-4fbf-91ea-862a7af419c8", + "name": "Admin", + "description": "", + "composite": false, + "clientRole": true, + "containerId": "e590dbb7-591d-4eca-93d1-6a349b9f0ccf", + "attributes": {} + }, + { + "id": "5147c4d0-31fd-4f42-a66d-d4ff1512477a", + "name": "User", + "description": "", + "composite": false, + "clientRole": true, + "containerId": "e590dbb7-591d-4eca-93d1-6a349b9f0ccf", + "attributes": {} + } + ], + "security-admin-console": [], + "admin-cli": [], + "dmp_plugins": [ + { + "id": "803d8611-0781-4d72-a9d5-add8e3622c5a", + "name": "app-service", + "description": "", + "composite": false, + "clientRole": true, + "containerId": "fc60067c-3b77-4172-917c-6116ac1d91af", + "attributes": {} + } + ], + "dmp_notification": [ + { + "id": "b29aa0e2-ea83-4646-9730-cd32daa315fc", + "name": "User", + "description": "", + "composite": false, + "clientRole": true, + "containerId": "01b43587-5af0-4761-a2af-e9059bc3a396", + "attributes": {} + }, + { + "id": "743d40ff-a039-4d78-8ed6-2c951426e239", + "name": "Admin", + "description": "", + "composite": false, + "clientRole": true, + "containerId": "01b43587-5af0-4761-a2af-e9059bc3a396", + "attributes": {} + } + ], + "dmp_web": [ + { + "id": "191fff97-b18b-41bd-9013-512b91fdedaf", + "name": "User", + "description": "", + "composite": false, + "clientRole": true, + "containerId": "c82150e9-a9e5-4a5f-bd0f-5f25460b3e08", + "attributes": {} + }, + { + "id": "57253b8e-69bf-44bb-950f-fbfcd4785206", + "name": "Admin", + "description": "", + "composite": false, + "clientRole": true, + "containerId": "c82150e9-a9e5-4a5f-bd0f-5f25460b3e08", + "attributes": {} + } + ], + "account-console": [], + "broker": [ + { + "id": "cda05d95-c7fc-4139-bbc8-b86500b41060", + "name": "read-token", + "description": "${role_read-token}", + "composite": false, + "clientRole": true, + "containerId": "79a9e8f4-f09d-4d30-bd44-3f433309c3c6", + "attributes": {} + } + ], + "account": [ + { + "id": "73b916bf-b0d9-4e87-bf15-9131d131583f", + "name": "manage-consent", + "description": "${role_manage-consent}", + "composite": true, + "composites": { + "client": { + "account": [ + "view-consent" + ] + } + }, + "clientRole": true, + "containerId": "a3291f71-8f8e-4ffe-a1b3-5e08dc93d77f", + "attributes": {} + }, + { + "id": "387e5e06-fbf9-467d-9364-b28d95fe7c83", + "name": "view-consent", + "description": "${role_view-consent}", + "composite": false, + "clientRole": true, + "containerId": "a3291f71-8f8e-4ffe-a1b3-5e08dc93d77f", + "attributes": {} + }, + { + "id": "3fb552e7-43b5-48da-a740-d113478cd0e8", + "name": "view-applications", + "description": "${role_view-applications}", + "composite": false, + "clientRole": true, + "containerId": "a3291f71-8f8e-4ffe-a1b3-5e08dc93d77f", + "attributes": {} + }, + { + "id": "078f56b7-3943-4c14-b420-9ece9b2dbe43", + "name": "view-groups", + "description": "${role_view-groups}", + "composite": false, + "clientRole": true, + "containerId": "a3291f71-8f8e-4ffe-a1b3-5e08dc93d77f", + "attributes": {} + }, + { + "id": "0a36d427-1013-4168-a802-a4a5b470e6cd", + "name": "delete-account", + "description": "${role_delete-account}", + "composite": false, + "clientRole": true, + "containerId": "a3291f71-8f8e-4ffe-a1b3-5e08dc93d77f", + "attributes": {} + }, + { + "id": "842c8adb-7c3b-4e4a-87a4-84dc81b7a404", + "name": "manage-account", + "description": "${role_manage-account}", + "composite": true, + "composites": { + "client": { + "account": [ + "manage-account-links" + ] + } + }, + "clientRole": true, + "containerId": "a3291f71-8f8e-4ffe-a1b3-5e08dc93d77f", + "attributes": {} + }, + { + "id": "de9d924f-aca7-44f4-8efc-e397fc6ec79f", + "name": "manage-account-links", + "description": "${role_manage-account-links}", + "composite": false, + "clientRole": true, + "containerId": "a3291f71-8f8e-4ffe-a1b3-5e08dc93d77f", + "attributes": {} + }, + { + "id": "d4e26324-81bb-42da-9147-15bb2464e8f7", + "name": "view-profile", + "description": "${role_view-profile}", + "composite": false, + "clientRole": true, + "containerId": "a3291f71-8f8e-4ffe-a1b3-5e08dc93d77f", + "attributes": {} + } + ] + } + }, + "groups": [ + { + "id": "e2bfeb5c-880a-43fa-a822-4b7dba87defb", + "name": "opencdmp-app", + "path": "/opencdmp-app", + "subGroups": [ + { + "id": "935ab34d-700a-407f-bb7b-8a00ddcef1d8", + "name": "role-admin", + "path": "/opencdmp-app/role-admin", + "parentId": "e2bfeb5c-880a-43fa-a822-4b7dba87defb", + "subGroups": [], + "attributes": {}, + "realmRoles": [], + "clientRoles": { + "dmp_annotation": [ + "Admin" + ], + "dmp_web": [ + "Admin" + ], + "dmp_notification": [ + "Admin" + ] + } + }, + { + "id": "011269bd-9eec-445f-926d-1ebd1f45b5aa", + "name": "role-user", + "path": "/opencdmp-app/role-user", + "parentId": "e2bfeb5c-880a-43fa-a822-4b7dba87defb", + "subGroups": [], + "attributes": {}, + "realmRoles": [], + "clientRoles": { + "dmp_annotation": [ + "User" + ], + "dmp_web": [ + "User" + ], + "dmp_notification": [ + "User" + ] + } + }, + { + "id": "01195be1-f754-415b-8225-3cc470744d62", + "name": "tenant-role-admin", + "path": "/opencdmp-app/tenant-role-admin", + "parentId": "e2bfeb5c-880a-43fa-a822-4b7dba87defb", + "subGroups": [ + { + "id": "70fdec04-4dce-455c-939b-4146bed4bd4c", + "name": "tenant-default", + "path": "/opencdmp-app/tenant-role-admin/tenant-default", + "parentId": "01195be1-f754-415b-8225-3cc470744d62", + "subGroups": [], + "attributes": { + "tenant_role": [ + "TenantAdmin:default" + ] + }, + "realmRoles": [], + "clientRoles": {} + } + ], + "attributes": {}, + "realmRoles": [ + "User" + ], + "clientRoles": {} + }, + { + "id": "1bfe8064-4e44-4ec1-a69e-836364a36e37", + "name": "tenant-role-description-template-editor", + "path": "/opencdmp-app/tenant-role-description-template-editor", + "parentId": "e2bfeb5c-880a-43fa-a822-4b7dba87defb", + "subGroups": [ + { + "id": "b84e92ec-452d-4912-90c6-813b3d2e2076", + "name": "tenant-default", + "path": "/opencdmp-app/tenant-role-description-template-editor/tenant-default", + "parentId": "1bfe8064-4e44-4ec1-a69e-836364a36e37", + "subGroups": [], + "attributes": { + "tenant_role": [ + "TenantDescriptionTemlateEditor:default" + ] + }, + "realmRoles": [], + "clientRoles": {} + } + ], + "attributes": {}, + "realmRoles": [ + "User" + ], + "clientRoles": {} + }, + { + "id": "735f22f1-a0cc-4afd-af4c-dba6bb2e7415", + "name": "tenant-role-manager", + "path": "/opencdmp-app/tenant-role-manager", + "parentId": "e2bfeb5c-880a-43fa-a822-4b7dba87defb", + "subGroups": [ + { + "id": "88fb621e-499e-481b-8695-77dc7527451e", + "name": "tenant-default", + "path": "/opencdmp-app/tenant-role-manager/tenant-default", + "parentId": "735f22f1-a0cc-4afd-af4c-dba6bb2e7415", + "subGroups": [], + "attributes": { + "tenant_role": [ + "TenantManager:default" + ] + }, + "realmRoles": [], + "clientRoles": {} + } + ], + "attributes": {}, + "realmRoles": [ + "User" + ], + "clientRoles": {} + }, + { + "id": "64c07220-0d92-44e5-be6e-d9edf6c10a56", + "name": "tenant-role-user", + "path": "/opencdmp-app/tenant-role-user", + "parentId": "e2bfeb5c-880a-43fa-a822-4b7dba87defb", + "subGroups": [ + { + "id": "2094ae4c-804b-4a40-9c20-0efa6d384f27", + "name": "tenant-default", + "path": "/opencdmp-app/tenant-role-user/tenant-default", + "parentId": "64c07220-0d92-44e5-be6e-d9edf6c10a56", + "subGroups": [], + "attributes": {}, + "realmRoles": [], + "clientRoles": {} + } + ], + "attributes": { + "tenant_role": [ + "TenantUser:default" + ] + }, + "realmRoles": [ + "User" + ], + "clientRoles": {} + } + ], + "attributes": {}, + "realmRoles": [], + "clientRoles": {} + } + ], + "defaultRole": { + "id": "ea1273c9-d2bc-49bb-8c92-fe0dcbd9cc31", + "name": "default-roles-dmp-staging", + "description": "${role_default-roles}", + "composite": true, + "clientRole": false, + "containerId": "8ca42ab4-2c36-4f48-b25e-7d96a00cbc1c" + }, + "defaultGroups": [ + "/opencdmp-app/role-user", + "/opencdmp-app/tenant-role-user/tenant-default" + ], + "requiredCredentials": [ + "password" + ], + "otpPolicyType": "totp", + "otpPolicyAlgorithm": "HmacSHA1", + "otpPolicyInitialCounter": 0, + "otpPolicyDigits": 6, + "otpPolicyLookAheadWindow": 1, + "otpPolicyPeriod": 30, + "otpPolicyCodeReusable": false, + "otpSupportedApplications": [ + "totpAppFreeOTPName", + "totpAppGoogleName", + "totpAppMicrosoftAuthenticatorName" + ], + "localizationTexts": {}, + "webAuthnPolicyRpEntityName": "keycloak", + "webAuthnPolicySignatureAlgorithms": [ + "ES256" + ], + "webAuthnPolicyRpId": "", + "webAuthnPolicyAttestationConveyancePreference": "not specified", + "webAuthnPolicyAuthenticatorAttachment": "not specified", + "webAuthnPolicyRequireResidentKey": "not specified", + "webAuthnPolicyUserVerificationRequirement": "not specified", + "webAuthnPolicyCreateTimeout": 0, + "webAuthnPolicyAvoidSameAuthenticatorRegister": false, + "webAuthnPolicyAcceptableAaguids": [], + "webAuthnPolicyExtraOrigins": [], + "webAuthnPolicyPasswordlessRpEntityName": "keycloak", + "webAuthnPolicyPasswordlessSignatureAlgorithms": [ + "ES256" + ], + "webAuthnPolicyPasswordlessRpId": "", + "webAuthnPolicyPasswordlessAttestationConveyancePreference": "not specified", + "webAuthnPolicyPasswordlessAuthenticatorAttachment": "not specified", + "webAuthnPolicyPasswordlessRequireResidentKey": "not specified", + "webAuthnPolicyPasswordlessUserVerificationRequirement": "not specified", + "webAuthnPolicyPasswordlessCreateTimeout": 0, + "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false, + "webAuthnPolicyPasswordlessAcceptableAaguids": [], + "webAuthnPolicyPasswordlessExtraOrigins": [], + "users": [ + { + "id": "bc33b6b1-5017-4314-a644-ee55e5aa7dd6", + "username": "service-account-dmp_annotation", + "emailVerified": false, + "createdTimestamp": 1712653226491, + "enabled": true, + "totp": false, + "serviceAccountClientId": "dmp_annotation", + "disableableCredentialTypes": [], + "requiredActions": [], + "realmRoles": [ + "default-roles-dmp-staging" + ], + "notBefore": 0, + "groups": [] + }, + { + "id": "7965e6d2-ea1b-4c61-a9ab-42541b3f7afa", + "username": "service-account-dmp_notification", + "emailVerified": false, + "createdTimestamp": 1712653503012, + "enabled": true, + "totp": false, + "serviceAccountClientId": "dmp_notification", + "disableableCredentialTypes": [], + "requiredActions": [], + "realmRoles": [ + "default-roles-dmp-staging" + ], + "notBefore": 0, + "groups": [] + }, + { + "id": "0ce5a953-2242-44a3-9f63-2977dd2cd7ab", + "username": "service-account-dmp_plugins", + "emailVerified": false, + "createdTimestamp": 1712654040557, + "enabled": true, + "totp": false, + "serviceAccountClientId": "dmp_plugins", + "disableableCredentialTypes": [], + "requiredActions": [], + "realmRoles": [ + "default-roles-dmp-staging" + ], + "notBefore": 0, + "groups": [] + }, + { + "id": "d939b8ee-1fee-416b-b535-24eae8828625", + "username": "service-account-dmp_web", + "emailVerified": false, + "createdTimestamp": 1712653775771, + "enabled": true, + "totp": false, + "serviceAccountClientId": "dmp_web", + "disableableCredentialTypes": [], + "requiredActions": [], + "realmRoles": [ + "default-roles-dmp-staging" + ], + "notBefore": 0, + "groups": [] + } + ], + "scopeMappings": [ + { + "clientScope": "dmp_web", + "roles": [ + "User", + "Admin" + ] + }, + { + "clientScope": "offline_access", + "roles": [ + "offline_access" + ] + }, + { + "clientScope": "dmp_annotation", + "roles": [ + "User", + "Admin" + ] + }, + { + "clientScope": "dmp_notification", + "roles": [ + "User", + "Admin" + ] + } + ], + "clientScopeMappings": { + "account": [ + { + "client": "account-console", + "roles": [ + "manage-account", + "view-groups" + ] + } + ] + }, + "clients": [ + { + "id": "a3291f71-8f8e-4ffe-a1b3-5e08dc93d77f", + "clientId": "account", + "name": "${client_account}", + "rootUrl": "${authBaseUrl}", + "baseUrl": "/realms/OpenCDMP/account/", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "redirectUris": [ + "/realms/OpenCDMP/account/*" + ], + "webOrigins": [], + "notBefore": 0, + "bearerOnly": false, + "consentRequired": false, + "standardFlowEnabled": true, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": false, + "serviceAccountsEnabled": false, + "publicClient": true, + "frontchannelLogout": false, + "protocol": "openid-connect", + "attributes": { + "post.logout.redirect.uris": "+" + }, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": false, + "nodeReRegistrationTimeout": 0, + "defaultClientScopes": [ + "web-origins", + "acr", + "roles", + "profile", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "microprofile-jwt" + ] + }, + { + "id": "28e4d2ef-28e5-42cf-8960-180b6026c4a5", + "clientId": "account-console", + "name": "${client_account-console}", + "rootUrl": "${authBaseUrl}", + "baseUrl": "/realms/OpenCDMP/account/", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "redirectUris": [ + "/realms/OpenCDMP/account/*" + ], + "webOrigins": [], + "notBefore": 0, + "bearerOnly": false, + "consentRequired": false, + "standardFlowEnabled": true, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": false, + "serviceAccountsEnabled": false, + "publicClient": true, + "frontchannelLogout": false, + "protocol": "openid-connect", + "attributes": { + "post.logout.redirect.uris": "+", + "pkce.code.challenge.method": "S256" + }, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": false, + "nodeReRegistrationTimeout": 0, + "protocolMappers": [ + { + "id": "6e9cba55-8e6d-42cb-a850-502169e461e5", + "name": "audience resolve", + "protocol": "openid-connect", + "protocolMapper": "oidc-audience-resolve-mapper", + "consentRequired": false, + "config": {} + } + ], + "defaultClientScopes": [ + "web-origins", + "acr", + "roles", + "profile", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "microprofile-jwt" + ] + }, + { + "id": "79efd221-a8e9-4485-81cc-797384a1d142", + "clientId": "admin-cli", + "name": "${client_admin-cli}", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "redirectUris": [], + "webOrigins": [], + "notBefore": 0, + "bearerOnly": false, + "consentRequired": false, + "standardFlowEnabled": false, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": true, + "serviceAccountsEnabled": false, + "publicClient": true, + "frontchannelLogout": false, + "protocol": "openid-connect", + "attributes": {}, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": false, + "nodeReRegistrationTimeout": 0, + "defaultClientScopes": [ + "web-origins", + "acr", + "roles", + "profile", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "microprofile-jwt" + ] + }, + { + "id": "79a9e8f4-f09d-4d30-bd44-3f433309c3c6", + "clientId": "broker", + "name": "${client_broker}", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "redirectUris": [], + "webOrigins": [], + "notBefore": 0, + "bearerOnly": true, + "consentRequired": false, + "standardFlowEnabled": true, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": false, + "serviceAccountsEnabled": false, + "publicClient": false, + "frontchannelLogout": false, + "protocol": "openid-connect", + "attributes": {}, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": false, + "nodeReRegistrationTimeout": 0, + "defaultClientScopes": [ + "web-origins", + "acr", + "roles", + "profile", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "microprofile-jwt" + ] + }, + { + "id": "e590dbb7-591d-4eca-93d1-6a349b9f0ccf", + "clientId": "dmp_annotation", + "name": "dmp_annotation", + "description": "", + "rootUrl": "", + "adminUrl": "", + "baseUrl": "", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "secret": "annotation_secret", + "redirectUris": [ + "/*" + ], + "webOrigins": [ + "/*" + ], + "notBefore": 0, + "bearerOnly": false, + "consentRequired": false, + "standardFlowEnabled": false, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": true, + "serviceAccountsEnabled": true, + "publicClient": false, + "frontchannelLogout": false, + "protocol": "openid-connect", + "attributes": { + "oidc.ciba.grant.enabled": "false", + "client.secret.creation.time": "1712653226", + "backchannel.logout.session.required": "true", + "display.on.consent.screen": "false", + "oauth2.device.authorization.grant.enabled": "false", + "backchannel.logout.revoke.offline.tokens": "false" + }, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": true, + "nodeReRegistrationTimeout": -1, + "protocolMappers": [ + { + "id": "9118fd84-e77b-4452-8777-bbb191099cea", + "name": "Client Host", + "protocol": "openid-connect", + "protocolMapper": "oidc-usersessionmodel-note-mapper", + "consentRequired": false, + "config": { + "user.session.note": "clientHost", + "introspection.token.claim": "true", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "clientHost", + "jsonType.label": "String" + } + }, + { + "id": "f4c21a2e-c1d7-42af-83b2-1bd773bb1d24", + "name": "Client IP Address", + "protocol": "openid-connect", + "protocolMapper": "oidc-usersessionmodel-note-mapper", + "consentRequired": false, + "config": { + "user.session.note": "clientAddress", + "introspection.token.claim": "true", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "clientAddress", + "jsonType.label": "String" + } + }, + { + "id": "2e823e2f-bfb7-426e-a55c-90c89e6a9b95", + "name": "Client ID", + "protocol": "openid-connect", + "protocolMapper": "oidc-usersessionmodel-note-mapper", + "consentRequired": false, + "config": { + "user.session.note": "client_id", + "introspection.token.claim": "true", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "client_id", + "jsonType.label": "String" + } + } + ], + "defaultClientScopes": [ + "web-origins", + "acr", + "roles", + "profile", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "microprofile-jwt" + ] + }, + { + "id": "01b43587-5af0-4761-a2af-e9059bc3a396", + "clientId": "dmp_notification", + "name": "dmp_notification", + "description": "", + "rootUrl": "", + "adminUrl": "", + "baseUrl": "", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "secret": "notification_secret", + "redirectUris": [ + "/*" + ], + "webOrigins": [ + "/*" + ], + "notBefore": 0, + "bearerOnly": false, + "consentRequired": false, + "standardFlowEnabled": false, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": true, + "serviceAccountsEnabled": true, + "publicClient": false, + "frontchannelLogout": true, + "protocol": "openid-connect", + "attributes": { + "client.secret.creation.time": "1712653503", + "oauth2.device.authorization.grant.enabled": "false", + "backchannel.logout.revoke.offline.tokens": "false", + "use.refresh.tokens": "true", + "oidc.ciba.grant.enabled": "false", + "client.use.lightweight.access.token.enabled": "false", + "backchannel.logout.session.required": "true", + "client_credentials.use_refresh_token": "false", + "acr.loa.map": "{}", + "require.pushed.authorization.requests": "false", + "tls.client.certificate.bound.access.tokens": "false", + "display.on.consent.screen": "false", + "token.response.type.bearer.lower-case": "false" + }, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": true, + "nodeReRegistrationTimeout": -1, + "protocolMappers": [ + { + "id": "fa2a3f16-d87e-4122-8a13-781d46987f92", + "name": "Client IP Address", + "protocol": "openid-connect", + "protocolMapper": "oidc-usersessionmodel-note-mapper", + "consentRequired": false, + "config": { + "user.session.note": "clientAddress", + "introspection.token.claim": "true", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "clientAddress", + "jsonType.label": "String" + } + }, + { + "id": "b94faa61-3757-448e-bacd-e232fdb1d1ba", + "name": "Client Host", + "protocol": "openid-connect", + "protocolMapper": "oidc-usersessionmodel-note-mapper", + "consentRequired": false, + "config": { + "user.session.note": "clientHost", + "introspection.token.claim": "true", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "clientHost", + "jsonType.label": "String" + } + }, + { + "id": "fa13a201-56f0-4ddf-b757-54556bc4c403", + "name": "Client ID", + "protocol": "openid-connect", + "protocolMapper": "oidc-usersessionmodel-note-mapper", + "consentRequired": false, + "config": { + "user.session.note": "client_id", + "introspection.token.claim": "true", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "client_id", + "jsonType.label": "String" + } + } + ], + "defaultClientScopes": [ + "web-origins", + "acr", + "roles", + "profile", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "microprofile-jwt" + ] + }, + { + "id": "fc60067c-3b77-4172-917c-6116ac1d91af", + "clientId": "dmp_plugins", + "name": "dmp_plugins", + "description": "", + "rootUrl": "", + "adminUrl": "", + "baseUrl": "", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "secret": "plugins_secret", + "redirectUris": [ + "/*" + ], + "webOrigins": [ + "/*" + ], + "notBefore": 0, + "bearerOnly": false, + "consentRequired": false, + "standardFlowEnabled": false, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": true, + "serviceAccountsEnabled": true, + "publicClient": false, + "frontchannelLogout": true, + "protocol": "openid-connect", + "attributes": { + "oidc.ciba.grant.enabled": "false", + "oauth2.device.authorization.grant.enabled": "false", + "client.secret.creation.time": "1712654040", + "backchannel.logout.session.required": "true", + "backchannel.logout.revoke.offline.tokens": "false" + }, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": true, + "nodeReRegistrationTimeout": -1, + "protocolMappers": [ + { + "id": "3dab7e1b-7a8d-4fe2-9126-cb34aa902ad5", + "name": "Client IP Address", + "protocol": "openid-connect", + "protocolMapper": "oidc-usersessionmodel-note-mapper", + "consentRequired": false, + "config": { + "user.session.note": "clientAddress", + "introspection.token.claim": "true", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "clientAddress", + "jsonType.label": "String" + } + }, + { + "id": "0525ff56-61da-4e46-b03b-f9e9efac675d", + "name": "Client ID", + "protocol": "openid-connect", + "protocolMapper": "oidc-usersessionmodel-note-mapper", + "consentRequired": false, + "config": { + "user.session.note": "client_id", + "introspection.token.claim": "true", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "client_id", + "jsonType.label": "String" + } + }, + { + "id": "b8376624-5481-4047-bacf-047b38fdb569", + "name": "Client Host", + "protocol": "openid-connect", + "protocolMapper": "oidc-usersessionmodel-note-mapper", + "consentRequired": false, + "config": { + "user.session.note": "clientHost", + "introspection.token.claim": "true", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "clientHost", + "jsonType.label": "String" + } + } + ], + "defaultClientScopes": [ + "web-origins", + "acr", + "roles", + "profile", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "microprofile-jwt" + ] + }, + { + "id": "c82150e9-a9e5-4a5f-bd0f-5f25460b3e08", + "clientId": "dmp_web", + "name": "dmp_web", + "description": "", + "rootUrl": "", + "adminUrl": "", + "baseUrl": "", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "secret": "web_secret", + "redirectUris": [ + "/*" + ], + "webOrigins": [ + "/*" + ], + "notBefore": 0, + "bearerOnly": false, + "consentRequired": false, + "standardFlowEnabled": false, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": true, + "serviceAccountsEnabled": true, + "publicClient": false, + "frontchannelLogout": false, + "protocol": "openid-connect", + "attributes": { + "client.secret.creation.time": "1712653775", + "oauth2.device.authorization.grant.enabled": "false", + "backchannel.logout.revoke.offline.tokens": "false", + "use.refresh.tokens": "true", + "oidc.ciba.grant.enabled": "false", + "client.use.lightweight.access.token.enabled": "false", + "backchannel.logout.session.required": "true", + "client_credentials.use_refresh_token": "false", + "tls.client.certificate.bound.access.tokens": "false", + "require.pushed.authorization.requests": "false", + "acr.loa.map": "{}", + "display.on.consent.screen": "false", + "token.response.type.bearer.lower-case": "false" + }, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": true, + "nodeReRegistrationTimeout": -1, + "protocolMappers": [ + { + "id": "f6e04c1b-cfdd-435a-8ced-4b1f74575203", + "name": "Client ID", + "protocol": "openid-connect", + "protocolMapper": "oidc-usersessionmodel-note-mapper", + "consentRequired": false, + "config": { + "user.session.note": "client_id", + "introspection.token.claim": "true", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "client_id", + "jsonType.label": "String" + } + }, + { + "id": "b43fefcd-c57c-41bd-8b81-0df8eb0b9ac3", + "name": "Client IP Address", + "protocol": "openid-connect", + "protocolMapper": "oidc-usersessionmodel-note-mapper", + "consentRequired": false, + "config": { + "user.session.note": "clientAddress", + "introspection.token.claim": "true", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "clientAddress", + "jsonType.label": "String" + } + }, + { + "id": "638dfefd-24a6-4830-9f22-447a9b58b58d", + "name": "Client Host", + "protocol": "openid-connect", + "protocolMapper": "oidc-usersessionmodel-note-mapper", + "consentRequired": false, + "config": { + "user.session.note": "clientHost", + "introspection.token.claim": "true", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "clientHost", + "jsonType.label": "String" + } + } + ], + "defaultClientScopes": [ + "web-origins", + "acr", + "roles", + "profile", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "dmp_plugins", + "microprofile-jwt" + ] + }, + { + "id": "94d2efc9-1fad-46b6-a89a-d2edd303994b", + "clientId": "dmp_webapp", + "name": "dmp_webapp", + "description": "", + "rootUrl": "http://host.docker.internal:8081/home", + "adminUrl": "", + "baseUrl": "http://host.docker.internal:8081/home", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "redirectUris": [ + "http://host.docker.internal:8081/*" + ], + "webOrigins": [ + "http://host.docker.internal:8081" + ], + "notBefore": 0, + "bearerOnly": false, + "consentRequired": false, + "standardFlowEnabled": true, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": false, + "serviceAccountsEnabled": false, + "publicClient": true, + "frontchannelLogout": true, + "protocol": "openid-connect", + "attributes": { + "oauth2.device.authorization.grant.enabled": "false", + "backchannel.logout.revoke.offline.tokens": "false", + "use.refresh.tokens": "true", + "oidc.ciba.grant.enabled": "false", + "client.use.lightweight.access.token.enabled": "false", + "backchannel.logout.session.required": "true", + "client_credentials.use_refresh_token": "false", + "tls.client.certificate.bound.access.tokens": "false", + "require.pushed.authorization.requests": "false", + "acr.loa.map": "{}", + "display.on.consent.screen": "false", + "token.response.type.bearer.lower-case": "false" + }, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": true, + "nodeReRegistrationTimeout": -1, + "defaultClientScopes": [ + "web-origins", + "acr", + "identity_provider", + "roles", + "profile", + "email", + "tenant_role" + ], + "optionalClientScopes": [ + "address", + "dmp_annotation", + "phone", + "offline_access", + "dmp_web", + "dmp_notification", + "microprofile-jwt" + ] + }, + { + "id": "8094376d-fcf3-4366-a812-26301583cc98", + "clientId": "realm-management", + "name": "${client_realm-management}", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "redirectUris": [], + "webOrigins": [], + "notBefore": 0, + "bearerOnly": true, + "consentRequired": false, + "standardFlowEnabled": true, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": false, + "serviceAccountsEnabled": false, + "publicClient": false, + "frontchannelLogout": false, + "protocol": "openid-connect", + "attributes": {}, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": false, + "nodeReRegistrationTimeout": 0, + "defaultClientScopes": [ + "web-origins", + "acr", + "roles", + "profile", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "microprofile-jwt" + ] + }, + { + "id": "7f40ff61-1137-4430-82fb-57cfcc54f1ac", + "clientId": "security-admin-console", + "name": "${client_security-admin-console}", + "rootUrl": "${authAdminUrl}", + "baseUrl": "/admin/OpenCDMP/console/", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "redirectUris": [ + "/admin/OpenCDMP/console/*" + ], + "webOrigins": [ + "+" + ], + "notBefore": 0, + "bearerOnly": false, + "consentRequired": false, + "standardFlowEnabled": true, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": false, + "serviceAccountsEnabled": false, + "publicClient": true, + "frontchannelLogout": false, + "protocol": "openid-connect", + "attributes": { + "post.logout.redirect.uris": "+", + "pkce.code.challenge.method": "S256" + }, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": false, + "nodeReRegistrationTimeout": 0, + "protocolMappers": [ + { + "id": "7b0b7a33-dbf1-4a9e-9a84-4db2d2d67d9e", + "name": "locale", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "locale", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "locale", + "jsonType.label": "String" + } + } + ], + "defaultClientScopes": [ + "web-origins", + "acr", + "roles", + "profile", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "microprofile-jwt" + ] + } + ], + "clientScopes": [ + { + "id": "b5b320c3-eddc-4b7e-9be3-968542e2fa14", + "name": "tenant_role", + "description": "tenant_role", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "true", + "display.on.consent.screen": "true", + "gui.order": "", + "consent.screen.text": "" + }, + "protocolMappers": [ + { + "id": "14d68445-3964-48a6-a045-0bec491533de", + "name": "Tenant role", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "aggregate.attrs": "true", + "introspection.token.claim": "true", + "multivalued": "true", + "userinfo.token.claim": "true", + "user.attribute": "tenant_role", + "id.token.claim": "true", + "lightweight.claim": "false", + "access.token.claim": "true", + "claim.name": "tenant_roles", + "jsonType.label": "String" + } + } + ] + }, + { + "id": "bf01169f-984e-4632-81bf-b4c916ae453d", + "name": "profile", + "description": "OpenID Connect built-in scope: profile", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "true", + "display.on.consent.screen": "true", + "consent.screen.text": "${profileScopeConsentText}" + }, + "protocolMappers": [ + { + "id": "73fb5445-eae5-4447-9047-7f54055fb22b", + "name": "picture", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "picture", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "picture", + "jsonType.label": "String" + } + }, + { + "id": "c479bf22-e264-4c00-b8d1-7357b67e53fd", + "name": "locale", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "locale", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "locale", + "jsonType.label": "String" + } + }, + { + "id": "5d00fe6a-4cdd-46d6-bd57-d008b2403ad6", + "name": "family name", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "lastName", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "family_name", + "jsonType.label": "String" + } + }, + { + "id": "022d1a9f-5534-4e8e-a63c-e91238eb3b67", + "name": "gender", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "gender", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "gender", + "jsonType.label": "String" + } + }, + { + "id": "73ab53b4-0efd-49fc-a3b7-54c9d8b6fb40", + "name": "full name", + "protocol": "openid-connect", + "protocolMapper": "oidc-full-name-mapper", + "consentRequired": false, + "config": { + "id.token.claim": "true", + "access.token.claim": "true", + "introspection.token.claim": "true", + "userinfo.token.claim": "true" + } + }, + { + "id": "41cfe68d-7ae4-4e13-ae34-2be00f238324", + "name": "given name", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "firstName", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "given_name", + "jsonType.label": "String" + } + }, + { + "id": "d3ac8d95-881b-4ed3-a37d-b62e537d9268", + "name": "website", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "website", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "website", + "jsonType.label": "String" + } + }, + { + "id": "fa31e780-3b6d-44c2-a084-6efcab21cfde", + "name": "nickname", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "nickname", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "nickname", + "jsonType.label": "String" + } + }, + { + "id": "93859d51-f106-4596-9520-0483ee7f5308", + "name": "username", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "username", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "preferred_username", + "jsonType.label": "String" + } + }, + { + "id": "c36562fc-901f-41b1-a7ae-079fa5bac69f", + "name": "birthdate", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "birthdate", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "birthdate", + "jsonType.label": "String" + } + }, + { + "id": "493b316c-97f7-42b8-9548-09d5d874ab17", + "name": "profile", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "profile", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "profile", + "jsonType.label": "String" + } + }, + { + "id": "77326698-db87-4fae-b1a6-f862173a9a4c", + "name": "updated at", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "updatedAt", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "updated_at", + "jsonType.label": "long" + } + }, + { + "id": "66c0e5d7-d7cb-441c-b1c9-88f51c7e05dc", + "name": "zoneinfo", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "zoneinfo", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "zoneinfo", + "jsonType.label": "String" + } + }, + { + "id": "c761fe65-855c-4933-84ce-1e994ce53cf9", + "name": "middle name", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "middleName", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "middle_name", + "jsonType.label": "String" + } + } + ] + }, + { + "id": "a908ffe3-5be1-4f66-b737-132085fedee9", + "name": "dmp_web", + "description": "", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "true", + "display.on.consent.screen": "true", + "gui.order": "", + "consent.screen.text": "" + }, + "protocolMappers": [ + { + "id": "f5cd6093-9cc0-476d-aad1-d8cd30bdd8ce", + "name": "Client Id Audience", + "protocol": "openid-connect", + "protocolMapper": "oidc-audience-mapper", + "consentRequired": false, + "config": { + "included.client.audience": "dmp_web", + "introspection.token.claim": "true", + "userinfo.token.claim": "false", + "id.token.claim": "false", + "lightweight.claim": "false", + "access.token.claim": "true" + } + } + ] + }, + { + "id": "0db5db44-ef7a-4bbc-a770-3a34b4aa5f58", + "name": "acr", + "description": "OpenID Connect scope for add acr (authentication context class reference) to the token", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "false", + "display.on.consent.screen": "false" + }, + "protocolMappers": [ + { + "id": "bb50b0bc-17cd-4980-92dc-3179fe6ffaeb", + "name": "acr loa level", + "protocol": "openid-connect", + "protocolMapper": "oidc-acr-mapper", + "consentRequired": false, + "config": { + "id.token.claim": "true", + "introspection.token.claim": "true", + "access.token.claim": "true" + } + } + ] + }, + { + "id": "64963b49-1a94-4fad-8b8a-329f8e25873e", + "name": "dmp_plugins", + "description": "", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "true", + "display.on.consent.screen": "true", + "gui.order": "", + "consent.screen.text": "" + }, + "protocolMappers": [ + { + "id": "79169ea5-5635-41ca-997a-2ceaf6fb0431", + "name": "Client Id Audience", + "protocol": "openid-connect", + "protocolMapper": "oidc-audience-mapper", + "consentRequired": false, + "config": { + "included.client.audience": "dmp_plugins", + "id.token.claim": "false", + "lightweight.claim": "false", + "introspection.token.claim": "true", + "access.token.claim": "true" + } + } + ] + }, + { + "id": "6c1655da-fb82-45b7-9bc6-4774f44aa504", + "name": "email", + "description": "OpenID Connect built-in scope: email", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "true", + "display.on.consent.screen": "true", + "consent.screen.text": "${emailScopeConsentText}" + }, + "protocolMappers": [ + { + "id": "7cb5006e-0b00-4659-a84f-4817f49bcbe9", + "name": "email", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "email", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "email", + "jsonType.label": "String" + } + }, + { + "id": "b9c82303-ac4b-4d45-bb31-07d174c2f338", + "name": "email verified", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-property-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "emailVerified", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "email_verified", + "jsonType.label": "boolean" + } + } + ] + }, + { + "id": "f4700d8f-a939-4627-828d-aef6473619ba", + "name": "address", + "description": "OpenID Connect built-in scope: address", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "true", + "display.on.consent.screen": "true", + "consent.screen.text": "${addressScopeConsentText}" + }, + "protocolMappers": [ + { + "id": "34b4f62a-a50d-44e5-ae0f-6430af1b4fbe", + "name": "address", + "protocol": "openid-connect", + "protocolMapper": "oidc-address-mapper", + "consentRequired": false, + "config": { + "user.attribute.formatted": "formatted", + "user.attribute.country": "country", + "introspection.token.claim": "true", + "user.attribute.postal_code": "postal_code", + "userinfo.token.claim": "true", + "user.attribute.street": "street", + "id.token.claim": "true", + "user.attribute.region": "region", + "access.token.claim": "true", + "user.attribute.locality": "locality" + } + } + ] + }, + { + "id": "f7971816-d301-462b-b160-48a088ac6643", + "name": "role_list", + "description": "SAML role list", + "protocol": "saml", + "attributes": { + "consent.screen.text": "${samlRoleListScopeConsentText}", + "display.on.consent.screen": "true" + }, + "protocolMappers": [ + { + "id": "a09729c9-52f7-4925-a1ea-f6f93d2745be", + "name": "role list", + "protocol": "saml", + "protocolMapper": "saml-role-list-mapper", + "consentRequired": false, + "config": { + "single": "false", + "attribute.nameformat": "Basic", + "attribute.name": "Role" + } + } + ] + }, + { + "id": "c49d0064-73f8-461a-aa3c-fa025a415446", + "name": "roles", + "description": "OpenID Connect scope for add user roles to the access token", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "false", + "display.on.consent.screen": "true", + "consent.screen.text": "${rolesScopeConsentText}" + }, + "protocolMappers": [ + { + "id": "2ee26d6b-fad4-422f-9582-1646b964ab15", + "name": "audience resolve", + "protocol": "openid-connect", + "protocolMapper": "oidc-audience-resolve-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "access.token.claim": "true" + } + }, + { + "id": "d2c7786d-b1e2-4354-9969-941a9d9bc0aa", + "name": "realm roles", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-realm-role-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "multivalued": "true", + "user.attribute": "foo", + "access.token.claim": "true", + "claim.name": "realm_access.roles", + "jsonType.label": "String" + } + }, + { + "id": "e1f6b0f6-c829-4f78-a515-3fbcf37ad1ae", + "name": "client roles", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-client-role-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "multivalued": "true", + "user.attribute": "foo", + "access.token.claim": "true", + "claim.name": "resource_access.${client_id}.roles", + "jsonType.label": "String" + } + } + ] + }, + { + "id": "9cc28f08-d4c7-4aba-8c80-eededcd11a46", + "name": "phone", + "description": "OpenID Connect built-in scope: phone", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "true", + "display.on.consent.screen": "true", + "consent.screen.text": "${phoneScopeConsentText}" + }, + "protocolMappers": [ + { + "id": "e4e2fd1f-ada0-4483-a224-444aa6b2cefd", + "name": "phone number", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "phoneNumber", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "phone_number", + "jsonType.label": "String" + } + }, + { + "id": "4819d3cb-2655-4d8f-baf0-f1fa052c5742", + "name": "phone number verified", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "phoneNumberVerified", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "phone_number_verified", + "jsonType.label": "boolean" + } + } + ] + }, + { + "id": "cb33ebdb-cecb-4999-9d3c-ded4c8af97f8", + "name": "microprofile-jwt", + "description": "Microprofile - JWT built-in scope", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "true", + "display.on.consent.screen": "false" + }, + "protocolMappers": [ + { + "id": "4c83af62-84e3-4b2c-937a-d6b0ded5279b", + "name": "upn", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "username", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "upn", + "jsonType.label": "String" + } + }, + { + "id": "3be3f9d8-2ee6-43ff-92a3-374b1c39921e", + "name": "groups", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-realm-role-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "multivalued": "true", + "user.attribute": "foo", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "groups", + "jsonType.label": "String" + } + } + ] + }, + { + "id": "03b4e370-be59-41a3-9053-a970479b0ea0", + "name": "offline_access", + "description": "OpenID Connect built-in scope: offline_access", + "protocol": "openid-connect", + "attributes": { + "consent.screen.text": "${offlineAccessScopeConsentText}", + "display.on.consent.screen": "true" + } + }, + { + "id": "d5f27ae9-d3b3-404d-bc45-ce9aae728bef", + "name": "identity_provider", + "description": "", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "true", + "display.on.consent.screen": "true", + "gui.order": "", + "consent.screen.text": "" + }, + "protocolMappers": [ + { + "id": "361d74ff-711a-4621-92d8-59d99b8b34b2", + "name": "identity_provider", + "protocol": "openid-connect", + "protocolMapper": "oidc-usersessionmodel-note-mapper", + "consentRequired": false, + "config": { + "user.session.note": "identity_provider", + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "id.token.claim": "true", + "lightweight.claim": "false", + "access.token.claim": "true", + "claim.name": "identity_provider", + "jsonType.label": "String", + "access.tokenResponse.claim": "true" + } + } + ] + }, + { + "id": "053f9ffc-ab71-432d-b6b8-7cc1d5ee9fc7", + "name": "web-origins", + "description": "OpenID Connect scope for add allowed web origins to the access token", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "false", + "display.on.consent.screen": "false", + "consent.screen.text": "" + }, + "protocolMappers": [ + { + "id": "ff47565c-cfee-4aff-ace2-6101aced8863", + "name": "allowed web origins", + "protocol": "openid-connect", + "protocolMapper": "oidc-allowed-origins-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "access.token.claim": "true" + } + } + ] + }, + { + "id": "601c48ac-d1f9-4cdc-8268-d04871729536", + "name": "dmp_annotation", + "description": "", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "true", + "display.on.consent.screen": "true", + "gui.order": "", + "consent.screen.text": "" + }, + "protocolMappers": [ + { + "id": "12a858df-5ae6-4735-8ec1-dfc2b20d63a1", + "name": "Client Id Audience", + "protocol": "openid-connect", + "protocolMapper": "oidc-audience-mapper", + "consentRequired": false, + "config": { + "included.client.audience": "dmp_annotation", + "introspection.token.claim": "true", + "userinfo.token.claim": "false", + "id.token.claim": "false", + "lightweight.claim": "false", + "access.token.claim": "true" + } + } + ] + }, + { + "id": "708a6370-64e3-44e0-9138-15ca16de1f93", + "name": "dmp_notification", + "description": "", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "true", + "display.on.consent.screen": "true", + "gui.order": "", + "consent.screen.text": "" + }, + "protocolMappers": [ + { + "id": "fc20664f-1359-41f9-b127-f121e88edeb4", + "name": "Client Id Audience", + "protocol": "openid-connect", + "protocolMapper": "oidc-audience-mapper", + "consentRequired": false, + "config": { + "included.client.audience": "dmp_notification", + "id.token.claim": "false", + "lightweight.claim": "false", + "introspection.token.claim": "true", + "access.token.claim": "true" + } + } + ] + } + ], + "defaultDefaultClientScopes": [ + "role_list", + "profile", + "email", + "roles", + "web-origins", + "acr" + ], + "defaultOptionalClientScopes": [ + "offline_access", + "address", + "phone", + "microprofile-jwt", + "tenant_role" + ], + "browserSecurityHeaders": { + "contentSecurityPolicyReportOnly": "", + "xContentTypeOptions": "nosniff", + "referrerPolicy": "no-referrer", + "xRobotsTag": "none", + "xFrameOptions": "SAMEORIGIN", + "contentSecurityPolicy": "frame-src 'self'; frame-ancestors 'self'; object-src 'none';", + "xXSSProtection": "1; mode=block", + "strictTransportSecurity": "max-age=31536000; includeSubDomains" + }, + "smtpServer": { + "replyToDisplayName": "", + "starttls": "true", + "auth": "true", + "envelopeFrom": "", + "ssl": "false", + "password": "**********", + "port": "587", + "host": "smtp.office365.com", + "replyTo": "", + "from": "no-reply@openaire.eu", + "fromDisplayName": "", + "user": "no-reply@openaire.eu" + }, + "eventsEnabled": true, + "eventsListeners": [ + "jboss-logging" + ], + "enabledEventTypes": [ + "UPDATE_CONSENT_ERROR", + "UPDATE_TOTP", + "PERMISSION_TOKEN_ERROR", + "IDENTITY_PROVIDER_RETRIEVE_TOKEN_ERROR", + "IMPERSONATE_ERROR", + "CUSTOM_REQUIRED_ACTION", + "RESTART_AUTHENTICATION", + "CLIENT_INFO", + "IMPERSONATE", + "LOGIN", + "CLIENT_INITIATED_ACCOUNT_LINKING", + "OAUTH2_EXTENSION_GRANT", + "USER_DISABLED_BY_PERMANENT_LOCKOUT", + "USER_DISABLED_BY_TEMPORARY_LOCKOUT_ERROR", + "TOKEN_EXCHANGE", + "REGISTER", + "DELETE_ACCOUNT_ERROR", + "IDENTITY_PROVIDER_LINK_ACCOUNT", + "INTROSPECT_TOKEN_ERROR", + "USER_DISABLED_BY_TEMPORARY_LOCKOUT", + "DELETE_ACCOUNT", + "UPDATE_PASSWORD", + "IDENTITY_PROVIDER_FIRST_LOGIN", + "VERIFY_EMAIL", + "CLIENT_LOGIN_ERROR", + "RESTART_AUTHENTICATION_ERROR", + "EXECUTE_ACTIONS", + "REMOVE_FEDERATED_IDENTITY_ERROR", + "TOKEN_EXCHANGE_ERROR", + "UNREGISTER_NODE", + "SEND_IDENTITY_PROVIDER_LINK_ERROR", + "USER_INFO_REQUEST_ERROR", + "EXECUTE_ACTION_TOKEN_ERROR", + "OAUTH2_EXTENSION_GRANT_ERROR", + "SEND_VERIFY_EMAIL", + "IDENTITY_PROVIDER_RESPONSE", + "EXECUTE_ACTIONS_ERROR", + "IDENTITY_PROVIDER_RETRIEVE_TOKEN", + "OAUTH2_DEVICE_CODE_TO_TOKEN", + "USER_DISABLED_BY_PERMANENT_LOCKOUT_ERROR", + "UNREGISTER_NODE_ERROR", + "VALIDATE_ACCESS_TOKEN_ERROR", + "OAUTH2_DEVICE_VERIFY_USER_CODE_ERROR", + "REVOKE_GRANT_ERROR", + "UPDATE_EMAIL_ERROR", + "UPDATE_PROFILE", + "USER_INFO_REQUEST", + "SEND_IDENTITY_PROVIDER_LINK", + "SEND_VERIFY_EMAIL_ERROR", + "CLIENT_INITIATED_ACCOUNT_LINKING_ERROR", + "OAUTH2_DEVICE_AUTH_ERROR", + "REMOVE_TOTP_ERROR", + "VERIFY_EMAIL_ERROR", + "CLIENT_UPDATE", + "UPDATE_TOTP_ERROR", + "VERIFY_PROFILE", + "GRANT_CONSENT_ERROR", + "SEND_RESET_PASSWORD", + "GRANT_CONSENT", + "REGISTER_NODE_ERROR", + "VERIFY_PROFILE_ERROR", + "REMOVE_TOTP", + "REVOKE_GRANT", + "LOGIN_ERROR", + "CLIENT_LOGIN", + "RESET_PASSWORD_ERROR", + "CODE_TO_TOKEN_ERROR", + "OAUTH2_DEVICE_CODE_TO_TOKEN_ERROR", + "VALIDATE_ACCESS_TOKEN", + "UPDATE_PROFILE_ERROR", + "OAUTH2_DEVICE_VERIFY_USER_CODE", + "UPDATE_PASSWORD_ERROR", + "IDENTITY_PROVIDER_LOGIN", + "AUTHREQID_TO_TOKEN", + "LOGOUT", + "CLIENT_INFO_ERROR", + "CLIENT_REGISTER", + "PUSHED_AUTHORIZATION_REQUEST", + "REFRESH_TOKEN", + "INTROSPECT_TOKEN", + "CLIENT_DELETE", + "FEDERATED_IDENTITY_LINK_ERROR", + "CLIENT_DELETE_ERROR", + "PERMISSION_TOKEN", + "REGISTER_NODE", + "INVALID_SIGNATURE", + "PUSHED_AUTHORIZATION_REQUEST_ERROR", + "OAUTH2_DEVICE_AUTH", + "REMOVE_FEDERATED_IDENTITY", + "IDENTITY_PROVIDER_POST_LOGIN", + "IDENTITY_PROVIDER_LINK_ACCOUNT_ERROR", + "UPDATE_EMAIL", + "REGISTER_ERROR", + "EXECUTE_ACTION_TOKEN", + "LOGOUT_ERROR", + "CLIENT_UPDATE_ERROR", + "AUTHREQID_TO_TOKEN_ERROR", + "INVALID_SIGNATURE_ERROR", + "CLIENT_REGISTER_ERROR", + "FEDERATED_IDENTITY_LINK", + "IDENTITY_PROVIDER_RESPONSE_ERROR", + "IDENTITY_PROVIDER_LOGIN_ERROR", + "RESET_PASSWORD", + "UPDATE_CONSENT", + "SEND_RESET_PASSWORD_ERROR", + "REFRESH_TOKEN_ERROR", + "CUSTOM_REQUIRED_ACTION_ERROR", + "IDENTITY_PROVIDER_POST_LOGIN_ERROR", + "CODE_TO_TOKEN", + "IDENTITY_PROVIDER_FIRST_LOGIN_ERROR" + ], + "adminEventsEnabled": true, + "adminEventsDetailsEnabled": false, + "identityProviders": [ + { + "alias": "openaire", + "displayName": "OpenAIRE AAI Beta", + "internalId": "ea26795f-6c3c-49e1-9be6-93ffafe62ef4", + "providerId": "keycloak-oidc", + "enabled": true, + "updateProfileFirstLoginMode": "on", + "trustEmail": false, + "storeToken": false, + "addReadTokenRoleOnCreate": false, + "authenticateByDefault": false, + "linkOnly": false, + "firstBrokerLoginFlowAlias": "first broker login", + "config": { + "tokenUrl": "https://beta.aai.openaire.eu/auth/realms/openaire/protocol/openid-connect/token", + "acceptsPromptNoneForwardFromClient": "false", + "jwksUrl": "https://beta.aai.openaire.eu/auth/realms/openaire/protocol/openid-connect/certs", + "isAccessTokenJWT": "false", + "filteredByClaim": "false", + "backchannelSupported": "false", + "issuer": "https://beta.aai.openaire.eu/auth/realms/openaire", + "loginHint": "false", + "clientAuthMethod": "client_secret_post", + "syncMode": "IMPORT", + "clientSecret": "**********", + "allowedClockSkew": "0", + "userInfoUrl": "https://beta.aai.openaire.eu/auth/realms/openaire/protocol/openid-connect/userinfo", + "validateSignature": "true", + "hideOnLoginPage": "false", + "clientId": "11ec4125-b661-4b98-bc29-62ac61e97ee9", + "uiLocales": "false", + "disableNonce": "false", + "useJwksUrl": "true", + "sendClientIdOnLogout": "false", + "metadataDescriptorUrl": "https://beta.aai.openaire.eu/auth/realms/openaire/.well-known/openid-configuration", + "pkceEnabled": "false", + "authorizationUrl": "https://beta.aai.openaire.eu/auth/realms/openaire/protocol/openid-connect/auth", + "disableUserInfo": "false", + "logoutUrl": "https://beta.aai.openaire.eu/auth/realms/openaire/protocol/openid-connect/logout", + "sendIdTokenOnLogout": "true", + "passMaxAge": "false" + } + }, + { + "alias": "google", + "internalId": "4cfe51f3-fe85-459d-9a49-43614b965404", + "providerId": "google", + "enabled": true, + "updateProfileFirstLoginMode": "on", + "trustEmail": false, + "storeToken": false, + "addReadTokenRoleOnCreate": false, + "authenticateByDefault": false, + "linkOnly": false, + "firstBrokerLoginFlowAlias": "first broker login", + "config": { + "hideOnLoginPage": "false", + "clientId": "596924546661-83nhl986pnrpug5h624i5kptuao03dcd.apps.googleusercontent.com", + "acceptsPromptNoneForwardFromClient": "false", + "disableUserInfo": "false", + "filteredByClaim": "false", + "syncMode": "IMPORT", + "clientSecret": "**********" + } + } + ], + "identityProviderMappers": [ + { + "id": "b2001c5a-bcd4-4447-8c63-5b9cfef84766", + "name": " identity_provider", + "identityProviderAlias": "openaire", + "identityProviderMapper": "oidc-user-session-note-idp-mapper", + "config": { + "claims": "[{\"key\":\"identity_provider\",\"value\":\"openaire\"}]", + "syncMode": "FORCE" + } + }, + { + "id": "98f6c565-cf6e-426a-b89c-969f36e1ea23", + "name": "identity_provider", + "identityProviderAlias": "google", + "identityProviderMapper": "hardcoded-user-session-attribute-idp-mapper", + "config": { + "attribute.value": "google", + "syncMode": "FORCE", + "attribute": "identity_provider" + } + } + ], + "components": { + "org.keycloak.services.clientregistration.policy.ClientRegistrationPolicy": [ + { + "id": "c251413a-d0d1-4585-a32d-fe289e391b22", + "name": "Full Scope Disabled", + "providerId": "scope", + "subType": "anonymous", + "subComponents": {}, + "config": {} + }, + { + "id": "be40c111-2cda-420e-9ed8-e2b4a7ec4a0f", + "name": "Trusted Hosts", + "providerId": "trusted-hosts", + "subType": "anonymous", + "subComponents": {}, + "config": { + "host-sending-registration-request-must-match": [ + "true" + ], + "client-uris-must-match": [ + "true" + ] + } + }, + { + "id": "2bf6d537-32e6-43f0-bac4-58a5621ca242", + "name": "Allowed Client Scopes", + "providerId": "allowed-client-templates", + "subType": "authenticated", + "subComponents": {}, + "config": { + "allow-default-scopes": [ + "true" + ] + } + }, + { + "id": "62632e2d-bb44-4744-9eea-18270e7b5eef", + "name": "Allowed Protocol Mapper Types", + "providerId": "allowed-protocol-mappers", + "subType": "authenticated", + "subComponents": {}, + "config": { + "allowed-protocol-mapper-types": [ + "oidc-full-name-mapper", + "oidc-usermodel-property-mapper", + "saml-role-list-mapper", + "oidc-usermodel-attribute-mapper", + "oidc-address-mapper", + "oidc-sha256-pairwise-sub-mapper", + "saml-user-attribute-mapper", + "saml-user-property-mapper" + ] + } + }, + { + "id": "2d6bc782-e465-47be-a4a8-7e0307c18103", + "name": "Allowed Protocol Mapper Types", + "providerId": "allowed-protocol-mappers", + "subType": "anonymous", + "subComponents": {}, + "config": { + "allowed-protocol-mapper-types": [ + "oidc-usermodel-property-mapper", + "oidc-full-name-mapper", + "oidc-usermodel-attribute-mapper", + "saml-user-property-mapper", + "saml-user-attribute-mapper", + "saml-role-list-mapper", + "oidc-address-mapper", + "oidc-sha256-pairwise-sub-mapper" + ] + } + }, + { + "id": "54cb1bcf-526c-4840-862d-23e436f70399", + "name": "Consent Required", + "providerId": "consent-required", + "subType": "anonymous", + "subComponents": {}, + "config": {} + }, + { + "id": "a6df9677-9684-4791-bec2-7ac39dded350", + "name": "Allowed Client Scopes", + "providerId": "allowed-client-templates", + "subType": "anonymous", + "subComponents": {}, + "config": { + "allow-default-scopes": [ + "true" + ] + } + }, + { + "id": "843d3c05-2814-44ba-bc69-6680e7a58ded", + "name": "Max Clients Limit", + "providerId": "max-clients", + "subType": "anonymous", + "subComponents": {}, + "config": { + "max-clients": [ + "200" + ] + } + } + ], + "org.keycloak.keys.KeyProvider": [ + { + "id": "7758a18b-e672-499d-9816-5a2361ae8e47", + "name": "rsa-generated", + "providerId": "rsa-generated", + "subComponents": {}, + "config": { + "priority": [ + "100" + ] + } + }, + { + "id": "ae89ccbb-7c9a-42bd-8d78-1f0acd65473d", + "name": "aes-generated", + "providerId": "aes-generated", + "subComponents": {}, + "config": { + "priority": [ + "100" + ] + } + }, + { + "id": "da8ec80f-d86c-4085-b8eb-90a69d721a30", + "name": "rsa-enc-generated", + "providerId": "rsa-enc-generated", + "subComponents": {}, + "config": { + "priority": [ + "100" + ], + "algorithm": [ + "RSA-OAEP" + ] + } + }, + { + "id": "4152446e-df97-425c-a0e2-e55b6035f896", + "name": "hmac-generated-hs512", + "providerId": "hmac-generated", + "subComponents": {}, + "config": { + "priority": [ + "100" + ], + "algorithm": [ + "HS512" + ] + } + } + ] + }, + "internationalizationEnabled": false, + "supportedLocales": [], + "authenticationFlows": [ + { + "id": "ea0de871-80f7-43c5-8265-8c60cf5ef7cf", + "alias": "Account verification options", + "description": "Method with which to verity the existing account", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "idp-email-verification", + "authenticatorFlow": false, + "requirement": "ALTERNATIVE", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticatorFlow": true, + "requirement": "ALTERNATIVE", + "priority": 20, + "autheticatorFlow": true, + "flowAlias": "Verify Existing Account by Re-authentication", + "userSetupAllowed": false + } + ] + }, + { + "id": "c3ec62ea-bcba-459a-bd45-790243b4d80b", + "alias": "Browser - Conditional OTP", + "description": "Flow to determine if the OTP is required for the authentication", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "conditional-user-configured", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "auth-otp-form", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + } + ] + }, + { + "id": "042807b5-76be-445b-9b4a-cb56ffacdff5", + "alias": "Direct Grant - Conditional OTP", + "description": "Flow to determine if the OTP is required for the authentication", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "conditional-user-configured", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "direct-grant-validate-otp", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + } + ] + }, + { + "id": "1f69e4f1-9b1e-4215-93fe-47ad8cb1d1ac", + "alias": "First broker login - Conditional OTP", + "description": "Flow to determine if the OTP is required for the authentication", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "conditional-user-configured", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "auth-otp-form", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + } + ] + }, + { + "id": "d0d1ce23-337c-48b1-b9e4-790f9f1e538d", + "alias": "Handle Existing Account", + "description": "Handle what to do if there is existing account with same email/username like authenticated identity provider", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "idp-confirm-link", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticatorFlow": true, + "requirement": "REQUIRED", + "priority": 20, + "autheticatorFlow": true, + "flowAlias": "Account verification options", + "userSetupAllowed": false + } + ] + }, + { + "id": "ce420ea3-db5a-4715-97c3-43083ec45685", + "alias": "Reset - Conditional OTP", + "description": "Flow to determine if the OTP should be reset or not. Set to REQUIRED to force.", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "conditional-user-configured", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "reset-otp", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + } + ] + }, + { + "id": "d485b957-ce85-463a-8334-2091188a40ca", + "alias": "User creation or linking", + "description": "Flow for the existing/non-existing user alternatives", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticatorConfig": "create unique user config", + "authenticator": "idp-create-user-if-unique", + "authenticatorFlow": false, + "requirement": "ALTERNATIVE", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticatorFlow": true, + "requirement": "ALTERNATIVE", + "priority": 20, + "autheticatorFlow": true, + "flowAlias": "Handle Existing Account", + "userSetupAllowed": false + } + ] + }, + { + "id": "c7308ba2-0f15-48f4-a4d3-bff7d9f69b30", + "alias": "Verify Existing Account by Re-authentication", + "description": "Reauthentication of existing account", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "idp-username-password-form", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticatorFlow": true, + "requirement": "CONDITIONAL", + "priority": 20, + "autheticatorFlow": true, + "flowAlias": "First broker login - Conditional OTP", + "userSetupAllowed": false + } + ] + }, + { + "id": "15eb1b00-d355-46d5-b0d3-cd91ee18965f", + "alias": "browser", + "description": "browser based authentication", + "providerId": "basic-flow", + "topLevel": true, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "auth-cookie", + "authenticatorFlow": false, + "requirement": "ALTERNATIVE", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "auth-spnego", + "authenticatorFlow": false, + "requirement": "DISABLED", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "identity-provider-redirector", + "authenticatorFlow": false, + "requirement": "ALTERNATIVE", + "priority": 25, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticatorFlow": true, + "requirement": "ALTERNATIVE", + "priority": 30, + "autheticatorFlow": true, + "flowAlias": "forms", + "userSetupAllowed": false + } + ] + }, + { + "id": "70aa3e73-6037-4e9c-bd29-6d067fa76906", + "alias": "clients", + "description": "Base authentication for clients", + "providerId": "client-flow", + "topLevel": true, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "client-secret", + "authenticatorFlow": false, + "requirement": "ALTERNATIVE", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "client-jwt", + "authenticatorFlow": false, + "requirement": "ALTERNATIVE", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "client-secret-jwt", + "authenticatorFlow": false, + "requirement": "ALTERNATIVE", + "priority": 30, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "client-x509", + "authenticatorFlow": false, + "requirement": "ALTERNATIVE", + "priority": 40, + "autheticatorFlow": false, + "userSetupAllowed": false + } + ] + }, + { + "id": "c1203bc8-8e48-47c5-aa84-ee94f2c808ee", + "alias": "direct grant", + "description": "OpenID Connect Resource Owner Grant", + "providerId": "basic-flow", + "topLevel": true, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "direct-grant-validate-username", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "direct-grant-validate-password", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticatorFlow": true, + "requirement": "CONDITIONAL", + "priority": 30, + "autheticatorFlow": true, + "flowAlias": "Direct Grant - Conditional OTP", + "userSetupAllowed": false + } + ] + }, + { + "id": "21436674-8161-4a8b-95a9-eae479b0a239", + "alias": "docker auth", + "description": "Used by Docker clients to authenticate against the IDP", + "providerId": "basic-flow", + "topLevel": true, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "docker-http-basic-authenticator", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + } + ] + }, + { + "id": "4103b288-fde7-4bec-96d0-cefedbee5c97", + "alias": "first broker login", + "description": "Actions taken after first broker login with identity provider account, which is not yet linked to any Keycloak account", + "providerId": "basic-flow", + "topLevel": true, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticatorConfig": "review profile config", + "authenticator": "idp-review-profile", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticatorFlow": true, + "requirement": "REQUIRED", + "priority": 20, + "autheticatorFlow": true, + "flowAlias": "User creation or linking", + "userSetupAllowed": false + } + ] + }, + { + "id": "675b7446-5346-4d6f-917d-6f68799cdeb1", + "alias": "forms", + "description": "Username, password, otp and other auth forms.", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "auth-username-password-form", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticatorFlow": true, + "requirement": "CONDITIONAL", + "priority": 20, + "autheticatorFlow": true, + "flowAlias": "Browser - Conditional OTP", + "userSetupAllowed": false + } + ] + }, + { + "id": "5dbb9de2-d4b9-41ea-8b5c-3bc4992d259e", + "alias": "registration", + "description": "registration flow", + "providerId": "basic-flow", + "topLevel": true, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "registration-page-form", + "authenticatorFlow": true, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": true, + "flowAlias": "registration form", + "userSetupAllowed": false + } + ] + }, + { + "id": "49943618-291e-4449-a900-95a653d1e682", + "alias": "registration form", + "description": "registration form", + "providerId": "form-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "registration-user-creation", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "registration-password-action", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 50, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "registration-recaptcha-action", + "authenticatorFlow": false, + "requirement": "DISABLED", + "priority": 60, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "registration-terms-and-conditions", + "authenticatorFlow": false, + "requirement": "DISABLED", + "priority": 70, + "autheticatorFlow": false, + "userSetupAllowed": false + } + ] + }, + { + "id": "5f460d69-6953-430e-bbc3-99f2dbf5fa66", + "alias": "reset credentials", + "description": "Reset credentials for a user if they forgot their password or something", + "providerId": "basic-flow", + "topLevel": true, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "reset-credentials-choose-user", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "reset-credential-email", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "reset-password", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 30, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticatorFlow": true, + "requirement": "CONDITIONAL", + "priority": 40, + "autheticatorFlow": true, + "flowAlias": "Reset - Conditional OTP", + "userSetupAllowed": false + } + ] + }, + { + "id": "56d2dfdf-00e6-41ec-9528-3d18032038cf", + "alias": "saml ecp", + "description": "SAML ECP Profile Authentication Flow", + "providerId": "basic-flow", + "topLevel": true, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "http-basic-authenticator", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + } + ] + } + ], + "authenticatorConfig": [ + { + "id": "84811dd1-affd-4661-82cc-bef652a72aa0", + "alias": "create unique user config", + "config": { + "require.password.update.after.registration": "false" + } + }, + { + "id": "d02673de-ae3d-49fc-b764-668219a46137", + "alias": "review profile config", + "config": { + "update.profile.on.first.login": "missing" + } + } + ], + "requiredActions": [ + { + "alias": "CONFIGURE_TOTP", + "name": "Configure OTP", + "providerId": "CONFIGURE_TOTP", + "enabled": true, + "defaultAction": false, + "priority": 10, + "config": {} + }, + { + "alias": "TERMS_AND_CONDITIONS", + "name": "Terms and Conditions", + "providerId": "TERMS_AND_CONDITIONS", + "enabled": false, + "defaultAction": false, + "priority": 20, + "config": {} + }, + { + "alias": "UPDATE_PASSWORD", + "name": "Update Password", + "providerId": "UPDATE_PASSWORD", + "enabled": true, + "defaultAction": false, + "priority": 30, + "config": {} + }, + { + "alias": "UPDATE_PROFILE", + "name": "Update Profile", + "providerId": "UPDATE_PROFILE", + "enabled": true, + "defaultAction": false, + "priority": 40, + "config": {} + }, + { + "alias": "VERIFY_EMAIL", + "name": "Verify Email", + "providerId": "VERIFY_EMAIL", + "enabled": true, + "defaultAction": false, + "priority": 50, + "config": {} + }, + { + "alias": "delete_account", + "name": "Delete Account", + "providerId": "delete_account", + "enabled": false, + "defaultAction": false, + "priority": 60, + "config": {} + }, + { + "alias": "webauthn-register", + "name": "Webauthn Register", + "providerId": "webauthn-register", + "enabled": true, + "defaultAction": false, + "priority": 70, + "config": {} + }, + { + "alias": "webauthn-register-passwordless", + "name": "Webauthn Register Passwordless", + "providerId": "webauthn-register-passwordless", + "enabled": true, + "defaultAction": false, + "priority": 80, + "config": {} + }, + { + "alias": "VERIFY_PROFILE", + "name": "Verify Profile", + "providerId": "VERIFY_PROFILE", + "enabled": true, + "defaultAction": false, + "priority": 90, + "config": {} + }, + { + "alias": "update_user_locale", + "name": "Update User Locale", + "providerId": "update_user_locale", + "enabled": true, + "defaultAction": false, + "priority": 1000, + "config": {} + } + ], + "browserFlow": "browser", + "registrationFlow": "registration", + "directGrantFlow": "direct grant", + "resetCredentialsFlow": "reset credentials", + "clientAuthenticationFlow": "clients", + "dockerAuthenticationFlow": "docker auth", + "firstBrokerLoginFlow": "first broker login", + "attributes": { + "cibaBackchannelTokenDeliveryMode": "poll", + "cibaAuthRequestedUserHint": "login_hint", + "oauth2DevicePollingInterval": "5", + "clientOfflineSessionMaxLifespan": "0", + "clientSessionIdleTimeout": "0", + "clientOfflineSessionIdleTimeout": "0", + "cibaInterval": "5", + "realmReusableOtpCode": "false", + "cibaExpiresIn": "120", + "oauth2DeviceCodeLifespan": "600", + "parRequestUriLifespan": "60", + "clientSessionMaxLifespan": "0", + "frontendUrl": "", + "acr.loa.map": "{}", + "adminEventsExpiration": "" + }, + "keycloakVersion": "24.0.2", + "userManagedAccessAllowed": false, + "clientProfiles": { + "profiles": [] + }, + "clientPolicies": { + "policies": [] + } +} \ No newline at end of file diff --git a/deployment/keycloak/imports/opencdmp-realm.jsonZone.Identifier b/deployment/keycloak/imports/opencdmp-realm.jsonZone.Identifier new file mode 100644 index 000000000..5bbbc4340 --- /dev/null +++ b/deployment/keycloak/imports/opencdmp-realm.jsonZone.Identifier @@ -0,0 +1,3 @@ +[ZoneTransfer] +ZoneId=3 +HostUrl=http://host.docker.internal:8081/keycloak diff --git a/deployment/keycloak/keycloak.env b/deployment/keycloak/keycloak.env index 59a51e325..ac4880279 100644 --- a/deployment/keycloak/keycloak.env +++ b/deployment/keycloak/keycloak.env @@ -1,18 +1,18 @@ ##################### KEYCLOAK ######################### # DB related configuraation KC_DB=postgres -KC_DB_URL_HOST=opendmp.postgres +KC_DB_URL_HOST=opencdmp.postgres KC_DB_SCHEMA=public KC_DB_URL_DATABASE=keycloak KC_DB_PORT=5432 -KC_DB_USERNAME=keycloak-psql -KC_DB_PASSWORD=keycloak-admin +KC_DB_USERNAME=postgres +KC_DB_PASSWORD=postgres-admin #Keycloak related configuration KEYCLOAK_ADMIN=keycloak-admin KEYCLOAK_ADMIN_PASSWORD=admin -KC_HOSTNAME_URL=http://localhost:8082/keycloak -KC_HOSTNAME_ADMIN_URL=http://localhost:8082/keycloak +KC_HOSTNAME_URL=http://host.docker.internal:8081/keycloak +KC_HOSTNAME_ADMIN_URL=http://host.docker.internal:8081/keycloak KC_HTTP_RELATIVE_PATH=/keycloak KC_PROXY_HEADERS=xforwarded KC_HOSTNAME_STRICT_HTTPS=false diff --git a/deployment/opendmp/annotation/config/app.env b/deployment/opencdmp/annotation/config/app.env similarity index 56% rename from deployment/opendmp/annotation/config/app.env rename to deployment/opencdmp/annotation/config/app.env index 18c688789..f4731af45 100644 --- a/deployment/opendmp/annotation/config/app.env +++ b/deployment/opencdmp/annotation/config/app.env @@ -1,7 +1,7 @@ #DB -DB_CONNECTION_STRING=jdbc:postgresql://opendmp.postgres:5432/opendmp -DB_USER=opendmp-psql -DB_PASSWORD=opendmp-admin +DB_CONNECTION_STRING=jdbc:postgresql://opencdmp.postgres:5432/opencdmp +DB_USER=postgres +DB_PASSWORD=postgres-admin #Server WEB_PORT=8087 @@ -14,11 +14,11 @@ IDP_APIKEY_SCOPE=dmp_annotation-dedicated IDP_OPAQUE_CLIENT_ID= IDP_OPAQUE_CLIENT_SECRET= -IDP_ISSUER_URI=http://localhost:8082/keycloak/realms/OpenDMP -QUEUE_APP_ID=opendmp-annotation-staging +IDP_ISSUER_URI=http://host.docker.internal:8081/keycloak/realms/OpenCDMP +QUEUE_APP_ID=opencdmp-annotation-dev #RABBITMQ -RABBIT_HOST=opendmp.rabbitmq +RABBIT_HOST=opencdmp.rabbitmq RABBIT_PORT=5672 RABBIT_USER=guest RABBIT_PASS=guest diff --git a/deployment/opendmp/annotation/config/cipher-test.yml b/deployment/opencdmp/annotation/config/cipher-test.yml similarity index 100% rename from deployment/opendmp/annotation/config/cipher-test.yml rename to deployment/opencdmp/annotation/config/cipher-test.yml diff --git a/deployment/opencdmp/annotation/config/cors-test.yml b/deployment/opencdmp/annotation/config/cors-test.yml new file mode 100644 index 000000000..8e4483ef5 --- /dev/null +++ b/deployment/opencdmp/annotation/config/cors-test.yml @@ -0,0 +1,3 @@ +web: + cors: + allowed-origins: [ http://host.docker.internal:8081 ] diff --git a/deployment/opendmp/annotation/config/db-test.yml b/deployment/opencdmp/annotation/config/db-test.yml similarity index 100% rename from deployment/opendmp/annotation/config/db-test.yml rename to deployment/opencdmp/annotation/config/db-test.yml diff --git a/deployment/opendmp/annotation/config/email-test.yml b/deployment/opencdmp/annotation/config/email-test.yml similarity index 100% rename from deployment/opendmp/annotation/config/email-test.yml rename to deployment/opencdmp/annotation/config/email-test.yml diff --git a/deployment/opendmp/annotation/config/logging-test.yml b/deployment/opencdmp/annotation/config/logging-test.yml similarity index 100% rename from deployment/opendmp/annotation/config/logging-test.yml rename to deployment/opencdmp/annotation/config/logging-test.yml diff --git a/deployment/opendmp/annotation/config/logging/logback-test.xml b/deployment/opencdmp/annotation/config/logging/logback-test.xml similarity index 100% rename from deployment/opendmp/annotation/config/logging/logback-test.xml rename to deployment/opencdmp/annotation/config/logging/logback-test.xml diff --git a/deployment/opendmp/annotation/config/queue-test.yml b/deployment/opencdmp/annotation/config/queue-test.yml similarity index 100% rename from deployment/opendmp/annotation/config/queue-test.yml rename to deployment/opencdmp/annotation/config/queue-test.yml diff --git a/deployment/opendmp/annotation/config/security-test.yml b/deployment/opencdmp/annotation/config/security-test.yml similarity index 100% rename from deployment/opendmp/annotation/config/security-test.yml rename to deployment/opencdmp/annotation/config/security-test.yml diff --git a/deployment/opendmp/annotation/config/server-test.yml b/deployment/opencdmp/annotation/config/server-test.yml similarity index 100% rename from deployment/opendmp/annotation/config/server-test.yml rename to deployment/opencdmp/annotation/config/server-test.yml diff --git a/deployment/opendmp/annotation/config/tenant-test.yml b/deployment/opencdmp/annotation/config/tenant-test.yml similarity index 100% rename from deployment/opendmp/annotation/config/tenant-test.yml rename to deployment/opencdmp/annotation/config/tenant-test.yml diff --git a/deployment/opendmp/annotation/messages/messages.properties b/deployment/opencdmp/annotation/messages/messages.properties similarity index 100% rename from deployment/opendmp/annotation/messages/messages.properties rename to deployment/opencdmp/annotation/messages/messages.properties diff --git a/deployment/opendmp/annotation/messages/messages_el.properties b/deployment/opencdmp/annotation/messages/messages_el.properties similarity index 100% rename from deployment/opendmp/annotation/messages/messages_el.properties rename to deployment/opencdmp/annotation/messages/messages_el.properties diff --git a/deployment/opendmp/backend/Semantics.json b/deployment/opencdmp/backend/Semantics.json similarity index 100% rename from deployment/opendmp/backend/Semantics.json rename to deployment/opencdmp/backend/Semantics.json diff --git a/deployment/opendmp/backend/certificates/client-identity.p12 b/deployment/opencdmp/backend/certificates/client-identity.p12 similarity index 100% rename from deployment/opendmp/backend/certificates/client-identity.p12 rename to deployment/opencdmp/backend/certificates/client-identity.p12 diff --git a/deployment/opendmp/backend/certificates/elasticsearch_dev04.crt b/deployment/opencdmp/backend/certificates/elasticsearch_dev04.crt similarity index 100% rename from deployment/opendmp/backend/certificates/elasticsearch_dev04.crt rename to deployment/opencdmp/backend/certificates/elasticsearch_dev04.crt diff --git a/deployment/opencdmp/backend/config/app.env b/deployment/opencdmp/backend/config/app.env new file mode 100644 index 000000000..242d886cd --- /dev/null +++ b/deployment/opencdmp/backend/config/app.env @@ -0,0 +1,57 @@ +#DB +DB_URL=jdbc:postgresql://opencdmp.postgres:5432/opencdmp +DB_USER=postgres +DB_PASS=postgres-admin + +#ELASTICSEARCH +ELASTIC_ENABLED=true +ELASTIC_USE_SSL=false +ELASTIC_HOST=opencdmp.elasticsearch:9200 +ELASTIC_USER= opencdmp-api-test +ELASTIC_PASS=your_password_here +ELASTIC_DMP_INDEX=plans +ELASTIC_DESCRIPTION_INDEX=descriptions + +#SERVER +WEB_PORT=8081 + +#GOTENBERG +PDF_CONVERTER_URL=http://opencdmp.gotenberg:3000/ + +#STORAGE +FILE_STORAGE=/storage + +#RABBITMQ +RABBIT_HOST=opencdmp.rabbitmq +RABBIT_PORT=5672 +RABBIT_USER=guest +RABBIT_PASS=guest + +#KEYCLOAK +KEYCLOAK_API_SERVER_URL=http://host.docker.internal:8081/keycloak +KEYCLOAK_API_REALM=OpenCDMP +KEYCLOAK_API_USERNAME=keycloak-admin +KEYCLOAK_API_PASSWORD=admin +KEYCLOAK_API_CLIENT_ID=dmp_web +KEYCLOAK_API_CLIENT_SECRET=web_secret + +#SECURITY +IDP_ISSUER_URI=http://host.docker.internal:8081/keycloak/realms/OpenCDMP +IDP_ISSUER_URI_TOKEN=http://host.docker.internal:8081/keycloak/realms/OpenCDMP/protocol/openid-connect/token +IDP_APIKEY_CLIENT_ID=dmp_web +IDP_APIKEY_CLIENT_SECRET=web_secret +IDP_APIKEY_SCOPE=dmp_plugins + +#METRICS +IDP_APIKEY_CLIENT_ID_UUID=c82150e9-a9e5-4a5f-bd0f-5f25460b3e08 + +QUEUE_APP_ID=opencdmp-api-dev + +#EMAIL +MAIL_HOST=smtp.office365.com +MAIL_PORT=587 +MAIL_USERNAME= +MAIL_PASSWORD= +MAIL_AUTH=false +MAIL_TLS=true +MAIL_ADDRESS=dmp_web@admin.gr \ No newline at end of file diff --git a/deployment/opencdmp/backend/config/cors-test.yml b/deployment/opencdmp/backend/config/cors-test.yml new file mode 100644 index 000000000..8e4483ef5 --- /dev/null +++ b/deployment/opencdmp/backend/config/cors-test.yml @@ -0,0 +1,3 @@ +web: + cors: + allowed-origins: [ http://host.docker.internal:8081 ] diff --git a/deployment/opendmp/backend/config/db-test.yml b/deployment/opencdmp/backend/config/db-test.yml similarity index 100% rename from deployment/opendmp/backend/config/db-test.yml rename to deployment/opencdmp/backend/config/db-test.yml diff --git a/deployment/opendmp/backend/config/deposit-test.yml b/deployment/opencdmp/backend/config/deposit-test.yml similarity index 79% rename from deployment/opendmp/backend/config/deposit-test.yml rename to deployment/opencdmp/backend/config/deposit-test.yml index 6fb009ed0..5f7355538 100644 --- a/deployment/opendmp/backend/config/deposit-test.yml +++ b/deployment/opencdmp/backend/config/deposit-test.yml @@ -1,6 +1,6 @@ deposit: sources: - - url: http://opendmp.zenodo:8080 + - url: http://opencdmp.zenodo:8080 repositoryId: Zenodo pdfTransformerId: docx-file-transformer rdaTransformerId: rda-file-transformer diff --git a/deployment/opendmp/backend/config/elasticsearch-test.yml b/deployment/opencdmp/backend/config/elasticsearch-test.yml similarity index 100% rename from deployment/opendmp/backend/config/elasticsearch-test.yml rename to deployment/opencdmp/backend/config/elasticsearch-test.yml diff --git a/deployment/opendmp/backend/config/file-transformer-test.yml b/deployment/opencdmp/backend/config/file-transformer-test.yml similarity index 74% rename from deployment/opendmp/backend/config/file-transformer-test.yml rename to deployment/opencdmp/backend/config/file-transformer-test.yml index eae71718e..9a8ad6d2e 100644 --- a/deployment/opendmp/backend/config/file-transformer-test.yml +++ b/deployment/opencdmp/backend/config/file-transformer-test.yml @@ -1,12 +1,12 @@ file-transformer: sources: - - url: http://opendmp.file.transformer.docx:8080 + - url: http://opencdmp.file.transformer.docx:8080 transformerId: docx-file-transformer issuer-url: ${IDP_ISSUER_URI_TOKEN} client-id: ${IDP_APIKEY_CLIENT_ID} client-secret: ${IDP_APIKEY_CLIENT_SECRET} scope: ${IDP_APIKEY_SCOPE} - - url: http://opendmp.file.transformer.rdajson:8080 + - url: http://opencdmp.file.transformer.rdajson:8080 transformerId: rda-file-transformer issuer-url: ${IDP_ISSUER_URI_TOKEN} client-id: ${IDP_APIKEY_CLIENT_ID} diff --git a/deployment/opendmp/backend/config/keycloak-test.yml b/deployment/opencdmp/backend/config/keycloak-test.yml similarity index 91% rename from deployment/opendmp/backend/config/keycloak-test.yml rename to deployment/opencdmp/backend/config/keycloak-test.yml index a08f10b91..13d07a4cb 100644 --- a/deployment/opendmp/backend/config/keycloak-test.yml +++ b/deployment/opencdmp/backend/config/keycloak-test.yml @@ -14,7 +14,7 @@ keycloak-resources: parent: 64c07220-0d92-44e5-be6e-d9edf6c10a56 roleAttributeValueStrategy: 'TenantUser:{tenantCode}' TenantManager: - parent: 35f22f1-a0cc-4afd-af4c-dba6bb2e7415 + parent: 735f22f1-a0cc-4afd-af4c-dba6bb2e7415 roleAttributeValueStrategy: 'TenantManager:{tenantCode}' TenantDescriptionTemplateEditor: parent: 1bfe8064-4e44-4ec1-a69e-836364a36e37 diff --git a/deployment/opendmp/backend/config/logging-test.yml b/deployment/opencdmp/backend/config/logging-test.yml similarity index 100% rename from deployment/opendmp/backend/config/logging-test.yml rename to deployment/opencdmp/backend/config/logging-test.yml diff --git a/deployment/opendmp/backend/config/logging/logback-test.xml b/deployment/opencdmp/backend/config/logging/logback-test.xml similarity index 100% rename from deployment/opendmp/backend/config/logging/logback-test.xml rename to deployment/opencdmp/backend/config/logging/logback-test.xml diff --git a/deployment/opendmp/backend/config/metrics-test.yml b/deployment/opencdmp/backend/config/metrics-test.yml similarity index 100% rename from deployment/opendmp/backend/config/metrics-test.yml rename to deployment/opencdmp/backend/config/metrics-test.yml diff --git a/deployment/opendmp/backend/config/queue-test.yml b/deployment/opencdmp/backend/config/queue-test.yml similarity index 100% rename from deployment/opendmp/backend/config/queue-test.yml rename to deployment/opencdmp/backend/config/queue-test.yml diff --git a/deployment/opendmp/backend/config/security-test.yml b/deployment/opencdmp/backend/config/security-test.yml similarity index 78% rename from deployment/opendmp/backend/config/security-test.yml rename to deployment/opencdmp/backend/config/security-test.yml index 583d5267a..018d37802 100644 --- a/deployment/opendmp/backend/config/security-test.yml +++ b/deployment/opencdmp/backend/config/security-test.yml @@ -2,7 +2,7 @@ web: security: enabled: true authorized-endpoints: [ api ] - allowed-endpoints: [ api/public, api/dmp/public, api/description/public, api/supportive-material/public, api/language/public, api/contact-support/public, api/dashboard/public ] + allowed-endpoints: [ api/public, api/dmp/public, api/description/public, api/supportive-material/public, api/language/public, api/contact-support/public, api/dashboard/public, api/deposit/public ] idp: api-key: enabled: false diff --git a/deployment/opendmp/backend/config/server-test.yml b/deployment/opencdmp/backend/config/server-test.yml similarity index 100% rename from deployment/opendmp/backend/config/server-test.yml rename to deployment/opencdmp/backend/config/server-test.yml diff --git a/deployment/opendmp/backend/config/storage-test.yml b/deployment/opencdmp/backend/config/storage-test.yml similarity index 100% rename from deployment/opendmp/backend/config/storage-test.yml rename to deployment/opencdmp/backend/config/storage-test.yml diff --git a/deployment/opendmp/backend/config/tenant-test.yml b/deployment/opencdmp/backend/config/tenant-test.yml similarity index 100% rename from deployment/opendmp/backend/config/tenant-test.yml rename to deployment/opencdmp/backend/config/tenant-test.yml diff --git a/deployment/opendmp/backend/i18n/de.json b/deployment/opencdmp/backend/i18n/de.json similarity index 100% rename from deployment/opendmp/backend/i18n/de.json rename to deployment/opencdmp/backend/i18n/de.json diff --git a/deployment/opendmp/backend/i18n/en.json b/deployment/opencdmp/backend/i18n/en.json similarity index 97% rename from deployment/opendmp/backend/i18n/en.json rename to deployment/opencdmp/backend/i18n/en.json index 6ea037d4f..4cba28036 100644 --- a/deployment/opendmp/backend/i18n/en.json +++ b/deployment/opencdmp/backend/i18n/en.json @@ -90,6 +90,17 @@ "PLANS": "My Plans", "EXPLORE-PLANS": "Published Plans", "DESCRIPTIONS": "My Descriptions", + "BLUEPRINTS": "Blueprints", + "DESCRIPTION-TEMPLATES": "Description Templates", + "DESCRIPTION-TEMPLATE-TYPES": "Description Types", + "ENTITY-LOCKS": "Entity Locks", + "REFERENCES": "References", + "LANGUAGES": "Languages", + "REFERENCE-TYPES": "Reference Types", + "PREFILLING-SOURCES": "Prefilling Sources", + "TENANT-CONFIGURATION": "Tenant Configuration", + "NOTIFICATIONS": "Notifications", + "NOTIFICATION-TEMPLATES": "Notification Templates", "EXPLORE": "Published Descriptions", "USERS": "Users", "PROFILE": "My Profile", @@ -169,6 +180,7 @@ "EDIT-DESCRIPTION-TEMPLATE-TYPE": "Edit", "DMP-BLUEPRINTS": "Plan Blueprints", "NEW-DMP-BLUEPRINT": "New", + "EDIT-DMP": "Edit", "EDIT-DMP-BLUEPRINT": "Edit", "NEW-DESCRIPTION-TEMPLATES": "New", "EDIT-DESCRIPTION-TEMPLATES": "Edit", @@ -294,7 +306,9 @@ "DESCRIPTION": "From here you can manage the Message Queue events", "ACTIONS": { "SEND-USER-TOUCH": "Send user touch events", - "SEND-TENANT-TOUCH": "Send tenant touch events" + "SEND-TENANT-TOUCH": "Send tenant touch events", + "SEND-DMP-TOUCH": "Send dmp touch events", + "SEND-DESCRIPTION-TOUCH": "Send description touch events" } } }, @@ -316,6 +330,10 @@ "TITLE": "Extra Logo", "HINT": "Add extra logo" }, + "NOTIFIER-LIST":{ + "TITLE": "Notification Preferences", + "HINT": "Select available notifiers for Notification Types" + }, "DEPOSIT-PLUGINS":{ "TITLE": "Deposit Plugins", "HINT": "Change deposit plugins" @@ -363,6 +381,7 @@ "NEW-PROFILE-VERSION": "New Version Of ", "NEW-PROFILE-CLONE": "New Clone Of " }, + "TITLE-EDIT-DESCRIPTION-TEMPLATE": "Editing Description Template", "FIELDS": { "DATASET-TITLE": "Description Template Name", "DATASET-DESCRIPTION": "Description" @@ -441,7 +460,7 @@ }, "FIELD": { "FIELDS": { - "FIELD-LABEL": "Label", + "FIELD-PLACEHOLDER": "Input Placeholder Text", "REFERENCE-TYPE": "Reference Type", "REFERENCE-TYPE-TITLE": "Reference Type", "MULTIPLE-SELECT": "Multiple Select", @@ -791,6 +810,7 @@ "BACK-TO": "Back to", "EXPORT": "Export", "SAVE": "Save", + "CANCEL": "Cancel", "SAVE-AND-CONTINUE": "Save & Continue", "SAVE-AND-ADD-NEW": "Save & Add New", "SAVE-AND-CLOSE": "Save & Close", @@ -1056,6 +1076,7 @@ }, "LANGUAGE-EDITOR": { "NEW": "New Language", + "TITLE-EDIT-LANGUAGE": "Editing Language", "FIELDS": { "CODE": "Code", "PAYLOAD": "Payload", @@ -1124,6 +1145,7 @@ }, "NOTIFICATION-TEMPLATE-EDITOR": { "NEW": "New Notification Template", + "TITLE-EDIT-NOTIFICATION-TEMPLATE": "Editing Notification Template", "FIELDS": { "NOTIFICATION-TYPE": "Notification Type", "LANGUAGE": "Language", @@ -1237,6 +1259,7 @@ }, "DESCRIPTION-TEMPLATE-TYPE-EDITOR": { "NEW": "New Description Type", + "TITLE-EDIT-DESCRIPTION-TEMPLATE-TYPE": "Editing Description Template Type", "FIELDS": { "NAME": "Name" }, @@ -1245,10 +1268,19 @@ "FINALIZE": "Finalize", "CANCEL": "Cancel", "DELETE": "Delete" + }, + "MESSAGES": { + "MISSING-FIELDS": "There are some required fields left unfilled. Please check the Template and make sure that all required questions are answered and URLs are provided with valid input. (Missing fields are marked in red color)" + }, + "FINALIZE-DIALOG": { + "TITLE": "Finalize this item?", + "CONFIRM": "Confirm", + "NEGATIVE": "Cancel" } }, "REFERENCE-TYPE-EDITOR": { "NEW": "New Reference Type", + "TITLE-EDIT-REFERENCE-TYPE": "Editing Reference Type", "SOURCES-REQUIRED": "Required", "FIELDS": { "SOURCE-CONFIGURATION": "Source Configuration", @@ -1346,6 +1378,7 @@ }, "PREFILLING-SOURCE-EDITOR": { "NEW": "New Prefilling Source", + "TITLE-EDIT-PREFILLING-SOURCE": "Editing Prefilling Source", "FIELDS": { "FIXED-VALUE-FIELDS": "Fixed Value Fields", "FIELDS": "API Fields", @@ -1371,6 +1404,7 @@ }, "REFERENCE-EDITOR": { "NEW": "New Reference", + "TITLE-EDIT-REFERENCE": "Editing Reference", "FIELDS": { "LABEL": "Label", "TYPE": "Type", @@ -1399,6 +1433,7 @@ "CLONE": "Clone Plan Blueprint", "NEW-VERSION": "Create New Version of Plan Blueprint" }, + "TITLE-EDIT-BLUEPRINT": "Editing Blueprint", "SECTIONS-REQUIRED": "Required", "FIELDS-REQUIRED": "Required", "SYSTEM-FIELDS-REQUIRED": "Title, Description, Language and Access are required", diff --git a/deployment/opendmp/backend/i18n/es.json b/deployment/opencdmp/backend/i18n/es.json similarity index 100% rename from deployment/opendmp/backend/i18n/es.json rename to deployment/opencdmp/backend/i18n/es.json diff --git a/deployment/opendmp/backend/i18n/gr.json b/deployment/opencdmp/backend/i18n/gr.json similarity index 100% rename from deployment/opendmp/backend/i18n/gr.json rename to deployment/opencdmp/backend/i18n/gr.json diff --git a/deployment/opendmp/backend/i18n/hr.json b/deployment/opencdmp/backend/i18n/hr.json similarity index 100% rename from deployment/opendmp/backend/i18n/hr.json rename to deployment/opencdmp/backend/i18n/hr.json diff --git a/deployment/opendmp/backend/i18n/pl.json b/deployment/opencdmp/backend/i18n/pl.json similarity index 100% rename from deployment/opendmp/backend/i18n/pl.json rename to deployment/opencdmp/backend/i18n/pl.json diff --git a/deployment/opendmp/backend/i18n/pt.json b/deployment/opencdmp/backend/i18n/pt.json similarity index 100% rename from deployment/opendmp/backend/i18n/pt.json rename to deployment/opencdmp/backend/i18n/pt.json diff --git a/deployment/opendmp/backend/i18n/sk.json b/deployment/opencdmp/backend/i18n/sk.json similarity index 100% rename from deployment/opendmp/backend/i18n/sk.json rename to deployment/opencdmp/backend/i18n/sk.json diff --git a/deployment/opendmp/backend/i18n/sr.json b/deployment/opencdmp/backend/i18n/sr.json similarity index 100% rename from deployment/opendmp/backend/i18n/sr.json rename to deployment/opencdmp/backend/i18n/sr.json diff --git a/deployment/opendmp/backend/i18n/tr.json b/deployment/opencdmp/backend/i18n/tr.json similarity index 100% rename from deployment/opendmp/backend/i18n/tr.json rename to deployment/opencdmp/backend/i18n/tr.json diff --git a/deployment/opendmp/backend/material/about/About_en.html b/deployment/opencdmp/backend/material/about/About_en.html similarity index 100% rename from deployment/opendmp/backend/material/about/About_en.html rename to deployment/opencdmp/backend/material/about/About_en.html diff --git a/deployment/opendmp/backend/material/faq/Faq_en.html b/deployment/opencdmp/backend/material/faq/Faq_en.html similarity index 99% rename from deployment/opendmp/backend/material/faq/Faq_en.html rename to deployment/opencdmp/backend/material/faq/Faq_en.html index 82600bf1d..5cf6dd1ca 100644 --- a/deployment/opendmp/backend/material/faq/Faq_en.html +++ b/deployment/opencdmp/backend/material/faq/Faq_en.html @@ -84,7 +84,7 @@ familiarize users with basic RDM concepts and guide them throughout the process of writing DMPs. It also utilises the OpenAIRE pool of services and inferred sources to make DMPs more dynamic in use and easier to be completed and published. Argos is - based on the OpenDMP open source software and is available through the OpenAIRE Service catalogue and the

- Yes, it is. The OpenDMP software that Argos has deployed upon is open source code + Yes, it is. The OpenCDMP software that Argos has deployed upon is open source code available under Apache 2.0 license. You may find more information about the software here. diff --git a/deployment/opendmp/backend/material/glossary/Glossary_en.html b/deployment/opencdmp/backend/material/glossary/Glossary_en.html similarity index 100% rename from deployment/opendmp/backend/material/glossary/Glossary_en.html rename to deployment/opencdmp/backend/material/glossary/Glossary_en.html diff --git a/deployment/opendmp/backend/material/terms-of-service/TermsOfService_en.html b/deployment/opencdmp/backend/material/terms-of-service/TermsOfService_en.html similarity index 91% rename from deployment/opendmp/backend/material/terms-of-service/TermsOfService_en.html rename to deployment/opencdmp/backend/material/terms-of-service/TermsOfService_en.html index 2bcaaeb33..0b3a4e934 100644 --- a/deployment/opendmp/backend/material/terms-of-service/TermsOfService_en.html +++ b/deployment/opencdmp/backend/material/terms-of-service/TermsOfService_en.html @@ -84,10 +84,10 @@

-

The OpenDMP service was developed to provide a more flexible, collaborative environment with machine actionable solutions in writing, sharing and publishing Data Management Plans (DMPs). It is a product of cooperation between OpenAIRE AMKE and EUDAT CDI and is offered both as a software “OpenDMP '' and as an online service under the name “ARGOS”.

+

The OpenCDMP service was developed to provide a more flexible, collaborative environment with machine actionable solutions in writing, sharing and publishing Data Management Plans (DMPs). It is a product of cooperation between OpenAIRE AMKE and EUDAT CDI and is offered both as a software “OpenCDMP '' and as an online service under the name “ARGOS”.

    -
  1. OpenDMP software is offered under the Free Open Source Software license  Apache 2.0, for further development and use by institutions and interested parties.
  2. +
  3. OpenCDMP software is offered under the Free Open Source Software license  Apache 2.0, for further development and use by institutions and interested parties.
  4. ARGOS service is offered by OpenAIRE as part of its mission to support Open Science in the European Research Area, focusing on information linking and contextualisation that enriches its Research Graph. Use of ARGOS denotes agreement with the following terms:
    1. ARGOS is a software interface and a database with no storage capacity to store or preserve research data. The DMPs created are hosted in the OpenAIRE production environment for the sole purpose of exposing the DMP records once finalised (“published”). If assigned a DOI, the DMP records are linked to and preserved in Zenodo, the OpenAIRE’s repository service. The ARGOS service is made available for use free-of-charge for research, educational and informational purposes.
    2. diff --git a/deployment/opendmp/backend/material/user-guide/UserGuide_de.html b/deployment/opencdmp/backend/material/user-guide/UserGuide_de.html similarity index 100% rename from deployment/opendmp/backend/material/user-guide/UserGuide_de.html rename to deployment/opencdmp/backend/material/user-guide/UserGuide_de.html diff --git a/deployment/opendmp/backend/material/user-guide/UserGuide_en.html b/deployment/opencdmp/backend/material/user-guide/UserGuide_en.html similarity index 100% rename from deployment/opendmp/backend/material/user-guide/UserGuide_en.html rename to deployment/opencdmp/backend/material/user-guide/UserGuide_en.html diff --git a/deployment/opendmp/backend/material/user-guide/UserGuide_es.html b/deployment/opencdmp/backend/material/user-guide/UserGuide_es.html similarity index 100% rename from deployment/opendmp/backend/material/user-guide/UserGuide_es.html rename to deployment/opencdmp/backend/material/user-guide/UserGuide_es.html diff --git a/deployment/opendmp/backend/material/user-guide/UserGuide_gr.html b/deployment/opencdmp/backend/material/user-guide/UserGuide_gr.html similarity index 100% rename from deployment/opendmp/backend/material/user-guide/UserGuide_gr.html rename to deployment/opencdmp/backend/material/user-guide/UserGuide_gr.html diff --git a/deployment/opendmp/backend/material/user-guide/UserGuide_pt.html b/deployment/opencdmp/backend/material/user-guide/UserGuide_pt.html similarity index 93% rename from deployment/opendmp/backend/material/user-guide/UserGuide_pt.html rename to deployment/opencdmp/backend/material/user-guide/UserGuide_pt.html index 31855cda0..62644c47a 100644 --- a/deployment/opendmp/backend/material/user-guide/UserGuide_pt.html +++ b/deployment/opencdmp/backend/material/user-guide/UserGuide_pt.html @@ -1946,7 +1946,7 @@ margin-left: -20px; } - + @@ -1965,15 +1965,15 @@

      Modelo de Dados – é composto por um conjunto de questões que descrevem o que os Datasets contêm e como são tratados. Estes modelos estão ligados a PGDs, de modo a que os utilizadores tenham acesso a formatos específicos consoante a instituição a que reportam. Os modelos só podem ser modificados por administradores. Um grant e/ou um projeto definem o contexto em que um ou mais PGDs podem ser criados.

    3. -

      Importar ficheiro - Suporta a função de importar ficheiros em formato .json, que são produzidos de acordo com as especificações da Research Data Alliance (RDA) para PGDs acionáveis por máquina.

      +

      Importar ficheiro - Suporta a função de importar ficheiros em formato .json, que são produzidos de acordo com as especificações da Research Data Alliance (RDA) para PGDs acionáveis por máquina.


    4. -

      O botão “Criar novo PGD” permite de forma simples iniciar o seu plano. Esta opção fornece um editor que percorre os elementos essenciais de um PGD, guiando o processo de criação do documento passo a passo.

      A partir do "Início"



      +

      O botão “Criar novo PGD” permite de forma simples iniciar o seu plano. Esta opção fornece um editor que percorre os elementos essenciais de um PGD, guiando o processo de criação do documento passo a passo.

      A partir do "Início"




      -

      A partir de “Adicione um Dataset”



      Adicionar um Dataset é uma forma simples de adicionar novos modelos de dados a PGDs pré-existentes.

      A partir do “Início”

      -

      A partir de “Os meus Datasets”



      A partir de “Os meus PGDs”



      -

      A partir do “Editor de Dataset”



      +

      A partir de “Adicione um Dataset”



      Adicionar um Dataset é uma forma simples de adicionar novos modelos de dados a PGDs pré-existentes.

      A partir do “Início”

      +

      A partir de “Os meus Datasets”



      A partir de “Os meus PGDs”



      +

      A partir do “Editor de Dataset”



      1.2  Outros termos

      • @@ -1996,7 +1996,7 @@

        2. Navegação

        2.1 Página Inicial

        A página inicial poderá ser encontrada em https://argos.openaire.eu/splash/, também acessível através do Catálogo de Serviços do OpenAIRE e EOSC.

        -

        +

        • Sobre – Informa sobre o âmbito e principais funções da ferramenta (como funciona, Roadmap, FAQs, quais os contribuidores).

          @@ -2013,13 +2013,13 @@

        2.2    Login


        Estão disponíveis diferentes opções de login, desde meios de comunicação social a canais de investigação e comunicação académica.

        -


        Atenção! Não é necessária uma conta de utilizador.

        +


        Atenção! Não é necessária uma conta de utilizador.

        2.3   Menu do Utilizador

        Espaço dedicado e que poderá ser customizado de acordo com o perfil pessoal do utilizador.

        - + - + @@ -2132,11 +2132,11 @@

        2.5   Início

        O “Início” é a informação que aparece depois de entrar no Argos a partir da página inicial.

        Inclui informação condensada baseada na função Argos e na sua utilização.

        -


        Início –
        Antes de iniciar a sessão

        +


        Início –
        Antes de iniciar a sessão

        Definições do Meu Perfil -  Exibe a página de perfil que contém detalhes  tais como: nome, e-mail, dados da conta Zenodo, etc.

        PGDs associados - Coleção dos PGDs do utilizador.

        @@ -2046,12 +2046,12 @@


         

        -

         

        +

         

        - + @@ -2147,7 +2147,7 @@


        Última Atividade
        - Exibe os PGDs e Datasets publicamente disponíveis, de acordo com a data da sua publicação no Argos e a sua etiqueta (PGDs ou Datasets).

        - +


        Uso Público
        - Mostra o número de PGDs, Datasets, Grants e Organizações publicamente disponíveis e incluídas no Argos.

         

        @@ -2157,11 +2157,11 @@

         

        -

        Início - Após Iniciar a Sessão



        +

        Início - Após Iniciar a Sessão



        - + @@ -2172,7 +2172,7 @@


        Última Atividade
        - Exibe os PGDs e Datasets do utilizador, de acordo com a data da sua última modificação, estado  do documento (rascunho, finalizado, publicado) e a sua etiqueta (PGDs ou Datasets).

        - + @@ -2184,7 +2184,7 @@

        Contém todos os PGDs e Datasets de que o utilizador é proprietário ou colaborador. Tanto os PGDs, como os Datasets, são classificados pela data da sua última modificação, o estado do documento (rascunho, finalizado, publicado) e a sua etiqueta (PGDs ou Datasets).

        Os Meus PGDs

        -

        Quando a etiqueta é verde trata-se de um PGD, mostrando o papel da pessoa que vê o PGD, o estado do processo de escrita, a versão atual do PGD, o grant associado ao PGD, o número e nome dos Datasets que o PGD tem.

        +

        Quando a etiqueta é verde trata-se de um PGD, mostrando o papel da pessoa que vê o PGD, o estado do processo de escrita, a versão atual do PGD, o grant associado ao PGD, o número e nome dos Datasets que o PGD tem.

        • Exportar - Suporta o download dos outputs do PGD nos seguintes formatos: PDF, Document, XML, RDA JSON (pode ser importado para outras ferramentas de PGD compatíveis com a RDA).

          @@ -2206,7 +2206,7 @@


        Uso Pessoal
        - Mostra a atividade do utilizador nos PGDs, Datasets, Grants e Organizações.

        - +


        Nova Versão
        - Inicia uma nova versão do PGD.

        Ver todas as Versões do PGD  - Mostra o histórico das diferentes versões do PGD.

        @@ -2217,7 +2217,7 @@

        Os Meus Datasets

        -

        Quando a etiqueta é amarelo trata-se de um Dataset e mostra o papel da pessoa que visualiza o Dataset, o estado do processo de escrita, o grant associado ao PGD e o título do PGD do qual o Dataset faz parte.



        +

        Quando a etiqueta é amarelo trata-se de um Dataset e mostra o papel da pessoa que visualiza o Dataset, o estado do processo de escrita, o grant associado ao PGD e o título do PGD do qual o Dataset faz parte.



        • Exportar - Suporta o download dos outputs do Dataset nos seguintes formatos: PDF, Document, XML, RDA JSON (pode ser importado para outras ferramentas de PGD compatíveis com a RDA).

          @@ -2238,7 +2238,7 @@

          Tanto os PGDs como os Datasets são organizados e apresentados pela data da sua última modificação e pela sua etiqueta (PGDs ou Datasets). Os utilizadores também podem procurar o PGD ou Dataset a partir da barra de pesquisa.

          PGDs Públicos

          Quando a etiqueta é verde trata-se de um PGD e exibe o título do PGD, o seu estado, a sua versão, o grant associado, o número e o nome dos Datasets que o PGD contém.

          -



          +



          • Exportar - Suporta o download dos outputs do PGD nos seguintes formatos: PDF, Document, XML, RDA JSON (pode ser importado para outras ferramentas de PGD compatíveis com a RDA).

            @@ -2250,7 +2250,7 @@

          Datasets Públicos

          -

          Quando a etiqueta é amarelo trata-se de um Dataset Público e mostra o título do Dataset, o seu estado, o grant associado ao PGD e o papel da pessoa que visualiza o Dataset, o estado do processo de escrita, o grant associado ao PGD e o título do PGD do qual o Dataset faz parte.



          +

          Quando a etiqueta é amarelo trata-se de um Dataset Público e mostra o título do Dataset, o seu estado, o grant associado ao PGD e o papel da pessoa que visualiza o Dataset, o estado do processo de escrita, o grant associado ao PGD e o título do PGD do qual o Dataset faz parte.



          • Exportar - Suporta o download dos outputs do Dataset nos seguintes formatos: PDF, Document, XML, RDA JSON (pode ser importado para outras ferramentas de PGD compatíveis com a RDA).

            @@ -2259,7 +2259,7 @@ - + @@ -2269,14 +2269,14 @@

             

            2.8   Criar novo PGD


            Existem várias formas de criar um novo PGD no Argos.

            -

            +

            Existem 4 etapas envolvidas na criação de um PGD:

            - Informação Geral;

            - Informação sobre o Financiamento;

            - Informação sobre a Licença;

            - Informação sobre os Datasets.

            Informação Geral

            -



            +



            • Título do PGD - Título do documento.

              @@ -2301,7 +2301,7 @@

            Informação sobre o Financiamento

            -

            +

            • Organizações de Financiamento - Integra uma lista onde os utilizadores podem selecionar a organização através da qual a investigação é financiada. Caso o nome de uma organização financiadora não possa ser encontrado no Argos, os utilizadores podem criar um novo registo com o nome e detalhes da organização financiadora ("Inserir manualmente").

              @@ -2314,7 +2314,7 @@

            Informação sobre a Licença

            -


            +


            • Licença - Inclui uma lista de licenças a escolher e a atribuir aos PGDs.

              @@ -2322,7 +2322,7 @@

            Informação sobre os Datasets

            -


            +


            • Informação sobre os Datasets – Permite selecionar o modelo para descrever os seus datasets. Poderá selecionar mais do que um modelo de dados.

              @@ -2342,7 +2342,7 @@

              - Adicionar Datasets aos PGDs existentes.


              No Argos, os Datasets estão ligados e associados a pelo menos um PGD. Um Dataset não pode existir como registo único.

              Primeiro Dataset

              -

              +

              Uma vez criado o PGD, o utilizador poderá preencher a descrição dos seus dados no “Editor de Dataset”.

               

                @@ -2368,18 +2368,18 @@

              Selecione um PGD para o seu Dataset

              -


              +


              Selecione um PGD já existente na lista.


              Selecione um Modelo


              -

              +


              Selecionar o modelo de dados para descrever o seu Dataset, de acordo com a organização que financia o seu grant.


              Edite o Dataset


              O “Editor de Dataset” apoia na descrição de informação de acordo com o modelo selecionado.

              -


              +


              • Guardar Datasets - Existem várias formas de guardar Datasets no Argos. Todas têm a mesma finalidade, diferindo da ação de acompanhamento.

                @@ -2394,7 +2394,7 @@
              • Concluir – Salva todas as alterações realizadas, encerrando a janela do editor e redirecionando para o “Início”.

                -

                +


              @@ -2402,26 +2402,26 @@

              Regista os PGDs e Datasets no Argos, após a sua edição e conclusão.

              Os utilizadores podem visualizar os PGDs e Datasets que criaram. Ao abrir um registo que tenham criado, são-lhes fornecidas funcionalidades adicionais que estão ligadas à conclusão do processo de escrita dos PGDs.

              São aplicáveis funcionalidades diferentes consoante o estado do PGD, ou seja, antes ou depois da conclusão do PGD.

              -


              Antes de concluir o PGD

              +


              Antes de concluir o PGD

              Antes de concluir o PGD, este pode ainda ser editado, eliminado ou duplicado. Os utilizadores podem rever a informação que acrescentaram relativamente a grants, investigadores, descrição do PGD e Datasets e/ou modelos de dados utilizados.

              Podem ser adicionados novos Datasets em qualquer altura, a partir desta página.

              Os utilizadores podem exportar o PGD, começar a trabalhar numa nova versão e/ou convidar colegas a colaborar na conclusão do seu plano.


              Convidar

              -



              -

              Após concluir o PGD


              +



              +

              Após concluir o PGD



              Após a conclusão do PGD, este poderá ser tornado publicamente visível no Argos e depositado no Zenodo.

              Os utilizadores podem exportar o PGD finalizado, começar a trabalhar numa nova versão e/ou convidar colegas a colaborar na conclusão do plano.

              É possível reverter a conclusão do PGD.

               

              Antes de concluir os Datasets

              -



              +



              Antes de concluir o Dataset, este pode ainda ser editado, eliminado ou duplicado.

              Os utilizadores podem aceder a todo o PGD do qual o Dataset faz parte, a partir dessa página, e rever a informação que acrescentaram relativamente ao grant, investigadores e descrição do Dataset.

              Os utilizadores podem exportar a descrição do Dataset e convidar os colegas a colaborar na sua conclusão.

               

               Após concluir os Datasets

              -


              +



              Após a conclusão do Dataset, este poderá ser exportado e partilhado com colegas para revisão.


               

              diff --git a/deployment/opendmp/backend/material/user-guide/UserGuide_sk.html b/deployment/opencdmp/backend/material/user-guide/UserGuide_sk.html similarity index 100% rename from deployment/opendmp/backend/material/user-guide/UserGuide_sk.html rename to deployment/opencdmp/backend/material/user-guide/UserGuide_sk.html diff --git a/deployment/opendmp/backend/material/user-guide/UserGuide_sr.html b/deployment/opencdmp/backend/material/user-guide/UserGuide_sr.html similarity index 100% rename from deployment/opendmp/backend/material/user-guide/UserGuide_sr.html rename to deployment/opencdmp/backend/material/user-guide/UserGuide_sr.html diff --git a/deployment/opendmp/backend/material/user-guide/UserGuide_tr.html b/deployment/opencdmp/backend/material/user-guide/UserGuide_tr.html similarity index 100% rename from deployment/opendmp/backend/material/user-guide/UserGuide_tr.html rename to deployment/opencdmp/backend/material/user-guide/UserGuide_tr.html diff --git a/deployment/opencdmp/file-transformer-docx/config/app.env b/deployment/opencdmp/file-transformer-docx/config/app.env new file mode 100644 index 000000000..b5d5b9610 --- /dev/null +++ b/deployment/opencdmp/file-transformer-docx/config/app.env @@ -0,0 +1,8 @@ +#Security +IDP_ISSUER_URI=http://host.docker.internal:8081/keycloak/realms/OpenCDMP + +#PDF +PDF_CONVERTER_URL=http://opencdmp.gotenberg:3000 + +#Storage +STORAGE_PATH=/storage \ No newline at end of file diff --git a/deployment/opendmp/file-transformer-docx/config/documents/styles.xml b/deployment/opencdmp/file-transformer-docx/config/documents/styles.xml similarity index 100% rename from deployment/opendmp/file-transformer-docx/config/documents/styles.xml rename to deployment/opencdmp/file-transformer-docx/config/documents/styles.xml diff --git a/deployment/opendmp/file-transformer-docx/config/pdf-test.yml b/deployment/opencdmp/file-transformer-docx/config/pdf-test.yml similarity index 100% rename from deployment/opendmp/file-transformer-docx/config/pdf-test.yml rename to deployment/opencdmp/file-transformer-docx/config/pdf-test.yml diff --git a/deployment/opendmp/file-transformer-docx/config/pidLinks.json b/deployment/opencdmp/file-transformer-docx/config/pidLinks.json similarity index 100% rename from deployment/opendmp/file-transformer-docx/config/pidLinks.json rename to deployment/opencdmp/file-transformer-docx/config/pidLinks.json diff --git a/deployment/opendmp/file-transformer-docx/config/security-test.yml b/deployment/opencdmp/file-transformer-docx/config/security-test.yml similarity index 100% rename from deployment/opendmp/file-transformer-docx/config/security-test.yml rename to deployment/opencdmp/file-transformer-docx/config/security-test.yml diff --git a/deployment/opendmp/file-transformer-docx/config/storage-test.yml b/deployment/opencdmp/file-transformer-docx/config/storage-test.yml similarity index 100% rename from deployment/opendmp/file-transformer-docx/config/storage-test.yml rename to deployment/opencdmp/file-transformer-docx/config/storage-test.yml diff --git a/deployment/opendmp/file-transformer-docx/config/word-file-transformer-test.yml b/deployment/opencdmp/file-transformer-docx/config/word-file-transformer-test.yml similarity index 100% rename from deployment/opendmp/file-transformer-docx/config/word-file-transformer-test.yml rename to deployment/opencdmp/file-transformer-docx/config/word-file-transformer-test.yml diff --git a/deployment/opencdmp/file-transformer-rda-json/config/app.env b/deployment/opencdmp/file-transformer-rda-json/config/app.env new file mode 100644 index 000000000..7b8a0b0f1 --- /dev/null +++ b/deployment/opencdmp/file-transformer-rda-json/config/app.env @@ -0,0 +1,5 @@ +#Security +IDP_ISSUER_URI=http://host.docker.internal:8081/keycloak/realms/OpenCDMP + +#Storage +STORAGE_PATH=/storage \ No newline at end of file diff --git a/deployment/opendmp/file-transformer-rda-json/config/rda-file-transformer-test.yml b/deployment/opencdmp/file-transformer-rda-json/config/rda-file-transformer-test.yml similarity index 100% rename from deployment/opendmp/file-transformer-rda-json/config/rda-file-transformer-test.yml rename to deployment/opencdmp/file-transformer-rda-json/config/rda-file-transformer-test.yml diff --git a/deployment/opendmp/file-transformer-rda-json/config/security-test.yml b/deployment/opencdmp/file-transformer-rda-json/config/security-test.yml similarity index 100% rename from deployment/opendmp/file-transformer-rda-json/config/security-test.yml rename to deployment/opencdmp/file-transformer-rda-json/config/security-test.yml diff --git a/deployment/opendmp/file-transformer-rda-json/config/storage-test.yml b/deployment/opencdmp/file-transformer-rda-json/config/storage-test.yml similarity index 100% rename from deployment/opendmp/file-transformer-rda-json/config/storage-test.yml rename to deployment/opencdmp/file-transformer-rda-json/config/storage-test.yml diff --git a/deployment/opendmp/file-transformer-rda-json/internal/rda-lang-map.json b/deployment/opencdmp/file-transformer-rda-json/internal/rda-lang-map.json similarity index 100% rename from deployment/opendmp/file-transformer-rda-json/internal/rda-lang-map.json rename to deployment/opencdmp/file-transformer-rda-json/internal/rda-lang-map.json diff --git a/deployment/opendmp/frontend/WebAppNginx.conf b/deployment/opencdmp/frontend/WebAppNginx.conf similarity index 100% rename from deployment/opendmp/frontend/WebAppNginx.conf rename to deployment/opencdmp/frontend/WebAppNginx.conf diff --git a/deployment/opendmp/frontend/config.json b/deployment/opencdmp/frontend/config.json similarity index 79% rename from deployment/opendmp/frontend/config.json rename to deployment/opencdmp/frontend/config.json index ce2b71040..3817e62c4 100644 --- a/deployment/opendmp/frontend/config.json +++ b/deployment/opencdmp/frontend/config.json @@ -1,7 +1,7 @@ { "production": false, - "Server": "http://localhost:8081/api", - "App": "http://localhost:8081/", + "Server": "http://host.docker.internal:8081/api/", + "App": "http://host.docker.internal:8081/", "HelpService": { "Enabled": false, "Url": "localhost:5000/" @@ -11,11 +11,11 @@ "defaultBlueprintId": "86635178-36a6-484f-9057-a934e4eeecd5", "keycloak": { "enabled": true, - "address": "http://localhost:8082/keycloak/", - "realm": "openDMP", + "address": "http://host.docker.internal:8081/keycloak/", + "realm": "OpenCDMP", "flow": "standard", "clientId": "dmp_webapp", - "silentCheckSsoRedirectUri": "http://localhost:8082/assets/silent-check-sso.html", + "silentCheckSsoRedirectUri": "http://host.docker.internal:8081/assets/silent-check-sso.html", "scope": "openid profile email address phone dmp_web dmp_notification dmp_annotation identity_provider", "clientSecret": null, "grantType": "code" @@ -23,7 +23,6 @@ "inAppNotificationsCountInterval": "30", "notification_service": { "enabled": true - // "address": "http://opendmp.notification:8080/" }, "annotation_service": { "enabled": true @@ -31,7 +30,7 @@ "zenodoConfiguration": { "clientId": "dmp_plugins", "oauthUrl": "https://sandbox.zenodo.org/oauth/authorize", - "redirectUri": "http://localhost:8081/zenodo/login/external/zenodo" + "redirectUri": "http://host.docker.internal:8081/login/external/zenodo" }, "logging": { "enabled": true, diff --git a/deployment/opendmp/frontend/nginx.conf b/deployment/opencdmp/frontend/nginx.conf similarity index 100% rename from deployment/opendmp/frontend/nginx.conf rename to deployment/opencdmp/frontend/nginx.conf diff --git a/deployment/opendmp/notification/config/app.env b/deployment/opencdmp/notification/config/app.env similarity index 72% rename from deployment/opendmp/notification/config/app.env rename to deployment/opencdmp/notification/config/app.env index 4243b68df..b7b7489f0 100644 --- a/deployment/opendmp/notification/config/app.env +++ b/deployment/opencdmp/notification/config/app.env @@ -1,7 +1,7 @@ #DB -DB_CONNECTION_STRING=jdbc:postgresql://opendmp.postgres:5432/opendmp -DB_USER=opendmp-psql -DB_PASSWORD=opendmp-admin +DB_CONNECTION_STRING=jdbc:postgresql://opencdmp.postgres:5432/opencdmp +DB_USER=postgres +DB_PASSWORD=postgres-admin #Server WEB_PORT=8080 @@ -14,10 +14,10 @@ IDP_APIKEY_SCOPE=dmp_notification-dedicated IDP_OPAQUE_CLIENT_ID= IDP_OPAQUE_CLIENT_SECRET= -IDP_ISSUER_URI=http://localhost:8082/keycloak/realms/OpenDMP +IDP_ISSUER_URI=http://host.docker.internal:8081/keycloak/realms/OpenCDMP #RABBITMQ -RABBIT_HOST=opendmp.rabbitmq +RABBIT_HOST=opencdmp.rabbitmq RABBIT_PORT=5672 RABBIT_USER=guest RABBIT_PASS=guest diff --git a/deployment/opendmp/notification/config/cipher-test.yml b/deployment/opencdmp/notification/config/cipher-test.yml similarity index 100% rename from deployment/opendmp/notification/config/cipher-test.yml rename to deployment/opencdmp/notification/config/cipher-test.yml diff --git a/deployment/opencdmp/notification/config/cors-test.yml b/deployment/opencdmp/notification/config/cors-test.yml new file mode 100644 index 000000000..8e4483ef5 --- /dev/null +++ b/deployment/opencdmp/notification/config/cors-test.yml @@ -0,0 +1,3 @@ +web: + cors: + allowed-origins: [ http://host.docker.internal:8081 ] diff --git a/deployment/opendmp/notification/config/db-test.yml b/deployment/opencdmp/notification/config/db-test.yml similarity index 100% rename from deployment/opendmp/notification/config/db-test.yml rename to deployment/opencdmp/notification/config/db-test.yml diff --git a/deployment/opendmp/notification/config/email-test.yml b/deployment/opencdmp/notification/config/email-test.yml similarity index 100% rename from deployment/opendmp/notification/config/email-test.yml rename to deployment/opencdmp/notification/config/email-test.yml diff --git a/deployment/opendmp/notification/config/logging-test.yml b/deployment/opencdmp/notification/config/logging-test.yml similarity index 100% rename from deployment/opendmp/notification/config/logging-test.yml rename to deployment/opencdmp/notification/config/logging-test.yml diff --git a/deployment/opendmp/notification/config/logging/logback-test.xml b/deployment/opencdmp/notification/config/logging/logback-test.xml similarity index 100% rename from deployment/opendmp/notification/config/logging/logback-test.xml rename to deployment/opencdmp/notification/config/logging/logback-test.xml diff --git a/deployment/opendmp/notification/config/notification-test.yml b/deployment/opencdmp/notification/config/notification-test.yml similarity index 100% rename from deployment/opendmp/notification/config/notification-test.yml rename to deployment/opencdmp/notification/config/notification-test.yml diff --git a/deployment/opendmp/notification/config/queue-test.yml b/deployment/opencdmp/notification/config/queue-test.yml similarity index 100% rename from deployment/opendmp/notification/config/queue-test.yml rename to deployment/opencdmp/notification/config/queue-test.yml diff --git a/deployment/opendmp/notification/config/security-test.yml b/deployment/opencdmp/notification/config/security-test.yml similarity index 100% rename from deployment/opendmp/notification/config/security-test.yml rename to deployment/opencdmp/notification/config/security-test.yml diff --git a/deployment/opendmp/notification/config/server-test.yml b/deployment/opencdmp/notification/config/server-test.yml similarity index 100% rename from deployment/opendmp/notification/config/server-test.yml rename to deployment/opencdmp/notification/config/server-test.yml diff --git a/deployment/opendmp/notification/config/tenant-test.yml b/deployment/opencdmp/notification/config/tenant-test.yml similarity index 100% rename from deployment/opendmp/notification/config/tenant-test.yml rename to deployment/opencdmp/notification/config/tenant-test.yml diff --git a/deployment/opendmp/notification/messages/messages.properties b/deployment/opencdmp/notification/messages/messages.properties similarity index 100% rename from deployment/opendmp/notification/messages/messages.properties rename to deployment/opencdmp/notification/messages/messages.properties diff --git a/deployment/opendmp/notification/messages/messages_el.properties b/deployment/opencdmp/notification/messages/messages_el.properties similarity index 100% rename from deployment/opendmp/notification/messages/messages_el.properties rename to deployment/opencdmp/notification/messages/messages_el.properties diff --git a/deployment/opendmp/notification/notification_templates/contactsupport/email/body.en.html b/deployment/opencdmp/notification/notification_templates/contactsupport/email/body.en.html similarity index 100% rename from deployment/opendmp/notification/notification_templates/contactsupport/email/body.en.html rename to deployment/opencdmp/notification/notification_templates/contactsupport/email/body.en.html diff --git a/deployment/opendmp/notification/notification_templates/contactsupport/email/subject.en.txt b/deployment/opencdmp/notification/notification_templates/contactsupport/email/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/contactsupport/email/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/contactsupport/email/subject.en.txt diff --git a/deployment/opendmp/notification/notification_templates/descriptionfinalised/email/body.en.html b/deployment/opencdmp/notification/notification_templates/descriptionfinalised/email/body.en.html similarity index 100% rename from deployment/opendmp/notification/notification_templates/descriptionfinalised/email/body.en.html rename to deployment/opencdmp/notification/notification_templates/descriptionfinalised/email/body.en.html diff --git a/deployment/opendmp/notification/notification_templates/descriptionfinalised/email/subject.en.txt b/deployment/opencdmp/notification/notification_templates/descriptionfinalised/email/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/descriptionfinalised/email/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/descriptionfinalised/email/subject.en.txt diff --git a/deployment/opendmp/notification/notification_templates/descriptionfinalised/inapp/body.en.html b/deployment/opencdmp/notification/notification_templates/descriptionfinalised/inapp/body.en.html similarity index 100% rename from deployment/opendmp/notification/notification_templates/descriptionfinalised/inapp/body.en.html rename to deployment/opencdmp/notification/notification_templates/descriptionfinalised/inapp/body.en.html diff --git a/deployment/opendmp/notification/notification_templates/descriptionfinalised/inapp/subject.en.txt b/deployment/opencdmp/notification/notification_templates/descriptionfinalised/inapp/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/descriptionfinalised/inapp/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/descriptionfinalised/inapp/subject.en.txt diff --git a/deployment/opendmp/notification/notification_templates/descriptionmodified/email/body.en.html b/deployment/opencdmp/notification/notification_templates/descriptionmodified/email/body.en.html similarity index 100% rename from deployment/opendmp/notification/notification_templates/descriptionmodified/email/body.en.html rename to deployment/opencdmp/notification/notification_templates/descriptionmodified/email/body.en.html diff --git a/deployment/opendmp/notification/notification_templates/descriptionmodified/email/subject.en.txt b/deployment/opencdmp/notification/notification_templates/descriptionmodified/email/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/descriptionmodified/email/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/descriptionmodified/email/subject.en.txt diff --git a/deployment/opendmp/notification/notification_templates/descriptionmodified/inapp/body.en.html b/deployment/opencdmp/notification/notification_templates/descriptionmodified/inapp/body.en.html similarity index 100% rename from deployment/opendmp/notification/notification_templates/descriptionmodified/inapp/body.en.html rename to deployment/opencdmp/notification/notification_templates/descriptionmodified/inapp/body.en.html diff --git a/deployment/opendmp/notification/notification_templates/descriptionmodified/inapp/subject.en.txt b/deployment/opencdmp/notification/notification_templates/descriptionmodified/inapp/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/descriptionmodified/inapp/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/descriptionmodified/inapp/subject.en.txt diff --git a/deployment/opendmp/notification/notification_templates/descriptiontemplateinvitation/email/body.en.html b/deployment/opencdmp/notification/notification_templates/descriptiontemplateinvitation/email/body.en.html similarity index 100% rename from deployment/opendmp/notification/notification_templates/descriptiontemplateinvitation/email/body.en.html rename to deployment/opencdmp/notification/notification_templates/descriptiontemplateinvitation/email/body.en.html diff --git a/deployment/opendmp/notification/notification_templates/descriptiontemplateinvitation/email/subject.en.txt b/deployment/opencdmp/notification/notification_templates/descriptiontemplateinvitation/email/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/descriptiontemplateinvitation/email/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/descriptiontemplateinvitation/email/subject.en.txt diff --git a/deployment/opendmp/notification/notification_templates/descriptiontemplateinvitation/inapp/body.en.html b/deployment/opencdmp/notification/notification_templates/descriptiontemplateinvitation/inapp/body.en.html similarity index 100% rename from deployment/opendmp/notification/notification_templates/descriptiontemplateinvitation/inapp/body.en.html rename to deployment/opencdmp/notification/notification_templates/descriptiontemplateinvitation/inapp/body.en.html diff --git a/deployment/opendmp/notification/notification_templates/descriptiontemplateinvitation/inapp/subject.en.txt b/deployment/opencdmp/notification/notification_templates/descriptiontemplateinvitation/inapp/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/descriptiontemplateinvitation/inapp/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/descriptiontemplateinvitation/inapp/subject.en.txt diff --git a/deployment/opendmp/notification/notification_templates/descrptionfinalised/email/body.en.html b/deployment/opencdmp/notification/notification_templates/descrptionfinalised/email/body.en.html similarity index 100% rename from deployment/opendmp/notification/notification_templates/descrptionfinalised/email/body.en.html rename to deployment/opencdmp/notification/notification_templates/descrptionfinalised/email/body.en.html diff --git a/deployment/opendmp/notification/notification_templates/descrptionfinalised/email/subject.en.txt b/deployment/opencdmp/notification/notification_templates/descrptionfinalised/email/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/descrptionfinalised/email/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/descrptionfinalised/email/subject.en.txt diff --git a/deployment/opendmp/notification/notification_templates/descrptionfinalised/inapp/body.en.html b/deployment/opencdmp/notification/notification_templates/descrptionfinalised/inapp/body.en.html similarity index 100% rename from deployment/opendmp/notification/notification_templates/descrptionfinalised/inapp/body.en.html rename to deployment/opencdmp/notification/notification_templates/descrptionfinalised/inapp/body.en.html diff --git a/deployment/opendmp/notification/notification_templates/descrptionfinalised/inapp/subject.en.txt b/deployment/opencdmp/notification/notification_templates/descrptionfinalised/inapp/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/descrptionfinalised/inapp/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/descrptionfinalised/inapp/subject.en.txt diff --git a/deployment/opendmp/notification/notification_templates/dmpdeposit/email/body.en.html b/deployment/opencdmp/notification/notification_templates/dmpdeposit/email/body.en.html similarity index 100% rename from deployment/opendmp/notification/notification_templates/dmpdeposit/email/body.en.html rename to deployment/opencdmp/notification/notification_templates/dmpdeposit/email/body.en.html diff --git a/deployment/opendmp/notification/notification_templates/dmpdeposit/email/subject.en.txt b/deployment/opencdmp/notification/notification_templates/dmpdeposit/email/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/dmpdeposit/email/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/dmpdeposit/email/subject.en.txt diff --git a/deployment/opendmp/notification/notification_templates/dmpdeposit/inapp/body.en.html b/deployment/opencdmp/notification/notification_templates/dmpdeposit/inapp/body.en.html similarity index 100% rename from deployment/opendmp/notification/notification_templates/dmpdeposit/inapp/body.en.html rename to deployment/opencdmp/notification/notification_templates/dmpdeposit/inapp/body.en.html diff --git a/deployment/opendmp/notification/notification_templates/dmpdeposit/inapp/subject.en.txt b/deployment/opencdmp/notification/notification_templates/dmpdeposit/inapp/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/dmpdeposit/inapp/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/dmpdeposit/inapp/subject.en.txt diff --git a/deployment/opendmp/notification/notification_templates/dmpfinalised/email/body.en.html b/deployment/opencdmp/notification/notification_templates/dmpfinalised/email/body.en.html similarity index 100% rename from deployment/opendmp/notification/notification_templates/dmpfinalised/email/body.en.html rename to deployment/opencdmp/notification/notification_templates/dmpfinalised/email/body.en.html diff --git a/deployment/opendmp/notification/notification_templates/dmpfinalised/email/subject.en.txt b/deployment/opencdmp/notification/notification_templates/dmpfinalised/email/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/dmpfinalised/email/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/dmpfinalised/email/subject.en.txt diff --git a/deployment/opendmp/notification/notification_templates/dmpfinalised/inapp/body.en.html b/deployment/opencdmp/notification/notification_templates/dmpfinalised/inapp/body.en.html similarity index 100% rename from deployment/opendmp/notification/notification_templates/dmpfinalised/inapp/body.en.html rename to deployment/opencdmp/notification/notification_templates/dmpfinalised/inapp/body.en.html diff --git a/deployment/opendmp/notification/notification_templates/dmpfinalised/inapp/subject.en.txt b/deployment/opencdmp/notification/notification_templates/dmpfinalised/inapp/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/dmpfinalised/inapp/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/dmpfinalised/inapp/subject.en.txt diff --git a/deployment/opendmp/notification/notification_templates/dmpinvitationexistinguser/email/body.en.html b/deployment/opencdmp/notification/notification_templates/dmpinvitationexistinguser/email/body.en.html similarity index 100% rename from deployment/opendmp/notification/notification_templates/dmpinvitationexistinguser/email/body.en.html rename to deployment/opencdmp/notification/notification_templates/dmpinvitationexistinguser/email/body.en.html diff --git a/deployment/opendmp/notification/notification_templates/dmpinvitationexistinguser/email/subject.en.txt b/deployment/opencdmp/notification/notification_templates/dmpinvitationexistinguser/email/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/dmpinvitationexistinguser/email/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/dmpinvitationexistinguser/email/subject.en.txt diff --git a/deployment/opendmp/notification/notification_templates/dmpinvitationexistinguser/inapp/body.en.html b/deployment/opencdmp/notification/notification_templates/dmpinvitationexistinguser/inapp/body.en.html similarity index 100% rename from deployment/opendmp/notification/notification_templates/dmpinvitationexistinguser/inapp/body.en.html rename to deployment/opencdmp/notification/notification_templates/dmpinvitationexistinguser/inapp/body.en.html diff --git a/deployment/opendmp/notification/notification_templates/dmpinvitationexistinguser/inapp/subject.en.txt b/deployment/opencdmp/notification/notification_templates/dmpinvitationexistinguser/inapp/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/dmpinvitationexistinguser/inapp/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/dmpinvitationexistinguser/inapp/subject.en.txt diff --git a/deployment/opendmp/notification/notification_templates/dmpinvitationexternaluser/email/body.en.html b/deployment/opencdmp/notification/notification_templates/dmpinvitationexternaluser/email/body.en.html similarity index 100% rename from deployment/opendmp/notification/notification_templates/dmpinvitationexternaluser/email/body.en.html rename to deployment/opencdmp/notification/notification_templates/dmpinvitationexternaluser/email/body.en.html diff --git a/deployment/opendmp/notification/notification_templates/dmpinvitationexternaluser/email/subject.en.txt b/deployment/opencdmp/notification/notification_templates/dmpinvitationexternaluser/email/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/dmpinvitationexternaluser/email/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/dmpinvitationexternaluser/email/subject.en.txt diff --git a/deployment/opendmp/notification/notification_templates/dmpmodified/email/body.en.html b/deployment/opencdmp/notification/notification_templates/dmpmodified/email/body.en.html similarity index 100% rename from deployment/opendmp/notification/notification_templates/dmpmodified/email/body.en.html rename to deployment/opencdmp/notification/notification_templates/dmpmodified/email/body.en.html diff --git a/deployment/opendmp/notification/notification_templates/dmpmodified/email/subject.en.txt b/deployment/opencdmp/notification/notification_templates/dmpmodified/email/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/dmpmodified/email/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/dmpmodified/email/subject.en.txt diff --git a/deployment/opendmp/notification/notification_templates/dmpmodified/inapp/body.en.html b/deployment/opencdmp/notification/notification_templates/dmpmodified/inapp/body.en.html similarity index 100% rename from deployment/opendmp/notification/notification_templates/dmpmodified/inapp/body.en.html rename to deployment/opencdmp/notification/notification_templates/dmpmodified/inapp/body.en.html diff --git a/deployment/opendmp/notification/notification_templates/dmpmodified/inapp/subject.en.txt b/deployment/opencdmp/notification/notification_templates/dmpmodified/inapp/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/dmpmodified/inapp/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/dmpmodified/inapp/subject.en.txt diff --git a/deployment/opendmp/notification/notification_templates/mergeacountconfirmation/email/body.en.html b/deployment/opencdmp/notification/notification_templates/mergeacountconfirmation/email/body.en.html similarity index 99% rename from deployment/opendmp/notification/notification_templates/mergeacountconfirmation/email/body.en.html rename to deployment/opencdmp/notification/notification_templates/mergeacountconfirmation/email/body.en.html index bc5bfc087..a2c31107c 100644 --- a/deployment/opendmp/notification/notification_templates/mergeacountconfirmation/email/body.en.html +++ b/deployment/opencdmp/notification/notification_templates/mergeacountconfirmation/email/body.en.html @@ -260,7 +260,7 @@

            Copiar o Dataset - Cria uma cópia do Dataset.

            - OpenDMP + OpenCDMP

            User {userName} have sent you a merge Request.

            Please confirm that you want to merge your {installation-url} account with that account.
            The link will expire in {expiration_time}.

            diff --git a/deployment/opendmp/notification/notification_templates/mergeacountconfirmation/email/subject.en.txt b/deployment/opencdmp/notification/notification_templates/mergeacountconfirmation/email/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/mergeacountconfirmation/email/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/mergeacountconfirmation/email/subject.en.txt diff --git a/deployment/opendmp/notification/notification_templates/mergeacountconfirmation/inapp/body.en.html b/deployment/opencdmp/notification/notification_templates/mergeacountconfirmation/inapp/body.en.html similarity index 98% rename from deployment/opendmp/notification/notification_templates/mergeacountconfirmation/inapp/body.en.html rename to deployment/opencdmp/notification/notification_templates/mergeacountconfirmation/inapp/body.en.html index b0c78080f..ce2f63d0d 100644 --- a/deployment/opendmp/notification/notification_templates/mergeacountconfirmation/inapp/body.en.html +++ b/deployment/opencdmp/notification/notification_templates/mergeacountconfirmation/inapp/body.en.html @@ -5,7 +5,7 @@ - OpenDMP + OpenCDMP

            User {userName} have sent you a merge Request.

            Please confirm that you want to merge your {installation-url} account with that account.
            The link will expire in {expiration_time}.

            diff --git a/deployment/opendmp/notification/notification_templates/mergeacountconfirmation/inapp/subject.en.txt b/deployment/opencdmp/notification/notification_templates/mergeacountconfirmation/inapp/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/mergeacountconfirmation/inapp/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/mergeacountconfirmation/inapp/subject.en.txt diff --git a/deployment/opendmp/notification/notification_templates/publiccontactsupport/email/body.en.html b/deployment/opencdmp/notification/notification_templates/publiccontactsupport/email/body.en.html similarity index 100% rename from deployment/opendmp/notification/notification_templates/publiccontactsupport/email/body.en.html rename to deployment/opencdmp/notification/notification_templates/publiccontactsupport/email/body.en.html diff --git a/deployment/opendmp/notification/notification_templates/publiccontactsupport/email/subject.en.txt b/deployment/opencdmp/notification/notification_templates/publiccontactsupport/email/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/publiccontactsupport/email/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/publiccontactsupport/email/subject.en.txt diff --git a/deployment/opendmp/notification/notification_templates/removecredentialconfirmation/email/body.en.html b/deployment/opencdmp/notification/notification_templates/removecredentialconfirmation/email/body.en.html similarity index 99% rename from deployment/opendmp/notification/notification_templates/removecredentialconfirmation/email/body.en.html rename to deployment/opencdmp/notification/notification_templates/removecredentialconfirmation/email/body.en.html index a43224531..cd3ff1e7e 100644 --- a/deployment/opendmp/notification/notification_templates/removecredentialconfirmation/email/body.en.html +++ b/deployment/opencdmp/notification/notification_templates/removecredentialconfirmation/email/body.en.html @@ -260,7 +260,7 @@
            - OpenDMP + OpenCDMP

            You have made a request to unlink your email account in ARGOS.

            Please confirm that you want to unlink your {email} account.
            The link will expire in {expiration_time}.

            diff --git a/deployment/opendmp/notification/notification_templates/removecredentialconfirmation/email/subject.en.txt b/deployment/opencdmp/notification/notification_templates/removecredentialconfirmation/email/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/removecredentialconfirmation/email/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/removecredentialconfirmation/email/subject.en.txt diff --git a/deployment/opendmp/notification/notification_templates/removecredentialconfirmation/inapp/body.en.html b/deployment/opencdmp/notification/notification_templates/removecredentialconfirmation/inapp/body.en.html similarity index 98% rename from deployment/opendmp/notification/notification_templates/removecredentialconfirmation/inapp/body.en.html rename to deployment/opencdmp/notification/notification_templates/removecredentialconfirmation/inapp/body.en.html index 24f36119e..e9a3d62be 100644 --- a/deployment/opendmp/notification/notification_templates/removecredentialconfirmation/inapp/body.en.html +++ b/deployment/opencdmp/notification/notification_templates/removecredentialconfirmation/inapp/body.en.html @@ -5,7 +5,7 @@ - OpenDMP + OpenCDMP

            You have made a request to unlink your email account in ARGOS.

            Please confirm that you want to unlink your {email} account.
            The link will expire in {expiration_time}.

            diff --git a/deployment/opendmp/notification/notification_templates/removecredentialconfirmation/inapp/subject.en.txt b/deployment/opencdmp/notification/notification_templates/removecredentialconfirmation/inapp/subject.en.txt similarity index 100% rename from deployment/opendmp/notification/notification_templates/removecredentialconfirmation/inapp/subject.en.txt rename to deployment/opencdmp/notification/notification_templates/removecredentialconfirmation/inapp/subject.en.txt diff --git a/deployment/opencdmp/zenodo/config/app.env b/deployment/opencdmp/zenodo/config/app.env new file mode 100644 index 000000000..62ff10d3a --- /dev/null +++ b/deployment/opencdmp/zenodo/config/app.env @@ -0,0 +1,9 @@ +IDP_ISSUER_URI=http://host.docker.internal:8081/keycloak/realms/OpenCDMP + +WEB_PORT=8080 + +ZENODO_CLIENT_ID=mdwl77ZpDaY4DKxzaHdfpUz4vpjtusfSdLuHzfxe +ZENODO_CLIENT_SECRET=cvTkkzmfkO7OBYIJQ2ZEWfc309ELwJBJe3rtOHZL2ITcX27woE7IUAw5NMsU +ZENODO_ACCESS_TOKEN=uUwXiySNn637uWQpcsfOtifsmLfP0lgp0N8uOssppb7ajeJCq5WicHbcC2Vk + +STORAGE_PATH=/storage \ No newline at end of file diff --git a/deployment/opendmp/zenodo/config/security-test.yml b/deployment/opencdmp/zenodo/config/security-test.yml similarity index 100% rename from deployment/opendmp/zenodo/config/security-test.yml rename to deployment/opencdmp/zenodo/config/security-test.yml diff --git a/deployment/opendmp/zenodo/config/server-test.yml b/deployment/opencdmp/zenodo/config/server-test.yml similarity index 100% rename from deployment/opendmp/zenodo/config/server-test.yml rename to deployment/opencdmp/zenodo/config/server-test.yml diff --git a/deployment/opendmp/zenodo/config/storage-test.yml b/deployment/opencdmp/zenodo/config/storage-test.yml similarity index 100% rename from deployment/opendmp/zenodo/config/storage-test.yml rename to deployment/opencdmp/zenodo/config/storage-test.yml diff --git a/deployment/opendmp/zenodo/config/zenodo-test.yml b/deployment/opencdmp/zenodo/config/zenodo-test.yml similarity index 71% rename from deployment/opendmp/zenodo/config/zenodo-test.yml rename to deployment/opencdmp/zenodo/config/zenodo-test.yml index 70ce9a897..bd1a1b1b9 100644 --- a/deployment/opendmp/zenodo/config/zenodo-test.yml +++ b/deployment/opencdmp/zenodo/config/zenodo-test.yml @@ -11,7 +11,7 @@ zenodo: repository-authorization-url: https://sandbox.zenodo.org/oauth/authorize repository-record-url: https://sandbox.zenodo.org/record/ repository-access-token-url: https://sandbox.zenodo.org/oauth/token - repository-client-id: - repository-client-secret: - redirect-uri: http://opendmp.zenodo:8080/login/external/zenodo + repository-client-id: ${ZENODO_CLIENT_ID} + repository-client-secret: ${ZENODO_CLIENT_SECRET} + redirect-uri: http://host.docker.internal:8081/login/external/zenodo has-logo: false \ No newline at end of file diff --git a/deployment/opendmp/zenodo/zenodo.jpg b/deployment/opencdmp/zenodo/zenodo.jpg similarity index 100% rename from deployment/opendmp/zenodo/zenodo.jpg rename to deployment/opencdmp/zenodo/zenodo.jpg diff --git a/deployment/opendmp/annotation/config/cors-test.yml b/deployment/opendmp/annotation/config/cors-test.yml deleted file mode 100644 index c4702bd97..000000000 --- a/deployment/opendmp/annotation/config/cors-test.yml +++ /dev/null @@ -1,3 +0,0 @@ -web: - cors: - allowed-origins: [ http://localhost:8081 ] diff --git a/deployment/opendmp/backend/config/app.env b/deployment/opendmp/backend/config/app.env deleted file mode 100644 index 3ac94c0f7..000000000 --- a/deployment/opendmp/backend/config/app.env +++ /dev/null @@ -1,57 +0,0 @@ -#DB -DB_URL=jdbc:postgresql://opendmp.postgres:5432/opendmp -DB_USER=opendmp-psql -DB_PASS=opendmp-admin - -#ELASTICSEARCH -ELASTIC_ENABLED=true -ELASTIC_USE_SSL=false -ELASTIC_HOST=opendmp.elasticsearch:9200 -ELASTIC_USER= opendmp-api-test -ELASTIC_PASS=your_password_here -ELASTIC_DMP_INDEX=plans -ELASTIC_DESCRIPTION_INDEX=descriptions - -#SERVER -WEB_PORT=8081 - -#GOTENBERG -PDF_CONVERTER_URL=http://opendmp.gotenberg:3000/ - -#STORAGE -FILE_STORAGE=/storage - -#RABBITMQ -RABBIT_HOST=opendmp.rabbitmq -RABBIT_PORT=5672 -RABBIT_USER=guest -RABBIT_PASS=guest - -#KEYCLOAK -KEYCLOAK_API_SERVER_URL=http://localhost:8082/keycloak/ -KEYCLOAK_API_REALM=OpenDMP -KEYCLOAK_API_USERNAME=keycloak-admin -KEYCLOAK_API_PASSWORD=admin -KEYCLOAK_API_CLIENT_ID=dmp_web -KEYCLOAK_API_CLIENT_SECRET=VNK5kd01faV8Fp9BZgKcthOPo1eXdodK - -#SECURITY -IDP_ISSUER_URI=http://localhost:8082/keycloak/realms/OpenDMP -IDP_ISSUER_URI_TOKEN=http://localhost:8082/keycloak/realms/OpenDMP/protocol/openid-connect/token -IDP_APIKEY_CLIENT_ID=dmp_web -IDP_APIKEY_CLIENT_SECRET=VNK5kd01faV8Fp9BZgKcthOPo1eXdodK -IDP_APIKEY_SCOPE=dmp_plugins - -#METRICS -IDP_APIKEY_CLIENT_ID_UUID=c82150e9-a9e5-4a5f-bd0f-5f25460b3e08 - -QUEUE_APP_ID=opendmp-web-staging - -#EMAIL -MAIL_HOST=smtp.office365.com -MAIL_PORT=587 -MAIL_USERNAME= -MAIL_PASSWORD= -MAIL_AUTH=false -MAIL_TLS=true -MAIL_ADDRESS=dmp_web@admin.gr \ No newline at end of file diff --git a/deployment/opendmp/backend/config/cors-test.yml b/deployment/opendmp/backend/config/cors-test.yml deleted file mode 100644 index 41387330e..000000000 --- a/deployment/opendmp/backend/config/cors-test.yml +++ /dev/null @@ -1,3 +0,0 @@ -web: - cors: - allowed-origins: [ http://localhost, http://localhost:8082, http://localhost:8081 ] diff --git a/deployment/opendmp/file-transformer-docx/config/app.env b/deployment/opendmp/file-transformer-docx/config/app.env deleted file mode 100644 index 6f6879de3..000000000 --- a/deployment/opendmp/file-transformer-docx/config/app.env +++ /dev/null @@ -1,8 +0,0 @@ -#Security -IDP_ISSUER_URI=http://localhost:8082/keycloak/realms/OpenDMP - -#PDF -PDF_CONVERTER_URL=http://opendmp.gotenberg:3000 - -#Storage -STORAGE_PATH=/storage \ No newline at end of file diff --git a/deployment/opendmp/file-transformer-rda-json/config/app.env b/deployment/opendmp/file-transformer-rda-json/config/app.env deleted file mode 100644 index 6f07e1bb0..000000000 --- a/deployment/opendmp/file-transformer-rda-json/config/app.env +++ /dev/null @@ -1,5 +0,0 @@ -#Security -IDP_ISSUER_URI=http://localhost:8082/keycloak/realms/OpenDMP - -#Storage -STORAGE_PATH=/storage \ No newline at end of file diff --git a/deployment/opendmp/notification/config/cors-test.yml b/deployment/opendmp/notification/config/cors-test.yml deleted file mode 100644 index a6ce3d47b..000000000 --- a/deployment/opendmp/notification/config/cors-test.yml +++ /dev/null @@ -1,3 +0,0 @@ -web: - cors: - allowed-origins: [ http://localhost, http://localhost:8082 ] diff --git a/deployment/opendmp/zenodo/config/app.env b/deployment/opendmp/zenodo/config/app.env deleted file mode 100644 index ba26b55c3..000000000 --- a/deployment/opendmp/zenodo/config/app.env +++ /dev/null @@ -1,7 +0,0 @@ -IDP_ISSUER_URI=http://localhost:8082/keycloak/realms/OpenDMP - -WEB_PORT=8080 - -ZENODO_ACCESS_TOKEN=uUwXiySNn637uWQpcsfOtifsmLfP0lgp0N8uOssppb7ajeJCq5WicHbcC2Vk - -STORAGE_PATH=/storage \ No newline at end of file diff --git a/deployment/postgres/opencdmp_init.sql b/deployment/postgres/opencdmp_init.sql new file mode 100644 index 000000000..cb124c5db --- /dev/null +++ b/deployment/postgres/opencdmp_init.sql @@ -0,0 +1,3607 @@ +-- +-- PostgreSQL database dump +-- + +-- Dumped from database version 16.2 +-- Dumped by pg_dump version 16.2 + +-- Started on 2024-05-09 15:11:12 +CREATE DATABASE keycloak WITH OWNER "postgres"; +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +-- +-- TOC entry 4125 (class 1262 OID 63739) +-- Name: opencdmp; Type: DATABASE; Schema: -; Owner: - +-- + +CREATE DATABASE "opencdmp" WITH TEMPLATE = template0 ENCODING = 'UTF8' LOCALE_PROVIDER = libc LOCALE = 'en_US.utf8'; + + +\connect -reuse-previous=on "dbname='opencdmp'" + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +-- +-- TOC entry 2 (class 3079 OID 63740) +-- Name: uuid-ossp; Type: EXTENSION; Schema: -; Owner: - +-- + +CREATE EXTENSION IF NOT EXISTS "uuid-ossp" WITH SCHEMA public; + + +-- +-- TOC entry 4126 (class 0 OID 0) +-- Dependencies: 2 +-- Name: EXTENSION "uuid-ossp"; Type: COMMENT; Schema: -; Owner: - +-- + +COMMENT ON EXTENSION "uuid-ossp" IS 'generate universally unique identifiers (UUIDs)'; + + +-- +-- TOC entry 932 (class 1247 OID 63752) +-- Name: doientitytype; Type: TYPE; Schema: public; Owner: - +-- + +CREATE TYPE public.doientitytype AS ENUM ( + 'DMP' +); + + +-- +-- TOC entry 935 (class 1247 OID 63756) +-- Name: entitytype; Type: TYPE; Schema: public; Owner: - +-- + +CREATE TYPE public.entitytype AS ENUM ( + 'DATASET', + 'DMP' +); + + +SET default_table_access_method = heap; + +-- +-- TOC entry 216 (class 1259 OID 63761) +-- Name: ActionConfirmation; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ActionConfirmation" ( + id uuid NOT NULL, + type smallint NOT NULL, + status smallint NOT NULL, + token character varying NOT NULL, + data text NOT NULL, + expires_at timestamp without time zone NOT NULL, + created_by uuid NOT NULL, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + is_active smallint NOT NULL, + tenant uuid +); + + +-- +-- TOC entry 217 (class 1259 OID 63766) +-- Name: Content; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."Content" ( + "Id" uuid NOT NULL, + "Filename" character varying NOT NULL, + "Extension" character varying NOT NULL, + "ParentType" numeric NOT NULL, + "Uri" character varying NOT NULL, + "LocationType" numeric NOT NULL +); + + +-- +-- TOC entry 218 (class 1259 OID 63771) +-- Name: Credential; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."Credential" ( + "Id" uuid NOT NULL, + "Status" numeric NOT NULL, + "Provider" numeric NOT NULL, + "Public" character varying NOT NULL, + "Secret" character varying NOT NULL, + "CreationTime" date NOT NULL, + "LastUpdateTime" date NOT NULL, + "UserId" uuid NOT NULL, + "ExternalId" character varying NOT NULL, + "Email" character varying +); + + +-- +-- TOC entry 219 (class 1259 OID 63776) +-- Name: DBVersion; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."DBVersion" ( + key character varying NOT NULL, + version character varying NOT NULL, + "releasedAt" timestamp with time zone NOT NULL, + "deployedAt" timestamp with time zone, + description text +); + + +-- +-- TOC entry 220 (class 1259 OID 63781) +-- Name: DMP; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."DMP" ( + "ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL, + "GroupId" uuid, + "Label" character varying(250) NOT NULL, + "Version" integer NOT NULL, + "Grant" uuid, + "AssociatedDmps" xml, + "Profile" uuid, + "Status" smallint DEFAULT 0 NOT NULL, + "Created" timestamp without time zone DEFAULT now() NOT NULL, + "Modified" timestamp without time zone DEFAULT now() NOT NULL, + "Description" text, + "Creator" uuid, + "Properties" text, + "DmpProperties" text, + "FinalizedAt" timestamp(6) with time zone, + "isPublic" boolean DEFAULT false NOT NULL, + "PublishedAt" timestamp(6) with time zone, + "Project" uuid, + "extraProperties" text +); + + +-- +-- TOC entry 4127 (class 0 OID 0) +-- Dependencies: 220 +-- Name: COLUMN "DMP"."AssociatedDmps"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."DMP"."AssociatedDmps" IS 'More data about the DMP as defined by the profile'; + + +-- +-- TOC entry 221 (class 1259 OID 63791) +-- Name: DMPDatasetProfile; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."DMPDatasetProfile" ( + "ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL, + dmp uuid NOT NULL, + datasetprofile uuid NOT NULL, + data text NOT NULL +); + + +-- +-- TOC entry 222 (class 1259 OID 63797) +-- Name: DMPOrganisation; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."DMPOrganisation" ( + "DMP" uuid NOT NULL, + "Organisation" uuid NOT NULL, + "Role" integer, + "ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL +); + + +-- +-- TOC entry 4128 (class 0 OID 0) +-- Dependencies: 222 +-- Name: TABLE "DMPOrganisation"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON TABLE public."DMPOrganisation" IS 'Linking of DMPs to Organisations'; + + +-- +-- TOC entry 4129 (class 0 OID 0) +-- Dependencies: 222 +-- Name: COLUMN "DMPOrganisation"."Role"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."DMPOrganisation"."Role" IS 'Enumerator of roles'; + + +-- +-- TOC entry 223 (class 1259 OID 63801) +-- Name: DMPResearcher; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."DMPResearcher" ( + "DMP" uuid NOT NULL, + "Researcher" uuid NOT NULL, + "Role" integer, + "ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL +); + + +-- +-- TOC entry 4130 (class 0 OID 0) +-- Dependencies: 223 +-- Name: TABLE "DMPResearcher"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON TABLE public."DMPResearcher" IS 'Linking of DMPs to researchers'; + + +-- +-- TOC entry 4131 (class 0 OID 0) +-- Dependencies: 223 +-- Name: COLUMN "DMPResearcher"."Role"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."DMPResearcher"."Role" IS 'Enumerator of roles'; + + +-- +-- TOC entry 224 (class 1259 OID 63805) +-- Name: DataRepository; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."DataRepository" ( + "ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL, + "Label" character varying(250), + "Abbreviation" character varying(50), + "Reference" character varying, + "Uri" character varying(250), + "Definition" xml, + "Status" smallint DEFAULT 0 NOT NULL, + "Created" timestamp without time zone DEFAULT now() NOT NULL, + "Modified" timestamp without time zone DEFAULT now() NOT NULL, + "CreationUser" uuid +); + + +-- +-- TOC entry 225 (class 1259 OID 63814) +-- Name: Dataset; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."Dataset" ( + "ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL, + "Label" character varying(250) NOT NULL, + "DMP" uuid, + "Uri" character varying(250), + "Properties" text, + "Profile" uuid, + "Reference" text, + "Status" smallint DEFAULT 0 NOT NULL, + "Created" timestamp without time zone DEFAULT now() NOT NULL, + "Modified" timestamp without time zone DEFAULT now() NOT NULL, + "Description" text, + "Creator" uuid, + "FinalizedAt" timestamp(6) with time zone, + "DmpSectionIndex" integer NOT NULL +); + + +-- +-- TOC entry 4132 (class 0 OID 0) +-- Dependencies: 225 +-- Name: COLUMN "Dataset"."Uri"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."Dataset"."Uri" IS 'URI of item'; + + +-- +-- TOC entry 4133 (class 0 OID 0) +-- Dependencies: 225 +-- Name: COLUMN "Dataset"."Properties"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."Dataset"."Properties" IS 'More data about the dataset such as Uri, data types etc as defined by the profile'; + + +-- +-- TOC entry 226 (class 1259 OID 63823) +-- Name: DatasetDataRepository; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."DatasetDataRepository" ( + "Dataset" uuid NOT NULL, + "DataRepository" uuid NOT NULL, + "Role" integer, + "ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL, + "Data" character varying +); + + +-- +-- TOC entry 4134 (class 0 OID 0) +-- Dependencies: 226 +-- Name: TABLE "DatasetDataRepository"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON TABLE public."DatasetDataRepository" IS 'Linking Dataset to DataRepository'; + + +-- +-- TOC entry 227 (class 1259 OID 63829) +-- Name: DatasetExternalDataset; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."DatasetExternalDataset" ( + "Id" uuid DEFAULT public.uuid_generate_v4() NOT NULL, + "Dataset" uuid NOT NULL, + "ExternalDataset" uuid NOT NULL, + "Role" numeric, + "Data" character varying +); + + +-- +-- TOC entry 228 (class 1259 OID 63835) +-- Name: DatasetRegistry; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."DatasetRegistry" ( + "Dataset" uuid NOT NULL, + "Registry" uuid NOT NULL, + "Role" integer, + "ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL, + "Data" character varying +); + + +-- +-- TOC entry 4135 (class 0 OID 0) +-- Dependencies: 228 +-- Name: TABLE "DatasetRegistry"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON TABLE public."DatasetRegistry" IS 'Linking Dataset to Registry'; + + +-- +-- TOC entry 229 (class 1259 OID 63841) +-- Name: DatasetService; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."DatasetService" ( + "Dataset" uuid NOT NULL, + "Service" uuid NOT NULL, + "Role" integer, + "ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL, + "Data" character varying +); + + +-- +-- TOC entry 4136 (class 0 OID 0) +-- Dependencies: 229 +-- Name: TABLE "DatasetService"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON TABLE public."DatasetService" IS 'Linking Dataset to Service'; + + +-- +-- TOC entry 230 (class 1259 OID 63847) +-- Name: Description; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."Description" ( + id uuid NOT NULL, + label character varying(250) NOT NULL, + dmp uuid NOT NULL, + properties text, + status smallint DEFAULT 0 NOT NULL, + description text, + created_at timestamp without time zone DEFAULT now() NOT NULL, + updated_at timestamp without time zone DEFAULT now() NOT NULL, + is_active smallint DEFAULT 1 NOT NULL, + finalized_at timestamp without time zone, + description_template uuid NOT NULL, + created_by uuid NOT NULL, + dmp_description_template uuid NOT NULL, + tenant uuid +); + + +-- +-- TOC entry 231 (class 1259 OID 63856) +-- Name: DescriptionReference; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."DescriptionReference" ( + id uuid NOT NULL, + data text, + description_id uuid NOT NULL, + reference_id uuid NOT NULL, + created_at timestamp without time zone DEFAULT now() NOT NULL, + updated_at timestamp without time zone DEFAULT now() NOT NULL, + is_active smallint DEFAULT 1 NOT NULL, + tenant uuid +); + + +-- +-- TOC entry 232 (class 1259 OID 63864) +-- Name: DescriptionTag; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."DescriptionTag" ( + id uuid NOT NULL, + description uuid NOT NULL, + tag uuid NOT NULL, + is_active smallint NOT NULL, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + tenant uuid +); + + +-- +-- TOC entry 233 (class 1259 OID 63867) +-- Name: DescriptionTemplate; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."DescriptionTemplate" ( + id uuid DEFAULT public.uuid_generate_v4() NOT NULL, + label character varying(250) NOT NULL, + definition xml NOT NULL, + status smallint DEFAULT 0 NOT NULL, + created_at timestamp without time zone DEFAULT now() NOT NULL, + updated_at timestamp without time zone DEFAULT now() NOT NULL, + description text NOT NULL, + group_id uuid NOT NULL, + version integer NOT NULL, + language character varying NOT NULL, + type uuid NOT NULL, + is_active smallint NOT NULL, + version_status smallint NOT NULL, + tenant uuid +); + + +-- +-- TOC entry 4137 (class 0 OID 0) +-- Dependencies: 233 +-- Name: TABLE "DescriptionTemplate"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON TABLE public."DescriptionTemplate" IS 'Profiles for dmp datasets'; + + +-- +-- TOC entry 234 (class 1259 OID 63876) +-- Name: DescriptionTemplateType; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."DescriptionTemplateType" ( + id uuid NOT NULL, + name character varying(250) NOT NULL, + status smallint DEFAULT 0 NOT NULL, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + is_active smallint NOT NULL, + tenant uuid +); + + +-- +-- TOC entry 235 (class 1259 OID 63880) +-- Name: Dmp; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."Dmp" ( + id uuid NOT NULL, + label character varying(250) NOT NULL, + version integer NOT NULL, + status smallint DEFAULT 0 NOT NULL, + properties text, + group_id uuid NOT NULL, + description text, + created_at timestamp without time zone DEFAULT now() NOT NULL, + updated_at timestamp without time zone DEFAULT now() NOT NULL, + is_active smallint DEFAULT 1 NOT NULL, + finalized_at timestamp without time zone, + creator uuid NOT NULL, + blueprint uuid NOT NULL, + language character varying(100), + access_type smallint, + public_after timestamp without time zone, + version_status smallint DEFAULT 1 NOT NULL, + tenant uuid +); + + +-- +-- TOC entry 236 (class 1259 OID 63890) +-- Name: DmpBlueprint; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."DmpBlueprint" ( + id uuid DEFAULT public.uuid_generate_v4() NOT NULL, + label character varying(250) NOT NULL, + definition xml, + status smallint DEFAULT 0 NOT NULL, + created_at timestamp without time zone DEFAULT now() NOT NULL, + updated_at timestamp without time zone DEFAULT now() NOT NULL, + is_active smallint NOT NULL, + tenant uuid, + group_id uuid NOT NULL, + version integer NOT NULL, + version_status smallint NOT NULL +); + + +-- +-- TOC entry 237 (class 1259 OID 63899) +-- Name: DmpDescriptionTemplate; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."DmpDescriptionTemplate" ( + id uuid NOT NULL, + dmp uuid NOT NULL, + description_template_group uuid NOT NULL, + section_id uuid NOT NULL, + created_at timestamp without time zone DEFAULT now() NOT NULL, + updated_at timestamp without time zone DEFAULT now() NOT NULL, + is_active smallint DEFAULT 1 NOT NULL, + tenant uuid +); + + +-- +-- TOC entry 238 (class 1259 OID 63905) +-- Name: DmpReference; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."DmpReference" ( + id uuid NOT NULL, + dmp_id uuid NOT NULL, + reference_id uuid NOT NULL, + data text, + created_at timestamp without time zone DEFAULT now() NOT NULL, + updated_at timestamp without time zone DEFAULT now() NOT NULL, + is_active smallint DEFAULT 1 NOT NULL, + tenant uuid +); + + +-- +-- TOC entry 239 (class 1259 OID 63913) +-- Name: DmpUser; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."DmpUser" ( + id uuid NOT NULL, + dmp uuid NOT NULL, + "user" uuid NOT NULL, + role smallint DEFAULT 0 NOT NULL, + created_at timestamp without time zone DEFAULT now() NOT NULL, + updated_at timestamp without time zone DEFAULT now() NOT NULL, + is_active smallint DEFAULT 1 NOT NULL, + tenant uuid, + section_id uuid +); + + +-- +-- TOC entry 240 (class 1259 OID 63920) +-- Name: DoiFunder; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."DoiFunder" ( + id uuid DEFAULT public.uuid_generate_v4() NOT NULL, + name character varying, + doi character varying +); + + +-- +-- TOC entry 241 (class 1259 OID 63926) +-- Name: EmailConfirmation; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."EmailConfirmation" ( + "ID" uuid NOT NULL, + email character varying NOT NULL, + "isConfirmed" boolean NOT NULL, + token uuid NOT NULL, + "userId" uuid NOT NULL, + "expiresAt" timestamp(4) with time zone NOT NULL, + data text +); + + +-- +-- TOC entry 242 (class 1259 OID 63931) +-- Name: EntityDoi; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."EntityDoi" ( + id uuid NOT NULL, + repository_id character varying(150) NOT NULL, + doi character varying(50) NOT NULL, + created_at timestamp(6) with time zone DEFAULT now() NOT NULL, + updated_at timestamp(6) with time zone DEFAULT now() NOT NULL, + entity_id uuid NOT NULL, + is_active smallint DEFAULT 1 NOT NULL, + tenant uuid, + entity_type smallint NOT NULL +); + + +-- +-- TOC entry 243 (class 1259 OID 63937) +-- Name: ExternalDataset; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ExternalDataset" ( + "Id" uuid DEFAULT public.uuid_generate_v4() NOT NULL, + "Label" character varying NOT NULL, + "Abbreviation" character varying, + "Reference" character varying NOT NULL, + "Created" date NOT NULL, + "Modified" date NOT NULL, + "CreationUser" uuid +); + + +-- +-- TOC entry 244 (class 1259 OID 63943) +-- Name: FileUpload; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."FileUpload" ( + "ID" uuid NOT NULL, + "Name" character varying(250) NOT NULL, + "FileType" character varying(50) NOT NULL, + "EntityId" uuid NOT NULL, + "EntityType" public.entitytype NOT NULL, + "CreatedAt" timestamp(6) with time zone DEFAULT now() NOT NULL, + "IsDeleted" boolean DEFAULT false NOT NULL, + "Creator" uuid NOT NULL +); + + +-- +-- TOC entry 245 (class 1259 OID 63948) +-- Name: Funder; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."Funder" ( + "ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL, + "Label" character varying(250) NOT NULL, + "Reference" character varying, + "Definition" character varying, + "Status" smallint DEFAULT 0 NOT NULL, + "Created" timestamp(4) with time zone DEFAULT now() NOT NULL, + "Modified" timestamp(4) with time zone DEFAULT now() NOT NULL, + "Type" numeric DEFAULT 0 NOT NULL, + "CreationUser" uuid +); + + +-- +-- TOC entry 246 (class 1259 OID 63958) +-- Name: Grant; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."Grant" ( + "ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL, + "Label" character varying(250) NOT NULL, + "Abbreviation" character varying(50), + "Reference" character varying, + "Uri" character varying(250), + "Definition" character varying, + "Status" smallint DEFAULT 0 NOT NULL, + "Created" timestamp without time zone DEFAULT now() NOT NULL, + "Modified" timestamp without time zone DEFAULT now() NOT NULL, + "StartDate" timestamp without time zone, + "EndDate" timestamp without time zone, + "Description" text, + "CreationUser" uuid DEFAULT '332ffc36-bd51-4d4e-bf9a-ffb01fdee05a'::uuid, + "Type" numeric DEFAULT 0 NOT NULL, + "Content" uuid, + "Funder" uuid +); + + +-- +-- TOC entry 4138 (class 0 OID 0) +-- Dependencies: 246 +-- Name: TABLE "Grant"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON TABLE public."Grant" IS 'Table of project managed in the system'; + + +-- +-- TOC entry 4139 (class 0 OID 0) +-- Dependencies: 246 +-- Name: COLUMN "Grant"."ID"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."Grant"."ID" IS 'Unique identifier and primary key of item'; + + +-- +-- TOC entry 4140 (class 0 OID 0) +-- Dependencies: 246 +-- Name: COLUMN "Grant"."Label"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."Grant"."Label" IS 'A human readable long label of the item'; + + +-- +-- TOC entry 4141 (class 0 OID 0) +-- Dependencies: 246 +-- Name: COLUMN "Grant"."Abbreviation"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."Grant"."Abbreviation" IS 'A human readable abbreviation of the item'; + + +-- +-- TOC entry 4142 (class 0 OID 0) +-- Dependencies: 246 +-- Name: COLUMN "Grant"."Reference"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."Grant"."Reference" IS 'Additional reference data for the item along with information to allow how the item reached the system (e.g. via an external vocabulary)'; + + +-- +-- TOC entry 4143 (class 0 OID 0) +-- Dependencies: 246 +-- Name: COLUMN "Grant"."Uri"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."Grant"."Uri" IS 'URI of item'; + + +-- +-- TOC entry 4144 (class 0 OID 0) +-- Dependencies: 246 +-- Name: COLUMN "Grant"."Definition"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."Grant"."Definition" IS 'More data about the project such as web site, start/stop, etc'; + + +-- +-- TOC entry 247 (class 1259 OID 63969) +-- Name: Invitation; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."Invitation" ( + "Id" uuid NOT NULL, + "InvitationEmail" character varying NOT NULL, + "Token" uuid NOT NULL, + "CreationUser" uuid NOT NULL, + "Dmp" uuid NOT NULL, + "Properties" xml, + "AcceptedInvitation" boolean +); + + +-- +-- TOC entry 248 (class 1259 OID 63974) +-- Name: Language; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."Language" ( + id uuid NOT NULL, + code character varying(20) NOT NULL, + payload text, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + is_active smallint NOT NULL, + ordinal integer NOT NULL, + tenant uuid +); + + +-- +-- TOC entry 249 (class 1259 OID 63979) +-- Name: Lock; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."Lock" ( + id uuid NOT NULL, + target uuid NOT NULL, + target_type smallint NOT NULL, + locked_by uuid NOT NULL, + locked_at timestamp without time zone NOT NULL, + touched_at timestamp without time zone, + tenant uuid +); + + +-- +-- TOC entry 250 (class 1259 OID 63982) +-- Name: NotificationLegacy; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."NotificationLegacy" ( + id uuid NOT NULL, + "UserId" uuid, + "IsActive" integer NOT NULL, + "Type" integer NOT NULL, + "ContactTypeHint" integer, + "ContactHint" character varying, + "Data" character varying, + "NotifyState" integer NOT NULL, + "NotifiedAt" timestamp without time zone, + "RetryCount" integer, + "CreatedAt" timestamp without time zone, + "UpdatedAt" timestamp without time zone +); + + +-- +-- TOC entry 251 (class 1259 OID 63987) +-- Name: Organisation; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."Organisation" ( + "ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL, + "Label" character varying(250) NOT NULL, + "Abbreviation" character varying(50), + "Reference" character varying, + "Uri" character varying(250), + "Definition" xml, + "Status" smallint DEFAULT 0 NOT NULL, + "Created" timestamp without time zone DEFAULT now() NOT NULL, + "Modified" timestamp without time zone DEFAULT now() NOT NULL +); + + +-- +-- TOC entry 4145 (class 0 OID 0) +-- Dependencies: 251 +-- Name: TABLE "Organisation"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON TABLE public."Organisation" IS 'Table of organizations utilized in the project'; + + +-- +-- TOC entry 4146 (class 0 OID 0) +-- Dependencies: 251 +-- Name: COLUMN "Organisation"."ID"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."Organisation"."ID" IS 'Unique identifier and primary key of item'; + + +-- +-- TOC entry 4147 (class 0 OID 0) +-- Dependencies: 251 +-- Name: COLUMN "Organisation"."Label"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."Organisation"."Label" IS 'A human readable long label of the item'; + + +-- +-- TOC entry 4148 (class 0 OID 0) +-- Dependencies: 251 +-- Name: COLUMN "Organisation"."Abbreviation"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."Organisation"."Abbreviation" IS 'A human readable abbreviation of the item'; + + +-- +-- TOC entry 4149 (class 0 OID 0) +-- Dependencies: 251 +-- Name: COLUMN "Organisation"."Reference"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."Organisation"."Reference" IS 'Reference to the URI of the item along with information to allow how the item reached the system (e.g. via an external vocabulary)'; + + +-- +-- TOC entry 4150 (class 0 OID 0) +-- Dependencies: 251 +-- Name: COLUMN "Organisation"."Uri"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."Organisation"."Uri" IS 'URI of item'; + + +-- +-- TOC entry 4151 (class 0 OID 0) +-- Dependencies: 251 +-- Name: COLUMN "Organisation"."Definition"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."Organisation"."Definition" IS 'More data about the Organisation such as web site, type etc'; + + +-- +-- TOC entry 252 (class 1259 OID 63996) +-- Name: PrefillingSource; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."PrefillingSource" ( + id uuid NOT NULL, + label character varying(250) NOT NULL, + definition xml NOT NULL, + is_active smallint NOT NULL, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + tenant uuid +); + + +-- +-- TOC entry 253 (class 1259 OID 64001) +-- Name: Project; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."Project" ( + "ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL, + "Label" character varying(250) NOT NULL, + "Abbreviation" character varying(50), + "Reference" character varying, + "Uri" character varying(250), + "Definition" character varying, + "Status" smallint DEFAULT 0 NOT NULL, + "Created" timestamp(4) with time zone DEFAULT now() NOT NULL, + "Modified" timestamp(4) with time zone DEFAULT now() NOT NULL, + "StartDate" timestamp(4) with time zone, + "EndDate" timestamp(4) with time zone, + "Description" text, + "CreationUser" uuid, + "Type" numeric DEFAULT 0 NOT NULL, + "Content" uuid +); + + +-- +-- TOC entry 254 (class 1259 OID 64011) +-- Name: QueueInbox; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."QueueInbox" ( + id uuid NOT NULL, + queue character varying(200) NOT NULL, + exchange character varying(200) NOT NULL, + route character varying(200) NOT NULL, + application_id character varying(100) NOT NULL, + message_id uuid NOT NULL, + message json NOT NULL, + retry_count integer, + status smallint NOT NULL, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + tenant uuid, + is_active smallint NOT NULL +); + + +-- +-- TOC entry 255 (class 1259 OID 64016) +-- Name: QueueOutbox; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."QueueOutbox" ( + id uuid NOT NULL, + exchange character varying(200) NOT NULL, + route character varying(200) NOT NULL, + message_id uuid NOT NULL, + notify_status smallint NOT NULL, + retry_count integer NOT NULL, + published_at timestamp without time zone, + confirmed_at timestamp without time zone, + tenant uuid, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + message text NOT NULL, + is_active smallint NOT NULL +); + + +-- +-- TOC entry 256 (class 1259 OID 64021) +-- Name: Reference; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."Reference" ( + id uuid NOT NULL, + label character varying(1024) NOT NULL, + description text, + abbreviation character varying(50), + source character varying(1024), + is_active smallint NOT NULL, + created_by uuid, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + type uuid NOT NULL, + definition character varying, + reference character varying(1024) NOT NULL, + source_type smallint NOT NULL, + tenant uuid +); + + +-- +-- TOC entry 257 (class 1259 OID 64026) +-- Name: ReferenceType; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ReferenceType" ( + id uuid NOT NULL, + name character varying(250) NOT NULL, + code character varying(100) NOT NULL, + definition character varying NOT NULL, + is_active smallint NOT NULL, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + tenant uuid +); + + +-- +-- TOC entry 258 (class 1259 OID 64031) +-- Name: Registry; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."Registry" ( + "ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL, + "Label" character varying(250), + "Abbreviation" character varying(50), + "Reference" character varying, + "Uri" character varying(250), + "Definition" xml, + "Status" smallint DEFAULT 0 NOT NULL, + "Created" timestamp without time zone DEFAULT now() NOT NULL, + "Modified" timestamp without time zone DEFAULT now() NOT NULL, + "CreationUser" uuid +); + + +-- +-- TOC entry 259 (class 1259 OID 64040) +-- Name: Researcher; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."Researcher" ( + "ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL, + "Label" character varying(250) NOT NULL, + "Uri" character varying(250), + "PrimaryEmail" character varying(250), + "Definition" xml, + "Reference" character varying, + "Status" smallint DEFAULT 0 NOT NULL, + "Created" timestamp without time zone DEFAULT now() NOT NULL, + "Modified" timestamp without time zone DEFAULT now() NOT NULL, + "CreationUser" uuid +); + + +-- +-- TOC entry 4152 (class 0 OID 0) +-- Dependencies: 259 +-- Name: TABLE "Researcher"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON TABLE public."Researcher" IS 'Table of Researcher managed in the system'; + + +-- +-- TOC entry 4153 (class 0 OID 0) +-- Dependencies: 259 +-- Name: COLUMN "Researcher"."ID"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."Researcher"."ID" IS 'Unique identifier and primary key of item'; + + +-- +-- TOC entry 4154 (class 0 OID 0) +-- Dependencies: 259 +-- Name: COLUMN "Researcher"."Label"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."Researcher"."Label" IS 'Full name of the researcher (as presented by the system, and composed automatically by data or provided by the reference service)'; + + +-- +-- TOC entry 4155 (class 0 OID 0) +-- Dependencies: 259 +-- Name: COLUMN "Researcher"."Uri"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."Researcher"."Uri" IS 'URI of item'; + + +-- +-- TOC entry 4156 (class 0 OID 0) +-- Dependencies: 259 +-- Name: COLUMN "Researcher"."Definition"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."Researcher"."Definition" IS 'More data about the researcher such as: email addresses, affiliations etc'; + + +-- +-- TOC entry 4157 (class 0 OID 0) +-- Dependencies: 259 +-- Name: COLUMN "Researcher"."Reference"; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."Researcher"."Reference" IS 'Additional reference data for the item along with information to allow how the item reached the system (e.g. via an external vocabulary)'; + + +-- +-- TOC entry 260 (class 1259 OID 64049) +-- Name: Service; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."Service" ( + "ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL, + "Label" character varying(250), + "Abbreviation" character varying(50), + "Reference" character varying, + "Uri" character varying(250), + "Definition" xml, + "Status" smallint DEFAULT 0 NOT NULL, + "Created" timestamp without time zone DEFAULT now() NOT NULL, + "Modified" timestamp without time zone DEFAULT now() NOT NULL, + "CreationUser" uuid +); + + +-- +-- TOC entry 261 (class 1259 OID 64058) +-- Name: StorageFile; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."StorageFile" ( + id uuid NOT NULL, + file_ref character varying(100) NOT NULL, + name character varying(250) NOT NULL, + extension character varying(10) NOT NULL, + mime_type character varying(200) NOT NULL, + storage_type smallint NOT NULL, + created_at timestamp without time zone NOT NULL, + purge_at timestamp without time zone, + purged_at timestamp without time zone, + owner uuid, + tenant uuid +); + + +-- +-- TOC entry 262 (class 1259 OID 64063) +-- Name: SupportiveMaterial; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."SupportiveMaterial" ( + id uuid NOT NULL, + type smallint NOT NULL, + language_code character varying(20) NOT NULL, + payload character varying NOT NULL, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + is_active smallint NOT NULL, + tenant uuid +); + + +-- +-- TOC entry 263 (class 1259 OID 64068) +-- Name: Tag; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."Tag" ( + id uuid NOT NULL, + label character varying(1024) NOT NULL, + created_by uuid, + is_active smallint NOT NULL, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + tenant uuid +); + + +-- +-- TOC entry 264 (class 1259 OID 64073) +-- Name: Tenant; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."Tenant" ( + id uuid NOT NULL, + name character varying(200) NOT NULL, + code character varying(500) NOT NULL, + description character varying NOT NULL, + config text, + is_active smallint NOT NULL, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL +); + + +-- +-- TOC entry 265 (class 1259 OID 64078) +-- Name: TenantConfiguration; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."TenantConfiguration" ( + id uuid NOT NULL, + value character varying NOT NULL, + type smallint NOT NULL, + is_active smallint NOT NULL, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + tenant uuid +); + + +-- +-- TOC entry 266 (class 1259 OID 64083) +-- Name: TenantUser; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."TenantUser" ( + id uuid NOT NULL, + "user" uuid NOT NULL, + tenant uuid NOT NULL, + is_active smallint NOT NULL, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL +); + + +-- +-- TOC entry 267 (class 1259 OID 64086) +-- Name: User; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."User" ( + id uuid NOT NULL, + name character varying(250), + additional_info character varying, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + is_active smallint NOT NULL +); + + +-- +-- TOC entry 268 (class 1259 OID 64091) +-- Name: UserAssociation; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."UserAssociation" ( + id uuid NOT NULL, + "firstUser" uuid NOT NULL, + "secondUser" uuid NOT NULL +); + + +-- +-- TOC entry 269 (class 1259 OID 64094) +-- Name: UserContactInfo; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."UserContactInfo" ( + id uuid NOT NULL, + "user" uuid NOT NULL, + ordinal integer DEFAULT 0 NOT NULL, + type smallint NOT NULL, + value character varying(512) NOT NULL, + created_at timestamp without time zone NOT NULL +); + + +-- +-- TOC entry 270 (class 1259 OID 64100) +-- Name: UserCredential; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."UserCredential" ( + id uuid NOT NULL, + "user" uuid NOT NULL, + data character varying, + external_id character varying(512) NOT NULL, + created_at timestamp without time zone NOT NULL +); + + +-- +-- TOC entry 271 (class 1259 OID 64105) +-- Name: UserDMP; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."UserDMP" ( + id uuid DEFAULT public.uuid_generate_v4() NOT NULL, + usr uuid NOT NULL, + dmp uuid NOT NULL, + role integer +); + + +-- +-- TOC entry 272 (class 1259 OID 64109) +-- Name: UserDescriptionTemplate; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."UserDescriptionTemplate" ( + id uuid NOT NULL, + "user" uuid NOT NULL, + description_template uuid NOT NULL, + role smallint NOT NULL, + updated_at timestamp without time zone NOT NULL, + created_at timestamp without time zone NOT NULL, + is_active smallint NOT NULL, + tenant uuid +); + + +-- +-- TOC entry 273 (class 1259 OID 64112) +-- Name: UserInfo; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."UserInfo" ( + id uuid DEFAULT public.uuid_generate_v4() NOT NULL, + email character varying(250), + authorization_level smallint NOT NULL, + usertype smallint NOT NULL, + verified_email boolean, + name character varying(250), + created timestamp without time zone, + lastloggedin timestamp without time zone, + additionalinfo json, + userstatus smallint NOT NULL +); + + +-- +-- TOC entry 4158 (class 0 OID 0) +-- Dependencies: 273 +-- Name: COLUMN "UserInfo".authorization_level; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."UserInfo".authorization_level IS 'This stores the authorization level of the user: 0 admin, 1 user, being able to be extended furthermore'; + + +-- +-- TOC entry 4159 (class 0 OID 0) +-- Dependencies: 273 +-- Name: COLUMN "UserInfo".usertype; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public."UserInfo".usertype IS 'This stores the type of user: 0 -> internal, 1 external'; + + +-- +-- TOC entry 274 (class 1259 OID 64118) +-- Name: UserRole; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."UserRole" ( + id uuid DEFAULT public.uuid_generate_v4() NOT NULL, + "user" uuid NOT NULL, + role character varying(512) NOT NULL, + created_at timestamp without time zone NOT NULL, + tenant uuid +); + + +-- +-- TOC entry 275 (class 1259 OID 64124) +-- Name: UserSettings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."UserSettings" ( + id uuid NOT NULL, + key character varying(500) NOT NULL, + entity_id uuid, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + type character varying(200) NOT NULL, + value text NOT NULL, + name character varying(500) NOT NULL, + tenant uuid +); + + +-- +-- TOC entry 276 (class 1259 OID 64129) +-- Name: UserToken; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."UserToken" ( + "Token" uuid NOT NULL, + "UserId" uuid NOT NULL, + "IssuedAt" date NOT NULL, + "ExpiresAt" date NOT NULL +); + + +-- +-- TOC entry 277 (class 1259 OID 64132) +-- Name: ant_Annotation; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ant_Annotation" ( + id uuid NOT NULL, + entity_id uuid NOT NULL, + entity_type character varying(512) NOT NULL, + anchor character varying(512), + payload text, + tenant uuid, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + is_active smallint NOT NULL, + subject_id uuid NOT NULL, + thread_id uuid, + parent_id uuid, + protection_type smallint NOT NULL, + time_stamp timestamp without time zone NOT NULL +); + + +-- +-- TOC entry 278 (class 1259 OID 64137) +-- Name: ant_EntityUser; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ant_EntityUser" ( + id uuid NOT NULL, + entity_id uuid NOT NULL, + user_id uuid NOT NULL, + tenant uuid, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + is_active smallint NOT NULL +); + + +-- +-- TOC entry 279 (class 1259 OID 64140) +-- Name: ant_QueueInbox; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ant_QueueInbox" ( + id uuid NOT NULL, + queue character varying(200) NOT NULL, + exchange character varying(200) NOT NULL, + route character varying(200) NOT NULL, + application_id character varying(100) NOT NULL, + message_id uuid NOT NULL, + message json NOT NULL, + retry_count integer, + status smallint NOT NULL, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + tenant uuid, + is_active smallint NOT NULL +); + + +-- +-- TOC entry 280 (class 1259 OID 64145) +-- Name: ant_QueueOutbox; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ant_QueueOutbox" ( + id uuid NOT NULL, + exchange character varying(200) NOT NULL, + route character varying(200) NOT NULL, + message_id uuid NOT NULL, + notify_status smallint NOT NULL, + retry_count integer NOT NULL, + published_at timestamp without time zone, + confirmed_at timestamp without time zone, + tenant uuid, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + message text NOT NULL, + is_active smallint NOT NULL +); + + +-- +-- TOC entry 281 (class 1259 OID 64150) +-- Name: ant_Tenant; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ant_Tenant" ( + id uuid NOT NULL, + code character varying(200) NOT NULL, + created_at timestamp without time zone DEFAULT now() NOT NULL, + updated_at timestamp without time zone DEFAULT now() NOT NULL, + is_active smallint DEFAULT 1 NOT NULL +); + + +-- +-- TOC entry 282 (class 1259 OID 64156) +-- Name: ant_TenantUser; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ant_TenantUser" ( + id uuid NOT NULL, + "user" uuid NOT NULL, + tenant uuid NOT NULL, + is_active smallint NOT NULL, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL +); + + +-- +-- TOC entry 283 (class 1259 OID 64159) +-- Name: ant_User; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ant_User" ( + id uuid NOT NULL, + name character varying(250), + additional_info character varying, + created_at timestamp without time zone DEFAULT now() NOT NULL, + updated_at timestamp without time zone DEFAULT now() NOT NULL, + is_active smallint DEFAULT 1 NOT NULL +); + + +-- +-- TOC entry 284 (class 1259 OID 64167) +-- Name: ant_UserContactInfo; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ant_UserContactInfo" ( + id uuid NOT NULL, + "user" uuid NOT NULL, + ordinal integer DEFAULT 0 NOT NULL, + type smallint NOT NULL, + value character varying(512) NOT NULL, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + is_active smallint DEFAULT 1 NOT NULL +); + + +-- +-- TOC entry 285 (class 1259 OID 64174) +-- Name: ant_UserCredential; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ant_UserCredential" ( + id uuid NOT NULL, + "user" uuid NOT NULL, + external_id character varying(512) NOT NULL, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + is_active smallint DEFAULT 1 NOT NULL, + data character varying +); + + +-- +-- TOC entry 286 (class 1259 OID 64180) +-- Name: ntf_InAppNotification; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ntf_InAppNotification" ( + id uuid NOT NULL, + "user" uuid NOT NULL, + type uuid NOT NULL, + read_time timestamp without time zone, + tracking_state smallint NOT NULL, + priority smallint NOT NULL, + subject character varying, + body character varying, + extra_data character varying, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + tenant uuid, + is_active smallint NOT NULL +); + + +-- +-- TOC entry 287 (class 1259 OID 64185) +-- Name: ntf_Notification; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ntf_Notification" ( + id uuid NOT NULL, + "user" uuid, + tenant uuid, + type uuid, + contact_hint character varying(200), + notified_at timestamp without time zone, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + data text, + retry_count integer, + tracking_data text, + provenance_ref character varying(200), + tracking_state smallint NOT NULL, + tracking_process smallint NOT NULL, + is_active smallint NOT NULL, + contact_type_hint smallint, + notify_state smallint, + notified_with smallint +); + + +-- +-- TOC entry 288 (class 1259 OID 64190) +-- Name: ntf_NotificationTemplate; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ntf_NotificationTemplate" ( + id uuid NOT NULL, + channel smallint NOT NULL, + notification_type uuid NOT NULL, + kind smallint NOT NULL, + language_code character varying(200) NOT NULL, + value text NOT NULL, + is_active smallint NOT NULL, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + tenant uuid +); + + +-- +-- TOC entry 289 (class 1259 OID 64195) +-- Name: ntf_QueueInbox; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ntf_QueueInbox" ( + id uuid NOT NULL, + queue character varying(200) NOT NULL, + exchange character varying(200) NOT NULL, + route character varying(200) NOT NULL, + application_id character varying(100) NOT NULL, + message_id uuid NOT NULL, + message json NOT NULL, + retry_count integer, + status smallint NOT NULL, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + tenant uuid, + is_active smallint NOT NULL +); + + +-- +-- TOC entry 290 (class 1259 OID 64200) +-- Name: ntf_QueueOutbox; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ntf_QueueOutbox" ( + id uuid NOT NULL, + exchange character varying(200) NOT NULL, + route character varying(200) NOT NULL, + message_id uuid NOT NULL, + notify_status smallint NOT NULL, + retry_count integer NOT NULL, + published_at timestamp without time zone, + confirmed_at timestamp without time zone, + tenant uuid, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + message text NOT NULL, + is_active smallint NOT NULL +); + + +-- +-- TOC entry 291 (class 1259 OID 64205) +-- Name: ntf_Tenant; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ntf_Tenant" ( + id uuid NOT NULL, + code character varying(200) NOT NULL, + created_at timestamp without time zone DEFAULT now() NOT NULL, + updated_at timestamp without time zone DEFAULT now() NOT NULL, + is_active smallint DEFAULT 1 NOT NULL +); + + +-- +-- TOC entry 292 (class 1259 OID 64211) +-- Name: ntf_TenantConfiguration; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ntf_TenantConfiguration" ( + id uuid NOT NULL, + tenant uuid, + type smallint NOT NULL, + value character varying NOT NULL, + is_active smallint NOT NULL, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL +); + + +-- +-- TOC entry 293 (class 1259 OID 64216) +-- Name: ntf_TenantUser; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ntf_TenantUser" ( + id uuid NOT NULL, + "user" uuid NOT NULL, + tenant uuid NOT NULL, + is_active smallint NOT NULL, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL +); + + +-- +-- TOC entry 294 (class 1259 OID 64219) +-- Name: ntf_User; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ntf_User" ( + id uuid NOT NULL, + name character varying(250), + additional_info character varying, + created_at timestamp without time zone DEFAULT now() NOT NULL, + updated_at timestamp without time zone DEFAULT now() NOT NULL, + is_active smallint DEFAULT 1 NOT NULL +); + + +-- +-- TOC entry 295 (class 1259 OID 64227) +-- Name: ntf_UserContactInfo; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ntf_UserContactInfo" ( + id uuid NOT NULL, + "user" uuid NOT NULL, + ordinal integer DEFAULT 0 NOT NULL, + type smallint NOT NULL, + value character varying(512) NOT NULL, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + is_active smallint DEFAULT 1 NOT NULL +); + + +-- +-- TOC entry 296 (class 1259 OID 64234) +-- Name: ntf_UserCredential; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ntf_UserCredential" ( + id uuid NOT NULL, + "user" uuid NOT NULL, + external_id character varying(512) NOT NULL, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + is_active smallint DEFAULT 1 NOT NULL, + data character varying +); + + +-- +-- TOC entry 297 (class 1259 OID 64240) +-- Name: ntf_UserNotificationPreference; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public."ntf_UserNotificationPreference" ( + id uuid NOT NULL, + "user" uuid NOT NULL, + type uuid NOT NULL, + channel smallint NOT NULL, + ordinal numeric NOT NULL, + tenant uuid, + created_at timestamp without time zone NOT NULL, + updated_at timestamp without time zone NOT NULL, + is_active smallint DEFAULT 1 NOT NULL +); + + +-- +-- TOC entry 3700 (class 2606 OID 73494) +-- Name: ActionConfirmation ActionConfirmation_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ActionConfirmation" + ADD CONSTRAINT "ActionConfirmation_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3702 (class 2606 OID 73496) +-- Name: Content Content_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Content" + ADD CONSTRAINT "Content_pkey" PRIMARY KEY ("Id"); + + +-- +-- TOC entry 3704 (class 2606 OID 73498) +-- Name: Credential Credential_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Credential" + ADD CONSTRAINT "Credential_pkey" PRIMARY KEY ("Id"); + + +-- +-- TOC entry 3709 (class 2606 OID 73500) +-- Name: DMPDatasetProfile DMPDatasetProfile_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DMPDatasetProfile" + ADD CONSTRAINT "DMPDatasetProfile_pkey" PRIMARY KEY ("ID"); + + +-- +-- TOC entry 3740 (class 2606 OID 73502) +-- Name: DmpBlueprint DMPPRofile_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DmpBlueprint" + ADD CONSTRAINT "DMPPRofile_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3706 (class 2606 OID 73504) +-- Name: DMP DMP_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DMP" + ADD CONSTRAINT "DMP_pkey" PRIMARY KEY ("ID"); + + +-- +-- TOC entry 3720 (class 2606 OID 73506) +-- Name: DatasetDataRepository DatasetDataRepository_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DatasetDataRepository" + ADD CONSTRAINT "DatasetDataRepository_pkey" PRIMARY KEY ("ID"); + + +-- +-- TOC entry 3722 (class 2606 OID 73508) +-- Name: DatasetExternalDataset DatasetExternalDataset_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DatasetExternalDataset" + ADD CONSTRAINT "DatasetExternalDataset_pkey" PRIMARY KEY ("Id"); + + +-- +-- TOC entry 3734 (class 2606 OID 73510) +-- Name: DescriptionTemplate DatasetProfile_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DescriptionTemplate" + ADD CONSTRAINT "DatasetProfile_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3724 (class 2606 OID 73512) +-- Name: DatasetRegistry DatasetRegistry_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DatasetRegistry" + ADD CONSTRAINT "DatasetRegistry_pkey" PRIMARY KEY ("ID"); + + +-- +-- TOC entry 3726 (class 2606 OID 73514) +-- Name: DatasetService DatasetService_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DatasetService" + ADD CONSTRAINT "DatasetService_pkey" PRIMARY KEY ("ID"); + + +-- +-- TOC entry 3717 (class 2606 OID 73516) +-- Name: Dataset Dataset_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Dataset" + ADD CONSTRAINT "Dataset_pkey" PRIMARY KEY ("ID"); + + +-- +-- TOC entry 3730 (class 2606 OID 73518) +-- Name: DescriptionReference DescriptionReference_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DescriptionReference" + ADD CONSTRAINT "DescriptionReference_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3732 (class 2606 OID 73520) +-- Name: DescriptionTag DescriptionTag_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DescriptionTag" + ADD CONSTRAINT "DescriptionTag_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3736 (class 2606 OID 73522) +-- Name: DescriptionTemplateType DescriptionTemplateType_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DescriptionTemplateType" + ADD CONSTRAINT "DescriptionTemplateType_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3728 (class 2606 OID 73524) +-- Name: Description Description_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Description" + ADD CONSTRAINT "Description_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3742 (class 2606 OID 73526) +-- Name: DmpDescriptionTemplate DmpDescriptionTemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DmpDescriptionTemplate" + ADD CONSTRAINT "DmpDescriptionTemplate_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3744 (class 2606 OID 73528) +-- Name: DmpReference DmpReference_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DmpReference" + ADD CONSTRAINT "DmpReference_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3746 (class 2606 OID 73530) +-- Name: DmpUser DmpUser_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DmpUser" + ADD CONSTRAINT "DmpUser_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3738 (class 2606 OID 73532) +-- Name: Dmp Dmp_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Dmp" + ADD CONSTRAINT "Dmp_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3748 (class 2606 OID 73534) +-- Name: DoiFunder DoiFunder_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DoiFunder" + ADD CONSTRAINT "DoiFunder_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3752 (class 2606 OID 73536) +-- Name: EntityDoi Doi_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."EntityDoi" + ADD CONSTRAINT "Doi_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3754 (class 2606 OID 73538) +-- Name: ExternalDataset ExternalDataset_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ExternalDataset" + ADD CONSTRAINT "ExternalDataset_pkey" PRIMARY KEY ("Id"); + + +-- +-- TOC entry 3756 (class 2606 OID 73540) +-- Name: FileUpload File_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."FileUpload" + ADD CONSTRAINT "File_pkey" PRIMARY KEY ("ID"); + + +-- +-- TOC entry 3758 (class 2606 OID 73542) +-- Name: Funder Funder_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Funder" + ADD CONSTRAINT "Funder_pkey" PRIMARY KEY ("ID"); + + +-- +-- TOC entry 3760 (class 2606 OID 73544) +-- Name: Grant Grant_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Grant" + ADD CONSTRAINT "Grant_pkey" PRIMARY KEY ("ID"); + + +-- +-- TOC entry 3762 (class 2606 OID 73546) +-- Name: Invitation Invitation_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Invitation" + ADD CONSTRAINT "Invitation_pkey" PRIMARY KEY ("Id"); + + +-- +-- TOC entry 3764 (class 2606 OID 73548) +-- Name: Language Language_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Language" + ADD CONSTRAINT "Language_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3766 (class 2606 OID 73550) +-- Name: Lock Lock_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Lock" + ADD CONSTRAINT "Lock_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3750 (class 2606 OID 73552) +-- Name: EmailConfirmation LoginConfirmationEmail_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."EmailConfirmation" + ADD CONSTRAINT "LoginConfirmationEmail_pkey" PRIMARY KEY ("ID"); + + +-- +-- TOC entry 3768 (class 2606 OID 73554) +-- Name: NotificationLegacy NotificationLegacy_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."NotificationLegacy" + ADD CONSTRAINT "NotificationLegacy_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3844 (class 2606 OID 73556) +-- Name: ntf_NotificationTemplate NotificationTemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_NotificationTemplate" + ADD CONSTRAINT "NotificationTemplate_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3856 (class 2606 OID 73558) +-- Name: ntf_User Ntf_User_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_User" + ADD CONSTRAINT "Ntf_User_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3770 (class 2606 OID 73560) +-- Name: Organisation Organisation_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Organisation" + ADD CONSTRAINT "Organisation_pkey" PRIMARY KEY ("ID"); + + +-- +-- TOC entry 3711 (class 2606 OID 73562) +-- Name: DMPOrganisation PKey_DMPOrganisation; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DMPOrganisation" + ADD CONSTRAINT "PKey_DMPOrganisation" PRIMARY KEY ("ID"); + + +-- +-- TOC entry 3713 (class 2606 OID 73564) +-- Name: DMPResearcher PKey_DMPResearcher; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DMPResearcher" + ADD CONSTRAINT "PKey_DMPResearcher" PRIMARY KEY ("ID"); + + +-- +-- TOC entry 3715 (class 2606 OID 73566) +-- Name: DataRepository PKey_DataRepository; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DataRepository" + ADD CONSTRAINT "PKey_DataRepository" PRIMARY KEY ("ID"); + + +-- +-- TOC entry 3784 (class 2606 OID 73568) +-- Name: Registry PKey_Registry; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Registry" + ADD CONSTRAINT "PKey_Registry" PRIMARY KEY ("ID"); + + +-- +-- TOC entry 3788 (class 2606 OID 73570) +-- Name: Service PKey_Service; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Service" + ADD CONSTRAINT "PKey_Service" PRIMARY KEY ("ID"); + + +-- +-- TOC entry 3772 (class 2606 OID 73572) +-- Name: PrefillingSource PrefillingSource_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."PrefillingSource" + ADD CONSTRAINT "PrefillingSource_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3774 (class 2606 OID 73574) +-- Name: Project Project_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Project" + ADD CONSTRAINT "Project_pkey" PRIMARY KEY ("ID"); + + +-- +-- TOC entry 3776 (class 2606 OID 73576) +-- Name: QueueInbox QueryInbox_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."QueueInbox" + ADD CONSTRAINT "QueryInbox_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3778 (class 2606 OID 73578) +-- Name: QueueOutbox QueueOutbox_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."QueueOutbox" + ADD CONSTRAINT "QueueOutbox_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3782 (class 2606 OID 73580) +-- Name: ReferenceType ReferenceType_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ReferenceType" + ADD CONSTRAINT "ReferenceType_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3780 (class 2606 OID 73582) +-- Name: Reference Reference_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Reference" + ADD CONSTRAINT "Reference_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3786 (class 2606 OID 73584) +-- Name: Researcher Researcher_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Researcher" + ADD CONSTRAINT "Researcher_pkey" PRIMARY KEY ("ID"); + + +-- +-- TOC entry 3790 (class 2606 OID 73586) +-- Name: StorageFile StorageFile_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."StorageFile" + ADD CONSTRAINT "StorageFile_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3792 (class 2606 OID 73588) +-- Name: SupportiveMaterial SupportiveMaterial_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."SupportiveMaterial" + ADD CONSTRAINT "SupportiveMaterial_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3794 (class 2606 OID 73590) +-- Name: Tag Tag_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Tag" + ADD CONSTRAINT "Tag_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3798 (class 2606 OID 73592) +-- Name: TenantConfiguration TenantConfiguration_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."TenantConfiguration" + ADD CONSTRAINT "TenantConfiguration_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3800 (class 2606 OID 73594) +-- Name: TenantUser TenantUser_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."TenantUser" + ADD CONSTRAINT "TenantUser_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3796 (class 2606 OID 73596) +-- Name: Tenant Tenant_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Tenant" + ADD CONSTRAINT "Tenant_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3806 (class 2606 OID 73598) +-- Name: UserContactInfo UserContactInfo_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."UserContactInfo" + ADD CONSTRAINT "UserContactInfo_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3808 (class 2606 OID 73600) +-- Name: UserCredential UserCredential_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."UserCredential" + ADD CONSTRAINT "UserCredential_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3810 (class 2606 OID 73602) +-- Name: UserDescriptionTemplate UserDatasetProfile_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."UserDescriptionTemplate" + ADD CONSTRAINT "UserDatasetProfile_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3812 (class 2606 OID 73604) +-- Name: UserInfo UserInfo_email_key; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."UserInfo" + ADD CONSTRAINT "UserInfo_email_key" UNIQUE (email); + + +-- +-- TOC entry 3814 (class 2606 OID 73606) +-- Name: UserInfo UserInfo_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."UserInfo" + ADD CONSTRAINT "UserInfo_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3816 (class 2606 OID 73608) +-- Name: UserRole UserRole_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."UserRole" + ADD CONSTRAINT "UserRole_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3820 (class 2606 OID 73610) +-- Name: UserToken UserToken_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."UserToken" + ADD CONSTRAINT "UserToken_pkey" PRIMARY KEY ("Token"); + + +-- +-- TOC entry 3802 (class 2606 OID 73612) +-- Name: User User_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."User" + ADD CONSTRAINT "User_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3822 (class 2606 OID 73614) +-- Name: ant_Annotation ant_Annotation_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ant_Annotation" + ADD CONSTRAINT "ant_Annotation_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3824 (class 2606 OID 73616) +-- Name: ant_EntityUser ant_EntityUser_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ant_EntityUser" + ADD CONSTRAINT "ant_EntityUser_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3826 (class 2606 OID 73618) +-- Name: ant_QueueInbox ant_QueryInbox_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ant_QueueInbox" + ADD CONSTRAINT "ant_QueryInbox_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3828 (class 2606 OID 73620) +-- Name: ant_QueueOutbox ant_QueueOutbox_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ant_QueueOutbox" + ADD CONSTRAINT "ant_QueueOutbox_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3832 (class 2606 OID 73622) +-- Name: ant_TenantUser ant_TenantUser_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ant_TenantUser" + ADD CONSTRAINT "ant_TenantUser_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3830 (class 2606 OID 73624) +-- Name: ant_Tenant ant_Tenant_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ant_Tenant" + ADD CONSTRAINT "ant_Tenant_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3836 (class 2606 OID 73626) +-- Name: ant_UserContactInfo ant_UserContactInfo_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ant_UserContactInfo" + ADD CONSTRAINT "ant_UserContactInfo_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3838 (class 2606 OID 73628) +-- Name: ant_UserCredential ant_UserCredential_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ant_UserCredential" + ADD CONSTRAINT "ant_UserCredential_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3834 (class 2606 OID 73630) +-- Name: ant_User ant_User_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ant_User" + ADD CONSTRAINT "ant_User_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3840 (class 2606 OID 73632) +-- Name: ntf_InAppNotification ntf_InAppNotification_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_InAppNotification" + ADD CONSTRAINT "ntf_InAppNotification_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3842 (class 2606 OID 73634) +-- Name: ntf_Notification ntf_Notification_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_Notification" + ADD CONSTRAINT "ntf_Notification_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3846 (class 2606 OID 73636) +-- Name: ntf_QueueInbox ntf_QueryInbox_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_QueueInbox" + ADD CONSTRAINT "ntf_QueryInbox_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3848 (class 2606 OID 73638) +-- Name: ntf_QueueOutbox ntf_QueueOutbox_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_QueueOutbox" + ADD CONSTRAINT "ntf_QueueOutbox_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3852 (class 2606 OID 73640) +-- Name: ntf_TenantConfiguration ntf_TenantConfguration_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_TenantConfiguration" + ADD CONSTRAINT "ntf_TenantConfguration_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3854 (class 2606 OID 73642) +-- Name: ntf_TenantUser ntf_TenantUser_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_TenantUser" + ADD CONSTRAINT "ntf_TenantUser_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3850 (class 2606 OID 73644) +-- Name: ntf_Tenant ntf_Tenant_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_Tenant" + ADD CONSTRAINT "ntf_Tenant_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3858 (class 2606 OID 73646) +-- Name: ntf_UserContactInfo ntf_UserContactInfo_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_UserContactInfo" + ADD CONSTRAINT "ntf_UserContactInfo_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3860 (class 2606 OID 73648) +-- Name: ntf_UserCredential ntf_UserCredential_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_UserCredential" + ADD CONSTRAINT "ntf_UserCredential_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3862 (class 2606 OID 73650) +-- Name: ntf_UserNotificationPreference ntf_UserNotificationPreference_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_UserNotificationPreference" + ADD CONSTRAINT "ntf_UserNotificationPreference_pkey" PRIMARY KEY (id); + + +-- +-- TOC entry 3804 (class 2606 OID 73652) +-- Name: UserAssociation pk_user_association; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."UserAssociation" + ADD CONSTRAINT pk_user_association PRIMARY KEY (id); + + +-- +-- TOC entry 3818 (class 2606 OID 73654) +-- Name: UserSettings user_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."UserSettings" + ADD CONSTRAINT user_settings_pkey PRIMARY KEY (id); + + +-- +-- TOC entry 3707 (class 1259 OID 73655) +-- Name: fki_DMPDMPProfileReference; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX "fki_DMPDMPProfileReference" ON public."DMP" USING btree ("Profile"); + + +-- +-- TOC entry 3718 (class 1259 OID 73656) +-- Name: fki_DatasetDatasetProfileReference; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX "fki_DatasetDatasetProfileReference" ON public."Dataset" USING btree ("Profile"); + + +-- +-- TOC entry 3863 (class 2606 OID 73657) +-- Name: ActionConfirmation ActionConfirmation_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ActionConfirmation" + ADD CONSTRAINT "ActionConfirmation_created_by_fkey" FOREIGN KEY (created_by) REFERENCES public."User"(id); + + +-- +-- TOC entry 3864 (class 2606 OID 73662) +-- Name: ActionConfirmation ActionConfirmation_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ActionConfirmation" + ADD CONSTRAINT "ActionConfirmation_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id); + + +-- +-- TOC entry 3865 (class 2606 OID 73667) +-- Name: Credential Credential_UserId_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Credential" + ADD CONSTRAINT "Credential_UserId_fkey" FOREIGN KEY ("UserId") REFERENCES public."User"(id) NOT VALID; + + +-- +-- TOC entry 3866 (class 2606 OID 73672) +-- Name: DMP DMPDMPProfileReference; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DMP" + ADD CONSTRAINT "DMPDMPProfileReference" FOREIGN KEY ("Profile") REFERENCES public."DmpBlueprint"(id); + + +-- +-- TOC entry 3869 (class 2606 OID 73677) +-- Name: DMPDatasetProfile DMPDatasetProfile_datasetprofile_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DMPDatasetProfile" + ADD CONSTRAINT "DMPDatasetProfile_datasetprofile_fkey" FOREIGN KEY (datasetprofile) REFERENCES public."DescriptionTemplate"(id); + + +-- +-- TOC entry 3870 (class 2606 OID 73682) +-- Name: DMPDatasetProfile DMPDatasetProfile_dmp_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DMPDatasetProfile" + ADD CONSTRAINT "DMPDatasetProfile_dmp_fkey" FOREIGN KEY (dmp) REFERENCES public."DMP"("ID"); + + +-- +-- TOC entry 3871 (class 2606 OID 73687) +-- Name: DMPOrganisation DMPOrganisationDMPReference; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DMPOrganisation" + ADD CONSTRAINT "DMPOrganisationDMPReference" FOREIGN KEY ("Organisation") REFERENCES public."Organisation"("ID"); + + +-- +-- TOC entry 3872 (class 2606 OID 73692) +-- Name: DMPOrganisation DMPOrganisationOrganisationReference; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DMPOrganisation" + ADD CONSTRAINT "DMPOrganisationOrganisationReference" FOREIGN KEY ("DMP") REFERENCES public."DMP"("ID"); + + +-- +-- TOC entry 3867 (class 2606 OID 73697) +-- Name: DMP DMPProjectReference; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DMP" + ADD CONSTRAINT "DMPProjectReference" FOREIGN KEY ("Grant") REFERENCES public."Grant"("ID"); + + +-- +-- TOC entry 3873 (class 2606 OID 73702) +-- Name: DMPResearcher DMPResearcherDMPReference; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DMPResearcher" + ADD CONSTRAINT "DMPResearcherDMPReference" FOREIGN KEY ("Researcher") REFERENCES public."Researcher"("ID"); + + +-- +-- TOC entry 3874 (class 2606 OID 73707) +-- Name: DMPResearcher DMPResearcherResearcherReference; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DMPResearcher" + ADD CONSTRAINT "DMPResearcherResearcherReference" FOREIGN KEY ("DMP") REFERENCES public."DMP"("ID"); + + +-- +-- TOC entry 3868 (class 2606 OID 73712) +-- Name: DMP DMP_Creator_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DMP" + ADD CONSTRAINT "DMP_Creator_fkey" FOREIGN KEY ("Creator") REFERENCES public."User"(id) NOT VALID; + + +-- +-- TOC entry 3875 (class 2606 OID 73717) +-- Name: Dataset DatasetDMPReference; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Dataset" + ADD CONSTRAINT "DatasetDMPReference" FOREIGN KEY ("DMP") REFERENCES public."DMP"("ID"); + + +-- +-- TOC entry 3878 (class 2606 OID 73722) +-- Name: DatasetDataRepository DatasetDataRepositoryDataRepositoryReference; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DatasetDataRepository" + ADD CONSTRAINT "DatasetDataRepositoryDataRepositoryReference" FOREIGN KEY ("DataRepository") REFERENCES public."DataRepository"("ID"); + + +-- +-- TOC entry 3879 (class 2606 OID 73727) +-- Name: DatasetDataRepository DatasetDataRepositoryDatasetReference; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DatasetDataRepository" + ADD CONSTRAINT "DatasetDataRepositoryDatasetReference" FOREIGN KEY ("Dataset") REFERENCES public."Dataset"("ID"); + + +-- +-- TOC entry 3876 (class 2606 OID 73732) +-- Name: Dataset DatasetDatasetProfileReference; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Dataset" + ADD CONSTRAINT "DatasetDatasetProfileReference" FOREIGN KEY ("Profile") REFERENCES public."DescriptionTemplate"(id); + + +-- +-- TOC entry 3882 (class 2606 OID 73737) +-- Name: DatasetRegistry DatasetRegistryDatasetReference; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DatasetRegistry" + ADD CONSTRAINT "DatasetRegistryDatasetReference" FOREIGN KEY ("Dataset") REFERENCES public."Dataset"("ID"); + + +-- +-- TOC entry 3883 (class 2606 OID 73742) +-- Name: DatasetRegistry DatasetRegistryRegistryReference; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DatasetRegistry" + ADD CONSTRAINT "DatasetRegistryRegistryReference" FOREIGN KEY ("Registry") REFERENCES public."Registry"("ID"); + + +-- +-- TOC entry 3884 (class 2606 OID 73747) +-- Name: DatasetService DatasetServiceDatasetReference; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DatasetService" + ADD CONSTRAINT "DatasetServiceDatasetReference" FOREIGN KEY ("Dataset") REFERENCES public."Dataset"("ID"); + + +-- +-- TOC entry 3885 (class 2606 OID 73752) +-- Name: DatasetService DatasetServiceServiceReference; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DatasetService" + ADD CONSTRAINT "DatasetServiceServiceReference" FOREIGN KEY ("Service") REFERENCES public."Service"("ID"); + + +-- +-- TOC entry 3877 (class 2606 OID 73757) +-- Name: Dataset Dataset_Creator_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Dataset" + ADD CONSTRAINT "Dataset_Creator_fkey" FOREIGN KEY ("Creator") REFERENCES public."User"(id) NOT VALID; + + +-- +-- TOC entry 3891 (class 2606 OID 73762) +-- Name: DescriptionReference DescriptionReference_description_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DescriptionReference" + ADD CONSTRAINT "DescriptionReference_description_fkey" FOREIGN KEY (description_id) REFERENCES public."Description"(id); + + +-- +-- TOC entry 3892 (class 2606 OID 73767) +-- Name: DescriptionReference DescriptionReference_reference_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DescriptionReference" + ADD CONSTRAINT "DescriptionReference_reference_fkey" FOREIGN KEY (reference_id) REFERENCES public."Reference"(id); + + +-- +-- TOC entry 3893 (class 2606 OID 73772) +-- Name: DescriptionReference DescriptionReference_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DescriptionReference" + ADD CONSTRAINT "DescriptionReference_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID; + + +-- +-- TOC entry 3894 (class 2606 OID 73777) +-- Name: DescriptionTag DescriptionTag_description_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DescriptionTag" + ADD CONSTRAINT "DescriptionTag_description_fkey" FOREIGN KEY (description) REFERENCES public."Description"(id); + + +-- +-- TOC entry 3895 (class 2606 OID 73782) +-- Name: DescriptionTag DescriptionTag_tag_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DescriptionTag" + ADD CONSTRAINT "DescriptionTag_tag_fkey" FOREIGN KEY (tag) REFERENCES public."Tag"(id); + + +-- +-- TOC entry 3896 (class 2606 OID 73787) +-- Name: DescriptionTag DescriptionTag_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DescriptionTag" + ADD CONSTRAINT "DescriptionTag_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID; + + +-- +-- TOC entry 3899 (class 2606 OID 73792) +-- Name: DescriptionTemplateType DescriptionTemplateType_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DescriptionTemplateType" + ADD CONSTRAINT "DescriptionTemplateType_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID; + + +-- +-- TOC entry 3897 (class 2606 OID 73797) +-- Name: DescriptionTemplate DescriptionTemplate_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DescriptionTemplate" + ADD CONSTRAINT "DescriptionTemplate_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID; + + +-- +-- TOC entry 3898 (class 2606 OID 73802) +-- Name: DescriptionTemplate DescriptionTemplate_type_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DescriptionTemplate" + ADD CONSTRAINT "DescriptionTemplate_type_fkey" FOREIGN KEY (type) REFERENCES public."DescriptionTemplateType"(id); + + +-- +-- TOC entry 3886 (class 2606 OID 73807) +-- Name: Description Description_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Description" + ADD CONSTRAINT "Description_created_by_fkey" FOREIGN KEY (created_by) REFERENCES public."User"(id) NOT VALID; + + +-- +-- TOC entry 3887 (class 2606 OID 73812) +-- Name: Description Description_description_template_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Description" + ADD CONSTRAINT "Description_description_template_fkey" FOREIGN KEY (description_template) REFERENCES public."DescriptionTemplate"(id) NOT VALID; + + +-- +-- TOC entry 3888 (class 2606 OID 73817) +-- Name: Description Description_dmp_description_template_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Description" + ADD CONSTRAINT "Description_dmp_description_template_fkey" FOREIGN KEY (dmp_description_template) REFERENCES public."DmpDescriptionTemplate"(id) NOT VALID; + + +-- +-- TOC entry 3889 (class 2606 OID 73822) +-- Name: Description Description_dmp_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Description" + ADD CONSTRAINT "Description_dmp_fkey" FOREIGN KEY (dmp) REFERENCES public."Dmp"(id); + + +-- +-- TOC entry 3890 (class 2606 OID 73827) +-- Name: Description Description_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Description" + ADD CONSTRAINT "Description_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID; + + +-- +-- TOC entry 3903 (class 2606 OID 73832) +-- Name: DmpBlueprint DmpBlueprint_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DmpBlueprint" + ADD CONSTRAINT "DmpBlueprint_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID; + + +-- +-- TOC entry 3904 (class 2606 OID 73837) +-- Name: DmpDescriptionTemplate DmpDescriptionTemplate_dmp_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DmpDescriptionTemplate" + ADD CONSTRAINT "DmpDescriptionTemplate_dmp_fkey" FOREIGN KEY (dmp) REFERENCES public."Dmp"(id); + + +-- +-- TOC entry 3905 (class 2606 OID 73842) +-- Name: DmpDescriptionTemplate DmpDescriptionTemplate_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DmpDescriptionTemplate" + ADD CONSTRAINT "DmpDescriptionTemplate_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID; + + +-- +-- TOC entry 3906 (class 2606 OID 73847) +-- Name: DmpReference DmpReference_dmp_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DmpReference" + ADD CONSTRAINT "DmpReference_dmp_id_fkey" FOREIGN KEY (dmp_id) REFERENCES public."Dmp"(id); + + +-- +-- TOC entry 3907 (class 2606 OID 73852) +-- Name: DmpReference DmpReference_reference_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DmpReference" + ADD CONSTRAINT "DmpReference_reference_id_fkey" FOREIGN KEY (reference_id) REFERENCES public."Reference"(id); + + +-- +-- TOC entry 3908 (class 2606 OID 73857) +-- Name: DmpReference DmpReference_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DmpReference" + ADD CONSTRAINT "DmpReference_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID; + + +-- +-- TOC entry 3909 (class 2606 OID 73862) +-- Name: DmpUser DmpUser_dmp_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DmpUser" + ADD CONSTRAINT "DmpUser_dmp_fkey" FOREIGN KEY (dmp) REFERENCES public."Dmp"(id); + + +-- +-- TOC entry 3910 (class 2606 OID 73867) +-- Name: DmpUser DmpUser_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DmpUser" + ADD CONSTRAINT "DmpUser_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID; + + +-- +-- TOC entry 3911 (class 2606 OID 73872) +-- Name: DmpUser DmpUser_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DmpUser" + ADD CONSTRAINT "DmpUser_user_fkey" FOREIGN KEY ("user") REFERENCES public."User"(id) NOT VALID; + + +-- +-- TOC entry 3900 (class 2606 OID 73877) +-- Name: Dmp Dmp_blueprint_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Dmp" + ADD CONSTRAINT "Dmp_blueprint_fkey" FOREIGN KEY (blueprint) REFERENCES public."DmpBlueprint"(id); + + +-- +-- TOC entry 3901 (class 2606 OID 73882) +-- Name: Dmp Dmp_creator_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Dmp" + ADD CONSTRAINT "Dmp_creator_fkey" FOREIGN KEY (creator) REFERENCES public."User"(id) NOT VALID; + + +-- +-- TOC entry 3902 (class 2606 OID 73887) +-- Name: Dmp Dmp_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Dmp" + ADD CONSTRAINT "Dmp_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID; + + +-- +-- TOC entry 3912 (class 2606 OID 73892) +-- Name: EntityDoi EntityDoi_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."EntityDoi" + ADD CONSTRAINT "EntityDoi_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID; + + +-- +-- TOC entry 3913 (class 2606 OID 73897) +-- Name: FileUpload FileUpload_Creator_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."FileUpload" + ADD CONSTRAINT "FileUpload_Creator_fkey" FOREIGN KEY ("Creator") REFERENCES public."User"(id) NOT VALID; + + +-- +-- TOC entry 3914 (class 2606 OID 73902) +-- Name: Grant Grant_CreationUser_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Grant" + ADD CONSTRAINT "Grant_CreationUser_fkey" FOREIGN KEY ("CreationUser") REFERENCES public."User"(id) NOT VALID; + + +-- +-- TOC entry 3916 (class 2606 OID 73907) +-- Name: Invitation Invitation_CreationUser_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Invitation" + ADD CONSTRAINT "Invitation_CreationUser_fkey" FOREIGN KEY ("CreationUser") REFERENCES public."User"(id) NOT VALID; + + +-- +-- TOC entry 3918 (class 2606 OID 73912) +-- Name: Language Language_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Language" + ADD CONSTRAINT "Language_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID; + + +-- +-- TOC entry 3919 (class 2606 OID 73917) +-- Name: Lock Lock_lockedby_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Lock" + ADD CONSTRAINT "Lock_lockedby_fkey" FOREIGN KEY (locked_by) REFERENCES public."User"(id); + + +-- +-- TOC entry 3920 (class 2606 OID 73922) +-- Name: Lock Lock_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Lock" + ADD CONSTRAINT "Lock_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id); + + +-- +-- TOC entry 3921 (class 2606 OID 73927) +-- Name: NotificationLegacy NotificationLegacy_UserId_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."NotificationLegacy" + ADD CONSTRAINT "NotificationLegacy_UserId_fkey" FOREIGN KEY ("UserId") REFERENCES public."User"(id) NOT VALID; + + +-- +-- TOC entry 3967 (class 2606 OID 73932) +-- Name: ntf_NotificationTemplate NotificationTemplate_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_NotificationTemplate" + ADD CONSTRAINT "NotificationTemplate_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ntf_Tenant"(id); + + +-- +-- TOC entry 3922 (class 2606 OID 73937) +-- Name: PrefillingSource PrefillingSource_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."PrefillingSource" + ADD CONSTRAINT "PrefillingSource_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id); + + +-- +-- TOC entry 3923 (class 2606 OID 73942) +-- Name: Project Project_CreationUser_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Project" + ADD CONSTRAINT "Project_CreationUser_fkey" FOREIGN KEY ("CreationUser") REFERENCES public."User"(id) NOT VALID; + + +-- +-- TOC entry 3925 (class 2606 OID 73947) +-- Name: QueueInbox QueryInbox_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."QueueInbox" + ADD CONSTRAINT "QueryInbox_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id); + + +-- +-- TOC entry 3926 (class 2606 OID 73952) +-- Name: QueueOutbox QueueOutbox_tennat_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."QueueOutbox" + ADD CONSTRAINT "QueueOutbox_tennat_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id); + + +-- +-- TOC entry 3930 (class 2606 OID 73957) +-- Name: ReferenceType ReferenceType_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ReferenceType" + ADD CONSTRAINT "ReferenceType_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID; + + +-- +-- TOC entry 3927 (class 2606 OID 73962) +-- Name: Reference Reference_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Reference" + ADD CONSTRAINT "Reference_created_by_fkey" FOREIGN KEY (created_by) REFERENCES public."User"(id) NOT VALID; + + +-- +-- TOC entry 3928 (class 2606 OID 73967) +-- Name: Reference Reference_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Reference" + ADD CONSTRAINT "Reference_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID; + + +-- +-- TOC entry 3929 (class 2606 OID 73972) +-- Name: Reference Reference_type_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Reference" + ADD CONSTRAINT "Reference_type_fkey" FOREIGN KEY (type) REFERENCES public."ReferenceType"(id); + + +-- +-- TOC entry 3931 (class 2606 OID 73977) +-- Name: StorageFile StorageFile_owner_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."StorageFile" + ADD CONSTRAINT "StorageFile_owner_fkey" FOREIGN KEY (owner) REFERENCES public."User"(id); + + +-- +-- TOC entry 3932 (class 2606 OID 73982) +-- Name: StorageFile StorageFile_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."StorageFile" + ADD CONSTRAINT "StorageFile_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID; + + +-- +-- TOC entry 3933 (class 2606 OID 73987) +-- Name: SupportiveMaterial SupportiveMaterial_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."SupportiveMaterial" + ADD CONSTRAINT "SupportiveMaterial_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID; + + +-- +-- TOC entry 3934 (class 2606 OID 73992) +-- Name: Tag Tag_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Tag" + ADD CONSTRAINT "Tag_created_by_fkey" FOREIGN KEY (created_by) REFERENCES public."User"(id) NOT VALID; + + +-- +-- TOC entry 3935 (class 2606 OID 73997) +-- Name: Tag Tag_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Tag" + ADD CONSTRAINT "Tag_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID; + + +-- +-- TOC entry 3936 (class 2606 OID 74002) +-- Name: TenantConfiguration TenantConfiguration_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."TenantConfiguration" + ADD CONSTRAINT "TenantConfiguration_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id); + + +-- +-- TOC entry 3937 (class 2606 OID 74007) +-- Name: TenantUser TenantUser_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."TenantUser" + ADD CONSTRAINT "TenantUser_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id); + + +-- +-- TOC entry 3938 (class 2606 OID 74012) +-- Name: TenantUser TenantUser_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."TenantUser" + ADD CONSTRAINT "TenantUser_user_fkey" FOREIGN KEY ("user") REFERENCES public."User"(id); + + +-- +-- TOC entry 3941 (class 2606 OID 74017) +-- Name: UserContactInfo UserContactInfo_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."UserContactInfo" + ADD CONSTRAINT "UserContactInfo_user_fkey" FOREIGN KEY ("user") REFERENCES public."User"(id); + + +-- +-- TOC entry 3942 (class 2606 OID 74022) +-- Name: UserCredential UserCredential_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."UserCredential" + ADD CONSTRAINT "UserCredential_user_fkey" FOREIGN KEY ("user") REFERENCES public."User"(id); + + +-- +-- TOC entry 3943 (class 2606 OID 74027) +-- Name: UserDMP UserDMP_dmp_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."UserDMP" + ADD CONSTRAINT "UserDMP_dmp_fkey" FOREIGN KEY (dmp) REFERENCES public."DMP"("ID"); + + +-- +-- TOC entry 3944 (class 2606 OID 74032) +-- Name: UserDMP UserDMP_usr_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."UserDMP" + ADD CONSTRAINT "UserDMP_usr_fkey" FOREIGN KEY (usr) REFERENCES public."User"(id) NOT VALID; + + +-- +-- TOC entry 3945 (class 2606 OID 74037) +-- Name: UserDescriptionTemplate UserDatasetProfile_datasetProfile_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."UserDescriptionTemplate" + ADD CONSTRAINT "UserDatasetProfile_datasetProfile_fkey" FOREIGN KEY (description_template) REFERENCES public."DescriptionTemplate"(id); + + +-- +-- TOC entry 3946 (class 2606 OID 74042) +-- Name: UserDescriptionTemplate UserDescriptionTemplate_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."UserDescriptionTemplate" + ADD CONSTRAINT "UserDescriptionTemplate_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID; + + +-- +-- TOC entry 3947 (class 2606 OID 74047) +-- Name: UserDescriptionTemplate UserDescriptionTemplate_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."UserDescriptionTemplate" + ADD CONSTRAINT "UserDescriptionTemplate_user_fkey" FOREIGN KEY ("user") REFERENCES public."User"(id) NOT VALID; + + +-- +-- TOC entry 3948 (class 2606 OID 74052) +-- Name: UserRole UserRole_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."UserRole" + ADD CONSTRAINT "UserRole_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID; + + +-- +-- TOC entry 3949 (class 2606 OID 74057) +-- Name: UserRole UserRole_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."UserRole" + ADD CONSTRAINT "UserRole_user_fkey" FOREIGN KEY ("user") REFERENCES public."User"(id) NOT VALID; + + +-- +-- TOC entry 3950 (class 2606 OID 74062) +-- Name: UserSettings UserSettings_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."UserSettings" + ADD CONSTRAINT "UserSettings_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID; + + +-- +-- TOC entry 3951 (class 2606 OID 74067) +-- Name: UserToken UserToken_UserId_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."UserToken" + ADD CONSTRAINT "UserToken_UserId_fkey" FOREIGN KEY ("UserId") REFERENCES public."User"(id) NOT VALID; + + +-- +-- TOC entry 3952 (class 2606 OID 74072) +-- Name: ant_Annotation ant_Annotation_parent_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ant_Annotation" + ADD CONSTRAINT "ant_Annotation_parent_fkey" FOREIGN KEY (parent_id) REFERENCES public."ant_Annotation"(id); + + +-- +-- TOC entry 3953 (class 2606 OID 74077) +-- Name: ant_Annotation ant_Annotation_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ant_Annotation" + ADD CONSTRAINT "ant_Annotation_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ant_Tenant"(id); + + +-- +-- TOC entry 3954 (class 2606 OID 74082) +-- Name: ant_Annotation ant_Annotation_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ant_Annotation" + ADD CONSTRAINT "ant_Annotation_user_fkey" FOREIGN KEY (subject_id) REFERENCES public."ant_User"(id); + + +-- +-- TOC entry 3955 (class 2606 OID 74087) +-- Name: ant_EntityUser ant_EntityUser_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ant_EntityUser" + ADD CONSTRAINT "ant_EntityUser_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ant_Tenant"(id); + + +-- +-- TOC entry 3956 (class 2606 OID 74092) +-- Name: ant_EntityUser ant_EntityUser_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ant_EntityUser" + ADD CONSTRAINT "ant_EntityUser_user_fkey" FOREIGN KEY (user_id) REFERENCES public."ant_User"(id); + + +-- +-- TOC entry 3957 (class 2606 OID 74097) +-- Name: ant_QueueInbox ant_QueryInbox_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ant_QueueInbox" + ADD CONSTRAINT "ant_QueryInbox_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ant_Tenant"(id); + + +-- +-- TOC entry 3958 (class 2606 OID 74102) +-- Name: ant_QueueOutbox ant_QueueOutbox_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ant_QueueOutbox" + ADD CONSTRAINT "ant_QueueOutbox_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ant_Tenant"(id); + + +-- +-- TOC entry 3959 (class 2606 OID 74107) +-- Name: ant_TenantUser ant_TenantUser_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ant_TenantUser" + ADD CONSTRAINT "ant_TenantUser_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ant_Tenant"(id); + + +-- +-- TOC entry 3960 (class 2606 OID 74112) +-- Name: ant_TenantUser ant_TenantUser_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ant_TenantUser" + ADD CONSTRAINT "ant_TenantUser_user_fkey" FOREIGN KEY ("user") REFERENCES public."ant_User"(id); + + +-- +-- TOC entry 3961 (class 2606 OID 74117) +-- Name: ant_UserContactInfo ant_UserContactInfo_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ant_UserContactInfo" + ADD CONSTRAINT "ant_UserContactInfo_user_fkey" FOREIGN KEY ("user") REFERENCES public."ant_User"(id); + + +-- +-- TOC entry 3962 (class 2606 OID 74122) +-- Name: ant_UserCredential ant_UserCredential_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ant_UserCredential" + ADD CONSTRAINT "ant_UserCredential_user_fkey" FOREIGN KEY ("user") REFERENCES public."ant_User"(id); + + +-- +-- TOC entry 3915 (class 2606 OID 74127) +-- Name: Grant fk_grant_content; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Grant" + ADD CONSTRAINT fk_grant_content FOREIGN KEY ("Content") REFERENCES public."Content"("Id"); + + +-- +-- TOC entry 3917 (class 2606 OID 74132) +-- Name: Invitation fk_invitation_dmp; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Invitation" + ADD CONSTRAINT fk_invitation_dmp FOREIGN KEY ("Dmp") REFERENCES public."DMP"("ID"); + + +-- +-- TOC entry 3924 (class 2606 OID 74137) +-- Name: Project fk_project_content; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."Project" + ADD CONSTRAINT fk_project_content FOREIGN KEY ("Content") REFERENCES public."Content"("Id"); + + +-- +-- TOC entry 3939 (class 2606 OID 74142) +-- Name: UserAssociation fk_userinfo_user_association_1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."UserAssociation" + ADD CONSTRAINT fk_userinfo_user_association_1 FOREIGN KEY ("firstUser") REFERENCES public."UserInfo"(id); + + +-- +-- TOC entry 3940 (class 2606 OID 74147) +-- Name: UserAssociation fk_userinfo_user_association_2; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."UserAssociation" + ADD CONSTRAINT fk_userinfo_user_association_2 FOREIGN KEY ("secondUser") REFERENCES public."UserInfo"(id); + + +-- +-- TOC entry 3880 (class 2606 OID 74152) +-- Name: DatasetExternalDataset fkey_datasetexternaldataset_dataset; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DatasetExternalDataset" + ADD CONSTRAINT fkey_datasetexternaldataset_dataset FOREIGN KEY ("Dataset") REFERENCES public."Dataset"("ID"); + + +-- +-- TOC entry 3881 (class 2606 OID 74157) +-- Name: DatasetExternalDataset fkey_datasetexternaldataset_externaldataset; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."DatasetExternalDataset" + ADD CONSTRAINT fkey_datasetexternaldataset_externaldataset FOREIGN KEY ("ExternalDataset") REFERENCES public."ExternalDataset"("Id"); + + +-- +-- TOC entry 3963 (class 2606 OID 74162) +-- Name: ntf_InAppNotification ntf_InAppNotification_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_InAppNotification" + ADD CONSTRAINT "ntf_InAppNotification_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ntf_Tenant"(id); + + +-- +-- TOC entry 3964 (class 2606 OID 74167) +-- Name: ntf_InAppNotification ntf_InAppNotification_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_InAppNotification" + ADD CONSTRAINT "ntf_InAppNotification_user_fkey" FOREIGN KEY ("user") REFERENCES public."ntf_User"(id); + + +-- +-- TOC entry 3965 (class 2606 OID 74172) +-- Name: ntf_Notification ntf_Notification_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_Notification" + ADD CONSTRAINT "ntf_Notification_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ntf_Tenant"(id); + + +-- +-- TOC entry 3966 (class 2606 OID 74177) +-- Name: ntf_Notification ntf_Notification_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_Notification" + ADD CONSTRAINT "ntf_Notification_user_fkey" FOREIGN KEY ("user") REFERENCES public."ntf_User"(id); + + +-- +-- TOC entry 3968 (class 2606 OID 74182) +-- Name: ntf_QueueInbox ntf_QueryInbox_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_QueueInbox" + ADD CONSTRAINT "ntf_QueryInbox_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ntf_Tenant"(id); + + +-- +-- TOC entry 3969 (class 2606 OID 74187) +-- Name: ntf_QueueOutbox ntf_QueueOutbox_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_QueueOutbox" + ADD CONSTRAINT "ntf_QueueOutbox_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ntf_Tenant"(id); + + +-- +-- TOC entry 3970 (class 2606 OID 74192) +-- Name: ntf_TenantConfiguration ntf_TenantConfiguration_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_TenantConfiguration" + ADD CONSTRAINT "ntf_TenantConfiguration_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ntf_Tenant"(id); + + +-- +-- TOC entry 3971 (class 2606 OID 74197) +-- Name: ntf_TenantUser ntf_TenantUser_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_TenantUser" + ADD CONSTRAINT "ntf_TenantUser_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ntf_Tenant"(id); + + +-- +-- TOC entry 3972 (class 2606 OID 74202) +-- Name: ntf_TenantUser ntf_TenantUser_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_TenantUser" + ADD CONSTRAINT "ntf_TenantUser_user_fkey" FOREIGN KEY ("user") REFERENCES public."ntf_User"(id); + + +-- +-- TOC entry 3973 (class 2606 OID 74207) +-- Name: ntf_UserContactInfo ntf_UserContactInfo_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_UserContactInfo" + ADD CONSTRAINT "ntf_UserContactInfo_user_fkey" FOREIGN KEY ("user") REFERENCES public."ntf_User"(id); + + +-- +-- TOC entry 3974 (class 2606 OID 74212) +-- Name: ntf_UserCredential ntf_UserCredential_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_UserCredential" + ADD CONSTRAINT "ntf_UserCredential_user_fkey" FOREIGN KEY ("user") REFERENCES public."ntf_User"(id); + + +-- +-- TOC entry 3975 (class 2606 OID 74217) +-- Name: ntf_UserNotificationPreference ntf_UserNotificationPreference_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_UserNotificationPreference" + ADD CONSTRAINT "ntf_UserNotificationPreference_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ntf_Tenant"(id); + + +-- +-- TOC entry 3976 (class 2606 OID 74222) +-- Name: ntf_UserNotificationPreference ntf_UserNotificationPreference_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public."ntf_UserNotificationPreference" + ADD CONSTRAINT "ntf_UserNotificationPreference_user_fkey" FOREIGN KEY ("user") REFERENCES public."ntf_User"(id); + + +-- Completed on 2024-05-09 15:11:14 + +-- +-- PostgreSQL database dump complete +-- + diff --git a/deployment/proxy/ProxyNginx.conf b/deployment/proxy/ProxyNginx.conf index eb73be33f..71364910f 100644 --- a/deployment/proxy/ProxyNginx.conf +++ b/deployment/proxy/ProxyNginx.conf @@ -1,25 +1,19 @@ server { - listen 8080 default_server; - listen [::]:8080 default_server; - server_name ""; - return 444; -} - -server { - set $app_host $APP_HOST; - set $app_port $APP_PORT; listen 8080; - server_name ${APP_HOST}${APP_PORT}; - location / { - return 301 https://$host$request_uri; - } + + server_name host.docker.internal:8081; + + location ~/.well-known { + allow all; + root /var/www/html/test; + } + } + server { - set $app_host $APP_HOST; - set $app_port $APP_PORT; listen 8081; - server_name ${APP_HOST}${APP_PORT}; + server_name host.docker.internal; proxy_pass_header Server; # add_header X-XSS-Protection "1; mode=block" always; @@ -37,9 +31,9 @@ server { proxy_set_header X-Forwarded-Proto $scheme; # Fix the “It appears that your reverse proxy set up is broken" error. - proxy_pass http://opendmp.frontend:8080; + proxy_pass http://opencdmp.frontend:8080; proxy_read_timeout 90; - proxy_redirect http://opendmp.frontend:8080 http://${APP_HOST}${APP_PORT}; + proxy_redirect http://opencdmp.frontend:8080 http://host.docker.internal:8081; } location /api/ { @@ -50,61 +44,36 @@ server { proxy_set_header X-Forwarded-Proto $scheme; # Fix the “It appears that your reverse proxy set up is broken" error. - proxy_pass http://opendmp.backend:8080; + proxy_pass http://opencdmp.backend:8080; proxy_read_timeout 90; - proxy_redirect http://opendmp.backend:8080 http://${APP_HOST}${APP_PORT}/api; + proxy_redirect http://opencdmp.backend:8080 http://host.docker.internal:8081/api; } - location /api/notification/ { + # location /api/notification/ { - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; + # proxy_set_header Host $host; + # proxy_set_header X-Real-IP $remote_addr; + # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + # proxy_set_header X-Forwarded-Proto $scheme; - # Fix the “It appears that your reverse proxy set up is broken" error. - proxy_pass http://opendmp.notification:8080; - proxy_read_timeout 90; - proxy_redirect http://opendmp.notification:8080 http://${APP_HOST}${APP_PORT}/api/notification; - } + # # Fix the “It appears that your reverse proxy set up is broken" error. + # proxy_pass http://opencdmp.notification:8080; + # proxy_read_timeout 90; + # proxy_redirect http://opencdmp.notification:8080 http://host.docker.internal:8081/api/notification; + # } - location /api/annotation/ { + # location /api/annotation/ { - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; + # proxy_set_header Host $host; + # proxy_set_header X-Real-IP $remote_addr; + # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + # proxy_set_header X-Forwarded-Proto $scheme; - # Fix the “It appears that your reverse proxy set up is broken" error. - proxy_pass http://opendmp.annotation:8080; - proxy_read_timeout 90; - proxy_redirect http://opendmp.annotation:8080 http://${APP_HOST}${APP_PORT}/api/annotation; - } -} - -server { - set $ms_host $MS_HOST; - set $ms_port $MS_PORT; - listen 8080; - server_name ${MS_HOST}${MS_PORT}; - location / { - return 301 https://$host$request_uri; - } -} - -server { - set $ms_host $MS_HOST; - set $ms_port $MS_PORT; - listen 8082; - server_name ${MS_HOST}; - proxy_pass_header Server; - - # add_header X-XSS-Protection "1; mode=block" always; - # add_header X-Content-Type-Options nosniff; - # add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"; - # add_header Referrer-Policy 'strict-origin' always; - # add_header Feature-Policy "usb 'none'; xr-spatial-tracking 'none'" always; - # add_header Permissions-Policy "geolocation=(),sync-xhr=(),microphone=(),camera=(),magnetometer=(),gyroscope=()" always; + # # Fix the “It appears that your reverse proxy set up is broken" error. + # proxy_pass http://opencdmp.annotation:8080; + # proxy_read_timeout 90; + # proxy_redirect http://opencdmp.annotation:8080 http://host.docker.internal:8081/api/annotation; + # } location /keycloak/ { @@ -117,9 +86,9 @@ server { proxy_set_header X-Forwarded-Server $host; # Fix the “It appears that your reverse proxy set up is broken" error. - proxy_pass http://opendmp.keycloak:8080; + proxy_pass http://opencdmp.keycloak:8080; proxy_read_timeout 90; - proxy_redirect http://opendmp.keycloak:8080 http://${MS_HOST}${MS_PORT}/keycloak; + proxy_redirect http://opencdmp.keycloak:8080 http://host.docker.internal:8081/keycloak; } }