From bf11489e0f7818433e22a946f73d9e386a5f33c7 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Sun, 4 Oct 2020 18:05:04 +0100 Subject: [PATCH] cleanup docker files (#1705) --- docker-compose.e2e.yml | 151 -- docker-compose.yml | 181 --- docker/Readme.md | 20 - docker/acs-cm/Readme.md | 20 - docker/acs-cm/acme-bootstrap-context.xml | 13 - docker/acs-cm/acme-content-model.xml | 66 - docker/auth/alfresco-realm.json | 1673 ---------------------- docker/proxy/nginx.conf | 40 - package-lock.json | 127 +- package.json | 7 +- sanity-check.sh | 53 - start.sh | 87 -- 12 files changed, 16 insertions(+), 2422 deletions(-) delete mode 100644 docker-compose.e2e.yml delete mode 100644 docker-compose.yml delete mode 100644 docker/Readme.md delete mode 100644 docker/acs-cm/Readme.md delete mode 100644 docker/acs-cm/acme-bootstrap-context.xml delete mode 100644 docker/acs-cm/acme-content-model.xml delete mode 100644 docker/auth/alfresco-realm.json delete mode 100644 docker/proxy/nginx.conf delete mode 100755 sanity-check.sh delete mode 100755 start.sh diff --git a/docker-compose.e2e.yml b/docker-compose.e2e.yml deleted file mode 100644 index eaab47fb9..000000000 --- a/docker-compose.e2e.yml +++ /dev/null @@ -1,151 +0,0 @@ -version: '2' - -services: - alfresco: - image: alfresco/alfresco-content-repository-community:latest - mem_limit: 1500m - depends_on: - - auth - volumes: - - ./docker/acs-cm:/usr/local/tomcat/shared/classes/alfresco/extension - environment: - JAVA_OPTS: ' - -Ddb.driver=org.postgresql.Driver - -Ddb.username=alfresco - -Ddb.password=alfresco - -Ddb.url=jdbc:postgresql://postgres:5432/alfresco - -Dsolr.host=solr6 - -Dsolr.port=8983 - -Dsolr.secureComms=none - -Dsolr.base.url=/solr - -Dindex.subsystem.name=solr6 - -Dalfresco.host=localhost - -Dalfresco.port=8080 - -Daos.baseUrlOverwrite=http://localhost:8080/alfresco/aos - -Dmessaging.broker.url="failover:(nio://activemq:61616)?timeout=3000&jms.useCompression=true" - -Ddeployment.method=DOCKER_COMPOSE - -Dlocal.transform.service.enabled=true - -DlocalTransform.pdfrenderer.url=http://alfresco-pdf-renderer:8090/ - -DlocalTransform.imagemagick.url=http://imagemagick:8090/ - -DlocalTransform.libreoffice.url=http://libreoffice:8090/ - -DlocalTransform.tika.url=http://tika:8090/ - -DlocalTransform.misc.url=http://transform-misc:8090/ - -Dlegacy.transform.service.enabled=true - -Dalfresco-pdf-renderer.url=http://alfresco-pdf-renderer:8090/ - -Djodconverter.url=http://libreoffice:8090/ - -Dimg.url=http://imagemagick:8090/ - -Dtika.url=http://tika:8090/ - -Dtransform.misc.url=http://transform-misc:8090/ - -Dcsrf.filter.enabled=false - - -Didentity-service.enable-basic-auth=true - -Didentity-service.authentication.validation.failure.silent=false - -Didentity-service.auth-server-url=http://${HOST_IP}:8085/auth - -Didentity-service.realm=alfresco - -Didentity-service.resource=alfresco - - ${AIMS_PROPS} - -Xms1500m -Xmx1500m - ' - - alfresco-pdf-renderer: - image: alfresco/alfresco-pdf-renderer:2.1.0 - mem_limit: 1g - environment: - JAVA_OPTS: ' -Xms256m -Xmx512m' - ports: - - 8090:8090 - - imagemagick: - image: alfresco/alfresco-imagemagick:2.1.0 - mem_limit: 1g - environment: - JAVA_OPTS: ' -Xms256m -Xmx512m' - ports: - - 8091:8090 - - libreoffice: - image: alfresco/alfresco-libreoffice:2.1.0 - mem_limit: 1g - environment: - JAVA_OPTS: ' -Xms256m -Xmx512m' - ports: - - 8092:8090 - - tika: - image: alfresco/alfresco-tika:2.1.0 - mem_limit: 1g - environment: - JAVA_OPTS: ' -Xms256m -Xmx512m' - ports: - - 8093:8090 - - transform-misc: - image: alfresco/alfresco-transform-misc:2.1.0 - mem_limit: 1g - environment: - JAVA_OPTS: ' -Xms256m -Xmx512m' - ports: - - 8094:8090 - - postgres: - image: postgres:11.4 - mem_limit: 512m - environment: - - POSTGRES_PASSWORD=alfresco - - POSTGRES_USER=alfresco - - POSTGRES_DB=alfresco - command: postgres -c max_connections=300 -c log_min_messages=LOG - ports: - - 5432:5432 - - solr6: - image: alfresco/alfresco-search-services:1.4.0 - mem_limit: 2g - environment: - #Solr needs to know how to register itself with Alfresco - - SOLR_ALFRESCO_HOST=alfresco - - SOLR_ALFRESCO_PORT=8080 - #Alfresco needs to know how to call solr - - SOLR_SOLR_HOST=solr6 - - SOLR_SOLR_PORT=8983 - #Create the default alfresco and archive cores - - SOLR_CREATE_ALFRESCO_DEFAULTS=alfresco,archive - #HTTP by default - - ALFRESCO_SECURE_COMMS=none - - 'SOLR_JAVA_MEM=-Xms2g -Xmx2g' - ports: - - 8083:8983 #Browser port - - activemq: - image: alfresco/alfresco-activemq:5.15.8 - mem_limit: 1g - ports: - - 8161:8161 # Web Console - - 5672:5672 # AMQP - - 61616:61616 # OpenWire - - 61613:61613 # STOMP - - proxy: - image: alfresco/acs-community-ngnix:1.0.0 - mem_limit: 128m - depends_on: - - alfresco - volumes: - - ./docker/proxy/nginx.conf:/etc/nginx/nginx.conf - ports: - - 8080:8080 - links: - - alfresco - - auth: - image: jboss/keycloak:4.8.3.Final - volumes: - - ./docker/auth/alfresco-realm.json:/tmp/alfresco-realm.json - environment: - - KEYCLOAK_USER=admin - - KEYCLOAK_PASSWORD=admin - - KEYCLOAK_IMPORT=/tmp/alfresco-realm.json - - DB_VENDOR=h2 - ports: - - 8085:8080 diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 8eb77ff1e..000000000 --- a/docker-compose.yml +++ /dev/null @@ -1,181 +0,0 @@ -version: '2' - -services: - alfresco: - image: alfresco/alfresco-content-repository-community:latest - mem_limit: 1500m - depends_on: - - auth - volumes: - - ./docker/acs-cm:/usr/local/tomcat/shared/classes/alfresco/extension - environment: - JAVA_OPTS: ' - -Ddb.driver=org.postgresql.Driver - -Ddb.username=alfresco - -Ddb.password=alfresco - -Ddb.url=jdbc:postgresql://postgres:5432/alfresco - -Dsolr.host=solr6 - -Dsolr.port=8983 - -Dsolr.secureComms=none - -Dsolr.base.url=/solr - -Dindex.subsystem.name=solr6 - -Dshare.host=127.0.0.1 - -Dshare.port=8080 - -Dalfresco.host=localhost - -Dalfresco.port=8080 - -Daos.baseUrlOverwrite=http://localhost:8080/alfresco/aos - -Dmessaging.broker.url="failover:(nio://activemq:61616)?timeout=3000&jms.useCompression=true" - -Ddeployment.method=DOCKER_COMPOSE - -Dlocal.transform.service.enabled=true - -DlocalTransform.pdfrenderer.url=http://alfresco-pdf-renderer:8090/ - -DlocalTransform.imagemagick.url=http://imagemagick:8090/ - -DlocalTransform.libreoffice.url=http://libreoffice:8090/ - -DlocalTransform.tika.url=http://tika:8090/ - -DlocalTransform.misc.url=http://transform-misc:8090/ - -Dlegacy.transform.service.enabled=true - -Dalfresco-pdf-renderer.url=http://alfresco-pdf-renderer:8090/ - -Djodconverter.url=http://libreoffice:8090/ - -Dimg.url=http://imagemagick:8090/ - -Dtika.url=http://tika:8090/ - -Dtransform.misc.url=http://transform-misc:8090/ - -Dcsrf.filter.enabled=false - - -Didentity-service.enable-basic-auth=true - -Didentity-service.authentication.validation.failure.silent=false - -Didentity-service.auth-server-url=http://${HOST_IP}:8085/auth - -Didentity-service.realm=alfresco - -Didentity-service.resource=alfresco - - ${AIMS_PROPS} - -Xms1500m -Xmx1500m - ' - - alfresco-pdf-renderer: - image: alfresco/alfresco-pdf-renderer:2.1.0 - mem_limit: 1g - environment: - JAVA_OPTS: ' -Xms256m -Xmx512m' - ports: - - 8090:8090 - - imagemagick: - image: alfresco/alfresco-imagemagick:2.1.0 - mem_limit: 1g - environment: - JAVA_OPTS: ' -Xms256m -Xmx512m' - ports: - - 8091:8090 - - libreoffice: - image: alfresco/alfresco-libreoffice:2.1.0 - mem_limit: 1g - environment: - JAVA_OPTS: ' -Xms256m -Xmx512m' - ports: - - 8092:8090 - - tika: - image: alfresco/alfresco-tika:2.1.0 - mem_limit: 1g - environment: - JAVA_OPTS: ' -Xms256m -Xmx512m' - ports: - - 8093:8090 - - transform-misc: - image: alfresco/alfresco-transform-misc:2.1.0 - mem_limit: 1g - environment: - JAVA_OPTS: ' -Xms256m -Xmx512m' - ports: - - 8094:8090 - - share: - image: alfresco/alfresco-share:6.2.0 - mem_limit: 1g - depends_on: - - alfresco - environment: - - REPO_HOST=alfresco - - REPO_PORT=8080 - - postgres: - image: postgres:11.4 - mem_limit: 512m - environment: - - POSTGRES_PASSWORD=alfresco - - POSTGRES_USER=alfresco - - POSTGRES_DB=alfresco - command: postgres -c max_connections=300 -c log_min_messages=LOG - ports: - - 5432:5432 - - solr6: - image: alfresco/alfresco-search-services:1.4.0 - mem_limit: 2g - environment: - #Solr needs to know how to register itself with Alfresco - - SOLR_ALFRESCO_HOST=alfresco - - SOLR_ALFRESCO_PORT=8080 - #Alfresco needs to know how to call solr - - SOLR_SOLR_HOST=solr6 - - SOLR_SOLR_PORT=8983 - #Create the default alfresco and archive cores - - SOLR_CREATE_ALFRESCO_DEFAULTS=alfresco,archive - #HTTP by default - - ALFRESCO_SECURE_COMMS=none - - 'SOLR_JAVA_MEM=-Xms2g -Xmx2g' - ports: - - 8083:8983 #Browser port - - activemq: - image: alfresco/alfresco-activemq:5.15.8 - mem_limit: 1g - ports: - - 8161:8161 # Web Console - - 5672:5672 # AMQP - - 61616:61616 # OpenWire - - 61613:61613 # STOMP - - content-app: - image: alfresco/alfresco-content-app:latest - build: . - depends_on: - - alfresco - environment: - BASE_PATH: ./ - APP_CONFIG_OAUTH2_HOST: ${APP_CONFIG_OAUTH2_HOST} - APP_CONFIG_AUTH_TYPE: ${APP_CONFIG_AUTH_TYPE} - APP_CONFIG_OAUTH2_CLIENTID: ${APP_CONFIG_OAUTH2_CLIENTID} - APP_CONFIG_OAUTH2_REDIRECT_SILENT_IFRAME_URI: ${APP_CONFIG_OAUTH2_REDIRECT_SILENT_IFRAME_URI} - APP_CONFIG_OAUTH2_REDIRECT_LOGIN: ${APP_CONFIG_OAUTH2_REDIRECT_LOGIN} - APP_CONFIG_OAUTH2_REDIRECT_LOGOUT: ${APP_CONFIG_OAUTH2_REDIRECT_LOGOUT} - APP_BASE_SHARE_URL: '{protocol}//{hostname}{:port}/content-app/#/preview/s' - ports: - - 4001:8080 - - proxy: - image: alfresco/acs-community-ngnix:1.0.0 - mem_limit: 128m - depends_on: - - alfresco - volumes: - - ./docker/proxy/nginx.conf:/etc/nginx/nginx.conf - ports: - - 8080:8080 - links: - - alfresco - - share - - content-app - - auth: - image: jboss/keycloak:4.8.3.Final - volumes: - - ./docker/auth/alfresco-realm.json:/tmp/alfresco-realm.json - environment: - - KEYCLOAK_USER=admin - - KEYCLOAK_PASSWORD=admin - - KEYCLOAK_IMPORT=/tmp/alfresco-realm.json - - DB_VENDOR=h2 - ports: - - 8085:8080 diff --git a/docker/Readme.md b/docker/Readme.md deleted file mode 100644 index 9fa52c7ca..000000000 --- a/docker/Readme.md +++ /dev/null @@ -1,20 +0,0 @@ -# ACA Docker Image - -Docker images are released to [docker hub](https://hub.docker.com/r/alfresco/alfresco-content-app) - -## Environment Variables - -OAUTH2: - -- APP_CONFIG_AUTH_TYPE: ... -- APP_CONFIG_OAUTH2_HOST: ... -- APP_CONFIG_OAUTH2_CLIENTID: ... -- APP_CONFIG_OAUTH2_REDIRECT_LOGIN: ... -- APP_CONFIG_OAUTH2_REDIRECT_LOGOUT: ... -- APP_CONFIG_OAUTH2_REDIRECT_SILENT_IFRAME_URI: ... - -APP Misc: - -- BASE_PATH: ... -- APP_BASE_SHARE_URL: ... -- SERVER_PATH: Server path (usefull if behind a reverse proxy). E.g.: `/content-app` . Defaults to `/` diff --git a/docker/acs-cm/Readme.md b/docker/acs-cm/Readme.md deleted file mode 100644 index 85498dfe9..000000000 --- a/docker/acs-cm/Readme.md +++ /dev/null @@ -1,20 +0,0 @@ -# Custom Node creation instruction - -Use the v1 POST node/{nodeId}/children for creating the custom node with a payload like: - -``` -{ - "name":"acme document2.txt", - "nodeType":"acme:document", - "properties": { - "acme:documentId": "DOC001", - "acme:securityClassification":"Public", - "cm:title":"My text" - }, - "aspectNames": [ - "acme:securityClassified" - ] -} -``` - -Tip: You could use the api explorer with /api-explorer/ diff --git a/docker/acs-cm/acme-bootstrap-context.xml b/docker/acs-cm/acme-bootstrap-context.xml deleted file mode 100644 index 31ed7299d..000000000 --- a/docker/acs-cm/acme-bootstrap-context.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - -alfresco/extension/acme-content-model.xml - - - - diff --git a/docker/acs-cm/acme-content-model.xml b/docker/acs-cm/acme-content-model.xml deleted file mode 100644 index 2ef460104..000000000 --- a/docker/acs-cm/acme-content-model.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - Sample Document Model - My Name - 1.0 - - - - - - - - - - - - - - - - - Public - Client Confidential - Company Confidential - Strictly Confidential - - - - - - - - Sample Document Type - cm:content - - - Document Identification Number - d:text - - - - acme:securityClassified - - - - - - - ACME Security Classified - Content has been security classified - - - d:text - - true - false - false - - - - - - - - - diff --git a/docker/auth/alfresco-realm.json b/docker/auth/alfresco-realm.json deleted file mode 100644 index ca02bd125..000000000 --- a/docker/auth/alfresco-realm.json +++ /dev/null @@ -1,1673 +0,0 @@ -{ - "id": "alfresco", - "realm": "alfresco", - "notBefore": 0, - "revokeRefreshToken": false, - "refreshTokenMaxReuse": 0, - "accessTokenLifespan": 300, - "accessTokenLifespanForImplicitFlow": 900, - "ssoSessionIdleTimeout": 1800, - "ssoSessionMaxLifespan": 36000, - "offlineSessionIdleTimeout": 2592000, - "accessCodeLifespan": 60, - "accessCodeLifespanUserAction": 300, - "accessCodeLifespanLogin": 1800, - "actionTokenGeneratedByAdminLifespan": 43200, - "actionTokenGeneratedByUserLifespan": 300, - "enabled": true, - "sslRequired": "none", - "registrationAllowed": false, - "registrationEmailAsUsername": false, - "rememberMe": false, - "verifyEmail": false, - "loginWithEmailAllowed": true, - "duplicateEmailsAllowed": false, - "resetPasswordAllowed": false, - "editUsernameAllowed": false, - "bruteForceProtected": false, - "permanentLockout": false, - "maxFailureWaitSeconds": 900, - "minimumQuickLoginWaitSeconds": 60, - "waitIncrementSeconds": 60, - "quickLoginCheckMilliSeconds": 1000, - "maxDeltaTimeSeconds": 43200, - "failureFactor": 30, - "roles": { - "realm": [ - { - "id": "39654467-e529-418e-bd27-354a0414fb52", - "name": "admin", - "scopeParamRequired": false, - "composite": false, - "clientRole": false, - "containerId": "alfresco" - }, - { - "id": "5b481c9b-38fe-474a-a047-50c3935262cb", - "name": "uma_authorization", - "description": "${role_uma_authorization}", - "scopeParamRequired": false, - "composite": false, - "clientRole": false, - "containerId": "alfresco" - }, - { - "id": "86db4867-8c3c-4cdf-8950-e18790f5bf6a", - "name": "offline_access", - "description": "${role_offline-access}", - "scopeParamRequired": true, - "composite": false, - "clientRole": false, - "containerId": "alfresco" - } - ], - "client": { - "realm-management": [ - { - "id": "a637f20f-fd3e-4db6-9d2a-c91acb1e14e8", - "name": "create-client", - "description": "${role_create-client}", - "scopeParamRequired": false, - "composite": false, - "clientRole": true, - "containerId": "c1f65e94-ed07-4bba-bafd-413db402a5f2" - }, - { - "id": "4232f8bf-dab4-4b4a-8ccf-28b8984f8ae7", - "name": "realm-admin", - "description": "${role_realm-admin}", - "scopeParamRequired": false, - "composite": true, - "composites": { - "client": { - "realm-management": [ - "create-client", - "view-authorization", - "manage-events", - "query-users", - "manage-authorization", - "view-realm", - "view-clients", - "query-clients", - "query-groups", - "impersonation", - "manage-users", - "manage-clients", - "manage-identity-providers", - "view-users", - "query-realms", - "view-identity-providers", - "view-events", - "manage-realm" - ] - } - }, - "clientRole": true, - "containerId": "c1f65e94-ed07-4bba-bafd-413db402a5f2" - }, - { - "id": "ae0da5c2-643c-480e-8900-59bdca3581b3", - "name": "view-authorization", - "description": "${role_view-authorization}", - "scopeParamRequired": false, - "composite": false, - "clientRole": true, - "containerId": "c1f65e94-ed07-4bba-bafd-413db402a5f2" - }, - { - "id": "8a69ec22-4fe9-43e0-b4f0-16b632c2d324", - "name": "manage-events", - "description": "${role_manage-events}", - "scopeParamRequired": false, - "composite": false, - "clientRole": true, - "containerId": "c1f65e94-ed07-4bba-bafd-413db402a5f2" - }, - { - "id": "1c2c870c-5428-4144-ab12-c7304d1a7d2d", - "name": "query-users", - "description": "${role_query-users}", - "scopeParamRequired": false, - "composite": false, - "clientRole": true, - "containerId": "c1f65e94-ed07-4bba-bafd-413db402a5f2" - }, - { - "id": "9884df61-b63f-4f8b-8fba-650db69c8784", - "name": "manage-authorization", - "description": "${role_manage-authorization}", - "scopeParamRequired": false, - "composite": false, - "clientRole": true, - "containerId": "c1f65e94-ed07-4bba-bafd-413db402a5f2" - }, - { - "id": "003ae8b9-e32a-4c0b-b319-d2a985249348", - "name": "view-realm", - "description": "${role_view-realm}", - "scopeParamRequired": false, - "composite": false, - "clientRole": true, - "containerId": "c1f65e94-ed07-4bba-bafd-413db402a5f2" - }, - { - "id": "d0d2eaa3-e737-4a7e-990d-4c6efa323cc3", - "name": "view-clients", - "description": "${role_view-clients}", - "scopeParamRequired": false, - "composite": true, - "composites": { - "client": { - "realm-management": ["query-clients"] - } - }, - "clientRole": true, - "containerId": "c1f65e94-ed07-4bba-bafd-413db402a5f2" - }, - { - "id": "d9f0638c-e045-4d92-b4ff-e0c71f68f4ba", - "name": "query-clients", - "description": "${role_query-clients}", - "scopeParamRequired": false, - "composite": false, - "clientRole": true, - "containerId": "c1f65e94-ed07-4bba-bafd-413db402a5f2" - }, - { - "id": "02d5937c-929b-4928-8a55-b0de4c9b4924", - "name": "query-groups", - "description": "${role_query-groups}", - "scopeParamRequired": false, - "composite": false, - "clientRole": true, - "containerId": "c1f65e94-ed07-4bba-bafd-413db402a5f2" - }, - { - "id": "c74d9c9b-65e4-4847-a47a-3edbb2fce0fb", - "name": "impersonation", - "description": "${role_impersonation}", - "scopeParamRequired": false, - "composite": false, - "clientRole": true, - "containerId": "c1f65e94-ed07-4bba-bafd-413db402a5f2" - }, - { - "id": "e681501e-a8da-4653-861c-c37e2e1f8609", - "name": "manage-users", - "description": "${role_manage-users}", - "scopeParamRequired": false, - "composite": false, - "clientRole": true, - "containerId": "c1f65e94-ed07-4bba-bafd-413db402a5f2" - }, - { - "id": "067b5e3c-9918-4713-85ca-749c6aae13e1", - "name": "manage-clients", - "description": "${role_manage-clients}", - "scopeParamRequired": false, - "composite": false, - "clientRole": true, - "containerId": "c1f65e94-ed07-4bba-bafd-413db402a5f2" - }, - { - "id": "5b395e85-f5fa-4af9-b573-497cc9b1e694", - "name": "manage-identity-providers", - "description": "${role_manage-identity-providers}", - "scopeParamRequired": false, - "composite": false, - "clientRole": true, - "containerId": "c1f65e94-ed07-4bba-bafd-413db402a5f2" - }, - { - "id": "b4ec253f-4d52-425e-b091-ed51aac7bd4c", - "name": "view-users", - "description": "${role_view-users}", - "scopeParamRequired": false, - "composite": true, - "composites": { - "client": { - "realm-management": ["query-groups", "query-users"] - } - }, - "clientRole": true, - "containerId": "c1f65e94-ed07-4bba-bafd-413db402a5f2" - }, - { - "id": "574e930a-07d5-446f-9628-3d7568eb483a", - "name": "query-realms", - "description": "${role_query-realms}", - "scopeParamRequired": false, - "composite": false, - "clientRole": true, - "containerId": "c1f65e94-ed07-4bba-bafd-413db402a5f2" - }, - { - "id": "0cb1c9c8-55ce-4f22-b6d5-b6882c8b74fd", - "name": "view-identity-providers", - "description": "${role_view-identity-providers}", - "scopeParamRequired": false, - "composite": false, - "clientRole": true, - "containerId": "c1f65e94-ed07-4bba-bafd-413db402a5f2" - }, - { - "id": "5d07f2b1-9f28-4e8b-8f91-7d68699d327c", - "name": "view-events", - "description": "${role_view-events}", - "scopeParamRequired": false, - "composite": false, - "clientRole": true, - "containerId": "c1f65e94-ed07-4bba-bafd-413db402a5f2" - }, - { - "id": "53ccf3c9-4391-4d43-9d9e-6e644b989e9f", - "name": "manage-realm", - "description": "${role_manage-realm}", - "scopeParamRequired": false, - "composite": false, - "clientRole": true, - "containerId": "c1f65e94-ed07-4bba-bafd-413db402a5f2" - } - ], - "security-admin-console": [], - "alfresco": [], - "admin-cli": [], - "broker": [ - { - "id": "560b729f-ebc7-4ce6-967b-045611d35cde", - "name": "read-token", - "description": "${role_read-token}", - "scopeParamRequired": false, - "composite": false, - "clientRole": true, - "containerId": "887e537f-4a97-4374-a5de-45ad37bfe2df" - } - ], - "account": [ - { - "id": "86de6e40-74c1-4aa6-9a8b-bff434fb9a18", - "name": "manage-account-links", - "description": "${role_manage-account-links}", - "scopeParamRequired": false, - "composite": false, - "clientRole": true, - "containerId": "140feb9e-fd73-4d02-97f6-928ed67020f1" - }, - { - "id": "6a95ddc1-2b12-4e59-8d14-01a98c0fad71", - "name": "manage-account", - "description": "${role_manage-account}", - "scopeParamRequired": false, - "composite": true, - "composites": { - "client": { - "account": ["manage-account-links"] - } - }, - "clientRole": true, - "containerId": "140feb9e-fd73-4d02-97f6-928ed67020f1" - }, - { - "id": "a8e8d710-1f71-4481-93a1-db030533b64a", - "name": "view-profile", - "description": "${role_view-profile}", - "scopeParamRequired": false, - "composite": false, - "clientRole": true, - "containerId": "140feb9e-fd73-4d02-97f6-928ed67020f1" - } - ] - } - }, - "groups": [ - { - "id": "21cd4641-e7cb-456f-846d-214589cef3da", - "name": "admin", - "path": "/admin", - "attributes": {}, - "realmRoles": [], - "clientRoles": {}, - "subGroups": [] - } - ], - "defaultRoles": ["offline_access", "uma_authorization"], - "requiredCredentials": ["password"], - "otpPolicyType": "totp", - "otpPolicyAlgorithm": "HmacSHA256", - "otpPolicyInitialCounter": 0, - "otpPolicyDigits": 6, - "otpPolicyLookAheadWindow": 1, - "otpPolicyPeriod": 30, - "otpSupportedApplications": ["FreeOTP"], - "clients": [ - { - "id": "fca5da6d-fd90-4596-a754-346d872b779f", - "clientId": "security-admin-console", - "name": "${client_security-admin-console}", - "baseUrl": "/auth/admin/alfresco/console/index.html", - "surrogateAuthRequired": false, - "enabled": true, - "clientAuthenticatorType": "client-secret", - "secret": "**********", - "redirectUris": ["/auth/admin/alfresco/console/*"], - "webOrigins": [], - "notBefore": 0, - "bearerOnly": false, - "consentRequired": false, - "standardFlowEnabled": true, - "implicitFlowEnabled": false, - "directAccessGrantsEnabled": false, - "serviceAccountsEnabled": false, - "publicClient": true, - "frontchannelLogout": false, - "protocol": "openid-connect", - "attributes": {}, - "fullScopeAllowed": false, - "nodeReRegistrationTimeout": 0, - "protocolMappers": [ - { - "id": "50435a57-d933-4392-aa63-c7b93969cb77", - "name": "role list", - "protocol": "saml", - "protocolMapper": "saml-role-list-mapper", - "consentRequired": false, - "config": { - "single": "false", - "attribute.nameformat": "Basic", - "attribute.name": "Role" - } - }, - { - "id": "9d065ef2-ac16-4314-bdce-6df1e32b45da", - "name": "username", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${username}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "username", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "preferred_username", - "jsonType.label": "String" - } - }, - { - "id": "f21fa9c5-090a-4873-a059-5a714e186e08", - "name": "full name", - "protocol": "openid-connect", - "protocolMapper": "oidc-full-name-mapper", - "consentRequired": true, - "consentText": "${fullName}", - "config": { - "id.token.claim": "true", - "access.token.claim": "true" - } - }, - { - "id": "1d28c5e3-d1ab-4563-838d-06c61e96fd3c", - "name": "family name", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${familyName}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "lastName", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "family_name", - "jsonType.label": "String" - } - }, - { - "id": "0fd5ed6e-65af-4661-9d40-09a0dc90d705", - "name": "locale", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-attribute-mapper", - "consentRequired": false, - "consentText": "${locale}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "locale", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "locale", - "jsonType.label": "String" - } - }, - { - "id": "47febcd5-e6e8-4c83-8ea0-551f66cbef51", - "name": "email", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${email}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "email", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "email", - "jsonType.label": "String" - } - }, - { - "id": "fc891ffd-b5b7-4d56-b1cd-60ae25ec0040", - "name": "given name", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${givenName}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "firstName", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "given_name", - "jsonType.label": "String" - } - } - ], - "useTemplateConfig": false, - "useTemplateScope": false, - "useTemplateMappers": false - }, - { - "id": "be13165d-2792-43aa-abdb-2c6cdb627184", - "clientId": "alfresco", - "surrogateAuthRequired": false, - "enabled": true, - "clientAuthenticatorType": "client-secret", - "secret": "**********", - "redirectUris": ["*"], - "webOrigins": [], - "notBefore": 0, - "bearerOnly": false, - "consentRequired": false, - "standardFlowEnabled": true, - "implicitFlowEnabled": true, - "directAccessGrantsEnabled": true, - "serviceAccountsEnabled": false, - "publicClient": true, - "frontchannelLogout": false, - "protocol": "openid-connect", - "attributes": {}, - "fullScopeAllowed": true, - "nodeReRegistrationTimeout": -1, - "protocolMappers": [ - { - "id": "202b6b67-dea4-440b-b250-867fa7eb7333", - "name": "role list", - "protocol": "saml", - "protocolMapper": "saml-role-list-mapper", - "consentRequired": false, - "config": { - "single": "false", - "attribute.nameformat": "Basic", - "attribute.name": "Role" - } - }, - { - "id": "cdb53973-5bf0-4de4-945d-901de3205016", - "name": "email", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${email}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "email", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "email", - "jsonType.label": "String" - } - }, - { - "id": "8dd3c664-426e-44e7-931f-5e0700ed9e7f", - "name": "username", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${username}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "username", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "preferred_username", - "jsonType.label": "String" - } - }, - { - "id": "aa1a443c-4716-424b-b695-49961d9cf98a", - "name": "family name", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${familyName}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "lastName", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "family_name", - "jsonType.label": "String" - } - }, - { - "id": "b29201a7-e442-47f6-a589-1b6faaf27b20", - "name": "full name", - "protocol": "openid-connect", - "protocolMapper": "oidc-full-name-mapper", - "consentRequired": true, - "consentText": "${fullName}", - "config": { - "id.token.claim": "true", - "access.token.claim": "true" - } - }, - { - "id": "292f1e75-3216-447d-886a-6ab91b0dee1d", - "name": "given name", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${givenName}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "firstName", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "given_name", - "jsonType.label": "String" - } - } - ], - "useTemplateConfig": false, - "useTemplateScope": false, - "useTemplateMappers": false - }, - { - "id": "887e537f-4a97-4374-a5de-45ad37bfe2df", - "clientId": "broker", - "name": "${client_broker}", - "surrogateAuthRequired": false, - "enabled": true, - "clientAuthenticatorType": "client-secret", - "secret": "**********", - "redirectUris": [], - "webOrigins": [], - "notBefore": 0, - "bearerOnly": false, - "consentRequired": false, - "standardFlowEnabled": true, - "implicitFlowEnabled": false, - "directAccessGrantsEnabled": false, - "serviceAccountsEnabled": false, - "publicClient": false, - "frontchannelLogout": false, - "protocol": "openid-connect", - "attributes": {}, - "fullScopeAllowed": false, - "nodeReRegistrationTimeout": 0, - "protocolMappers": [ - { - "id": "865fd86a-4c5e-4900-80de-34f30feb55b8", - "name": "family name", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${familyName}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "lastName", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "family_name", - "jsonType.label": "String" - } - }, - { - "id": "80b5d7cc-1ec3-4d73-8344-d0479bb4178a", - "name": "username", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${username}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "username", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "preferred_username", - "jsonType.label": "String" - } - }, - { - "id": "54578e9a-e782-4a83-8f24-13da2b2f598c", - "name": "given name", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${givenName}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "firstName", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "given_name", - "jsonType.label": "String" - } - }, - { - "id": "a8cd846c-f538-4001-ba5f-e37d77ff87cd", - "name": "full name", - "protocol": "openid-connect", - "protocolMapper": "oidc-full-name-mapper", - "consentRequired": true, - "consentText": "${fullName}", - "config": { - "id.token.claim": "true", - "access.token.claim": "true" - } - }, - { - "id": "a259f058-dbda-473a-b96e-2998958f8510", - "name": "role list", - "protocol": "saml", - "protocolMapper": "saml-role-list-mapper", - "consentRequired": false, - "config": { - "single": "false", - "attribute.nameformat": "Basic", - "attribute.name": "Role" - } - }, - { - "id": "c7aed2b8-6716-4770-a936-31d973bdc557", - "name": "email", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${email}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "email", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "email", - "jsonType.label": "String" - } - } - ], - "useTemplateConfig": false, - "useTemplateScope": false, - "useTemplateMappers": false - }, - { - "id": "c1f65e94-ed07-4bba-bafd-413db402a5f2", - "clientId": "realm-management", - "name": "${client_realm-management}", - "surrogateAuthRequired": false, - "enabled": true, - "clientAuthenticatorType": "client-secret", - "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": {}, - "fullScopeAllowed": false, - "nodeReRegistrationTimeout": 0, - "protocolMappers": [ - { - "id": "b51a2178-2121-42c8-9ae1-7a6f356377c0", - "name": "full name", - "protocol": "openid-connect", - "protocolMapper": "oidc-full-name-mapper", - "consentRequired": true, - "consentText": "${fullName}", - "config": { - "id.token.claim": "true", - "access.token.claim": "true" - } - }, - { - "id": "091f3317-7f74-417f-9854-1726ede0fba8", - "name": "username", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${username}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "username", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "preferred_username", - "jsonType.label": "String" - } - }, - { - "id": "033aeb3f-f04f-460b-9eeb-fd9376b1f639", - "name": "family name", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${familyName}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "lastName", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "family_name", - "jsonType.label": "String" - } - }, - { - "id": "5e3d143c-1792-41c1-bf10-2ece9684a8fc", - "name": "given name", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${givenName}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "firstName", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "given_name", - "jsonType.label": "String" - } - }, - { - "id": "e0464a63-f5ac-4fb8-9cf5-dc671badf59e", - "name": "email", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${email}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "email", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "email", - "jsonType.label": "String" - } - }, - { - "id": "b68aec8b-327d-4238-8021-cefda0f66690", - "name": "role list", - "protocol": "saml", - "protocolMapper": "saml-role-list-mapper", - "consentRequired": false, - "config": { - "single": "false", - "attribute.nameformat": "Basic", - "attribute.name": "Role" - } - } - ], - "useTemplateConfig": false, - "useTemplateScope": false, - "useTemplateMappers": false - }, - { - "id": "140feb9e-fd73-4d02-97f6-928ed67020f1", - "clientId": "account", - "name": "${client_account}", - "baseUrl": "/auth/realms/alfresco/account", - "surrogateAuthRequired": false, - "enabled": true, - "clientAuthenticatorType": "client-secret", - "secret": "**********", - "defaultRoles": ["view-profile", "manage-account"], - "redirectUris": ["/auth/realms/alfresco/account/*"], - "webOrigins": [], - "notBefore": 0, - "bearerOnly": false, - "consentRequired": false, - "standardFlowEnabled": true, - "implicitFlowEnabled": false, - "directAccessGrantsEnabled": false, - "serviceAccountsEnabled": false, - "publicClient": false, - "frontchannelLogout": false, - "protocol": "openid-connect", - "attributes": {}, - "fullScopeAllowed": false, - "nodeReRegistrationTimeout": 0, - "protocolMappers": [ - { - "id": "fbda389d-78dd-4566-8238-c49a8809a3ac", - "name": "email", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${email}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "email", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "email", - "jsonType.label": "String" - } - }, - { - "id": "88b68fdb-7f1b-459b-9013-2c1dfcb4ab87", - "name": "family name", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${familyName}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "lastName", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "family_name", - "jsonType.label": "String" - } - }, - { - "id": "9d129b38-1b18-4c79-a987-088ec7460d8d", - "name": "username", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${username}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "username", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "preferred_username", - "jsonType.label": "String" - } - }, - { - "id": "6ca7c6ca-4d2f-4fbe-8288-c65ec1f1a2ef", - "name": "role list", - "protocol": "saml", - "protocolMapper": "saml-role-list-mapper", - "consentRequired": false, - "config": { - "single": "false", - "attribute.nameformat": "Basic", - "attribute.name": "Role" - } - }, - { - "id": "dcaaafc2-72d0-41b1-9df1-250aa82c3aa3", - "name": "full name", - "protocol": "openid-connect", - "protocolMapper": "oidc-full-name-mapper", - "consentRequired": true, - "consentText": "${fullName}", - "config": { - "id.token.claim": "true", - "access.token.claim": "true" - } - }, - { - "id": "64a2de57-3811-415f-a6b9-b550c3dfd8b0", - "name": "given name", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${givenName}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "firstName", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "given_name", - "jsonType.label": "String" - } - } - ], - "useTemplateConfig": false, - "useTemplateScope": false, - "useTemplateMappers": false - }, - { - "id": "b5947c98-5a51-47f4-b7c9-935c491d17e9", - "clientId": "admin-cli", - "name": "${client_admin-cli}", - "surrogateAuthRequired": false, - "enabled": true, - "clientAuthenticatorType": "client-secret", - "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": {}, - "fullScopeAllowed": false, - "nodeReRegistrationTimeout": 0, - "protocolMappers": [ - { - "id": "3a7400ad-d225-401f-bdb7-91d60db990f6", - "name": "username", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${username}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "username", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "preferred_username", - "jsonType.label": "String" - } - }, - { - "id": "e4353798-aaac-40fa-967d-64aea182dd69", - "name": "email", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${email}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "email", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "email", - "jsonType.label": "String" - } - }, - { - "id": "8fe5f0fa-b9f3-41c4-9a52-b195582d9239", - "name": "family name", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${familyName}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "lastName", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "family_name", - "jsonType.label": "String" - } - }, - { - "id": "44872cc3-57b5-41d3-aae1-825dd2c350c0", - "name": "full name", - "protocol": "openid-connect", - "protocolMapper": "oidc-full-name-mapper", - "consentRequired": true, - "consentText": "${fullName}", - "config": { - "id.token.claim": "true", - "access.token.claim": "true" - } - }, - { - "id": "29d794ba-6708-49cd-8a83-c50d6fc0e293", - "name": "role list", - "protocol": "saml", - "protocolMapper": "saml-role-list-mapper", - "consentRequired": false, - "config": { - "single": "false", - "attribute.nameformat": "Basic", - "attribute.name": "Role" - } - }, - { - "id": "4c266a5c-cb5f-407a-876e-18f002b7792a", - "name": "given name", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-property-mapper", - "consentRequired": true, - "consentText": "${givenName}", - "config": { - "userinfo.token.claim": "true", - "user.attribute": "firstName", - "id.token.claim": "true", - "access.token.claim": "true", - "claim.name": "given_name", - "jsonType.label": "String" - } - } - ], - "useTemplateConfig": false, - "useTemplateScope": false, - "useTemplateMappers": false - } - ], - "browserSecurityHeaders": { - "xContentTypeOptions": "nosniff", - "xRobotsTag": "none", - "xFrameOptions": "SAMEORIGIN", - "xXSSProtection": "1; mode=block", - "contentSecurityPolicy": "frame-src 'self'; frame-ancestors 'self'; object-src 'none';" - }, - "smtpServer": {}, - "loginTheme": "keycloak", - "eventsEnabled": false, - "eventsListeners": ["jboss-logging"], - "enabledEventTypes": [], - "adminEventsEnabled": false, - "adminEventsDetailsEnabled": false, - "components": { - "org.keycloak.services.clientregistration.policy.ClientRegistrationPolicy": [ - { - "id": "20f304be-9abc-4fa2-801e-c02440148d1b", - "name": "Trusted Hosts", - "providerId": "trusted-hosts", - "subType": "anonymous", - "subComponents": {}, - "config": { - "host-sending-registration-request-must-match": ["true"], - "client-uris-must-match": ["true"] - } - }, - { - "id": "dd0ae9d2-7af3-4d38-b8e7-d9c5825d3b1f", - "name": "Full Scope Disabled", - "providerId": "scope", - "subType": "anonymous", - "subComponents": {}, - "config": {} - }, - { - "id": "b3099bb7-0064-4315-85d9-cdbcc0bfef71", - "name": "Consent Required", - "providerId": "consent-required", - "subType": "anonymous", - "subComponents": {}, - "config": {} - }, - { - "id": "7f35ed4a-2140-478b-b2f8-46585315b71f", - "name": "Allowed Protocol Mapper Types", - "providerId": "allowed-protocol-mappers", - "subType": "anonymous", - "subComponents": {}, - "config": { - "allowed-protocol-mapper-types": [ - "saml-user-attribute-mapper", - "oidc-usermodel-property-mapper", - "saml-role-list-mapper", - "saml-user-property-mapper", - "oidc-address-mapper", - "oidc-full-name-mapper", - "oidc-sha256-pairwise-sub-mapper", - "oidc-usermodel-attribute-mapper" - ], - "consent-required-for-all-mappers": ["true"] - } - }, - { - "id": "30ac8e1b-b8e4-4877-aeab-42af7c2af5ff", - "name": "Allowed Client Templates", - "providerId": "allowed-client-templates", - "subType": "anonymous", - "subComponents": {}, - "config": {} - }, - { - "id": "db5b54f2-258b-40f9-92f9-ef83a887d1fa", - "name": "Allowed Protocol Mapper Types", - "providerId": "allowed-protocol-mappers", - "subType": "authenticated", - "subComponents": {}, - "config": { - "allowed-protocol-mapper-types": [ - "saml-user-attribute-mapper", - "oidc-usermodel-attribute-mapper", - "oidc-usermodel-property-mapper", - "saml-role-list-mapper", - "oidc-address-mapper", - "saml-user-property-mapper", - "oidc-full-name-mapper", - "oidc-sha256-pairwise-sub-mapper" - ], - "consent-required-for-all-mappers": ["true"] - } - }, - { - "id": "cd68d51f-9c85-4560-b1d6-9379bf3fce54", - "name": "Allowed Client Templates", - "providerId": "allowed-client-templates", - "subType": "authenticated", - "subComponents": {}, - "config": {} - }, - { - "id": "cd3bfc37-cc55-40dc-8d83-98b76ad5a521", - "name": "Max Clients Limit", - "providerId": "max-clients", - "subType": "anonymous", - "subComponents": {}, - "config": { - "max-clients": ["200"] - } - } - ], - "org.keycloak.keys.KeyProvider": [ - { - "id": "14b13815-a8b1-412c-a98d-0da235e8c8f9", - "name": "rsa-generated", - "providerId": "rsa-generated", - "subComponents": {}, - "config": { - "priority": ["100"] - } - }, - { - "id": "306d8c4c-9ad1-444e-af1a-d6c67dffc5b7", - "name": "hmac-generated", - "providerId": "hmac-generated", - "subComponents": {}, - "config": { - "priority": ["100"] - } - }, - { - "id": "bff7cf8c-001f-4cfb-8d47-9a8bd5bc48d3", - "name": "aes-generated", - "providerId": "aes-generated", - "subComponents": {}, - "config": { - "priority": ["100"] - } - } - ] - }, - "internationalizationEnabled": true, - "supportedLocales": [ - "de", - "no", - "ru", - "sv", - "pt-BR", - "lt", - "en", - "it", - "fr", - "zh-CN", - "es", - "ja", - "ca", - "nl" - ], - "defaultLocale": "en", - "authenticationFlows": [ - { - "id": "ac4ffcd4-6547-4e1c-90ac-aa56304011fb", - "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", - "requirement": "REQUIRED", - "priority": 10, - "userSetupAllowed": false, - "autheticatorFlow": false - }, - { - "authenticator": "idp-email-verification", - "requirement": "ALTERNATIVE", - "priority": 20, - "userSetupAllowed": false, - "autheticatorFlow": false - }, - { - "requirement": "ALTERNATIVE", - "priority": 30, - "flowAlias": "Verify Existing Account by Re-authentication", - "userSetupAllowed": false, - "autheticatorFlow": true - } - ] - }, - { - "id": "affb11d0-0542-4824-a433-a41e90295ec1", - "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", - "requirement": "REQUIRED", - "priority": 10, - "userSetupAllowed": false, - "autheticatorFlow": false - }, - { - "authenticator": "auth-otp-form", - "requirement": "OPTIONAL", - "priority": 20, - "userSetupAllowed": false, - "autheticatorFlow": false - } - ] - }, - { - "id": "19c7907b-c38a-4cbf-b106-f42ae613fce7", - "alias": "browser", - "description": "browser based authentication", - "providerId": "basic-flow", - "topLevel": true, - "builtIn": true, - "authenticationExecutions": [ - { - "authenticator": "auth-cookie", - "requirement": "ALTERNATIVE", - "priority": 10, - "userSetupAllowed": false, - "autheticatorFlow": false - }, - { - "authenticator": "auth-spnego", - "requirement": "DISABLED", - "priority": 20, - "userSetupAllowed": false, - "autheticatorFlow": false - }, - { - "authenticator": "identity-provider-redirector", - "requirement": "ALTERNATIVE", - "priority": 25, - "userSetupAllowed": false, - "autheticatorFlow": false - }, - { - "requirement": "ALTERNATIVE", - "priority": 30, - "flowAlias": "forms", - "userSetupAllowed": false, - "autheticatorFlow": true - } - ] - }, - { - "id": "5d678091-c1f9-4100-866f-fe35b032ae9d", - "alias": "clients", - "description": "Base authentication for clients", - "providerId": "client-flow", - "topLevel": true, - "builtIn": true, - "authenticationExecutions": [ - { - "authenticator": "client-secret", - "requirement": "ALTERNATIVE", - "priority": 10, - "userSetupAllowed": false, - "autheticatorFlow": false - }, - { - "authenticator": "client-jwt", - "requirement": "ALTERNATIVE", - "priority": 20, - "userSetupAllowed": false, - "autheticatorFlow": false - } - ] - }, - { - "id": "d41512a5-3b62-477c-9590-badbe9f8044d", - "alias": "direct grant", - "description": "OpenID Connect Resource Owner Grant", - "providerId": "basic-flow", - "topLevel": true, - "builtIn": true, - "authenticationExecutions": [ - { - "authenticator": "direct-grant-validate-username", - "requirement": "REQUIRED", - "priority": 10, - "userSetupAllowed": false, - "autheticatorFlow": false - }, - { - "authenticator": "direct-grant-validate-password", - "requirement": "REQUIRED", - "priority": 20, - "userSetupAllowed": false, - "autheticatorFlow": false - }, - { - "authenticator": "direct-grant-validate-otp", - "requirement": "OPTIONAL", - "priority": 30, - "userSetupAllowed": false, - "autheticatorFlow": false - } - ] - }, - { - "id": "34c91e7e-dc6c-495a-889f-f033c9311911", - "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", - "requirement": "REQUIRED", - "priority": 10, - "userSetupAllowed": false, - "autheticatorFlow": false - } - ] - }, - { - "id": "d28bb33e-87a2-4712-a62c-01015ddfdf57", - "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", - "requirement": "REQUIRED", - "priority": 10, - "userSetupAllowed": false, - "autheticatorFlow": false - }, - { - "authenticatorConfig": "create unique user config", - "authenticator": "idp-create-user-if-unique", - "requirement": "ALTERNATIVE", - "priority": 20, - "userSetupAllowed": false, - "autheticatorFlow": false - }, - { - "requirement": "ALTERNATIVE", - "priority": 30, - "flowAlias": "Handle Existing Account", - "userSetupAllowed": false, - "autheticatorFlow": true - } - ] - }, - { - "id": "e65923ea-0c5b-43e3-9ebb-648391445207", - "alias": "forms", - "description": "Username, password, otp and other auth forms.", - "providerId": "basic-flow", - "topLevel": false, - "builtIn": true, - "authenticationExecutions": [ - { - "authenticator": "auth-username-password-form", - "requirement": "REQUIRED", - "priority": 10, - "userSetupAllowed": false, - "autheticatorFlow": false - }, - { - "authenticator": "auth-otp-form", - "requirement": "OPTIONAL", - "priority": 20, - "userSetupAllowed": false, - "autheticatorFlow": false - } - ] - }, - { - "id": "2d8d3a79-2e44-4d52-9aa2-919a400e0ab0", - "alias": "registration", - "description": "registration flow", - "providerId": "basic-flow", - "topLevel": true, - "builtIn": true, - "authenticationExecutions": [ - { - "authenticator": "registration-page-form", - "requirement": "REQUIRED", - "priority": 10, - "flowAlias": "registration form", - "userSetupAllowed": false, - "autheticatorFlow": true - } - ] - }, - { - "id": "5043cb5e-d76e-4a57-a0db-98366acb6bf7", - "alias": "registration form", - "description": "registration form", - "providerId": "form-flow", - "topLevel": false, - "builtIn": true, - "authenticationExecutions": [ - { - "authenticator": "registration-user-creation", - "requirement": "REQUIRED", - "priority": 20, - "userSetupAllowed": false, - "autheticatorFlow": false - }, - { - "authenticator": "registration-profile-action", - "requirement": "REQUIRED", - "priority": 40, - "userSetupAllowed": false, - "autheticatorFlow": false - }, - { - "authenticator": "registration-password-action", - "requirement": "REQUIRED", - "priority": 50, - "userSetupAllowed": false, - "autheticatorFlow": false - }, - { - "authenticator": "registration-recaptcha-action", - "requirement": "DISABLED", - "priority": 60, - "userSetupAllowed": false, - "autheticatorFlow": false - } - ] - }, - { - "id": "79f99e59-6a78-4262-a86a-231e0c69d4bd", - "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", - "requirement": "REQUIRED", - "priority": 10, - "userSetupAllowed": false, - "autheticatorFlow": false - }, - { - "authenticator": "reset-credential-email", - "requirement": "REQUIRED", - "priority": 20, - "userSetupAllowed": false, - "autheticatorFlow": false - }, - { - "authenticator": "reset-password", - "requirement": "REQUIRED", - "priority": 30, - "userSetupAllowed": false, - "autheticatorFlow": false - }, - { - "authenticator": "reset-otp", - "requirement": "OPTIONAL", - "priority": 40, - "userSetupAllowed": false, - "autheticatorFlow": false - } - ] - }, - { - "id": "62e8ccd7-e995-4226-bee4-4ef9f1d6edc1", - "alias": "saml ecp", - "description": "SAML ECP Profile Authentication Flow", - "providerId": "basic-flow", - "topLevel": true, - "builtIn": true, - "authenticationExecutions": [ - { - "authenticator": "http-basic-authenticator", - "requirement": "REQUIRED", - "priority": 10, - "userSetupAllowed": false, - "autheticatorFlow": false - } - ] - } - ], - "authenticatorConfig": [ - { - "id": "d1eae692-c7d2-4d52-ac4d-7b1231ce0a22", - "alias": "create unique user config", - "config": { - "require.password.update.after.registration": "false" - } - }, - { - "id": "c6f89a26-2c86-4b6b-aee9-a483370fa20a", - "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, - "config": {} - }, - { - "alias": "UPDATE_PASSWORD", - "name": "Update Password", - "providerId": "UPDATE_PASSWORD", - "enabled": true, - "defaultAction": false, - "config": {} - }, - { - "alias": "UPDATE_PROFILE", - "name": "Update Profile", - "providerId": "UPDATE_PROFILE", - "enabled": true, - "defaultAction": false, - "config": {} - }, - { - "alias": "VERIFY_EMAIL", - "name": "Verify Email", - "providerId": "VERIFY_EMAIL", - "enabled": true, - "defaultAction": false, - "config": {} - }, - { - "alias": "terms_and_conditions", - "name": "Terms and Conditions", - "providerId": "terms_and_conditions", - "enabled": false, - "defaultAction": false, - "config": {} - } - ], - "browserFlow": "browser", - "registrationFlow": "registration", - "directGrantFlow": "direct grant", - "resetCredentialsFlow": "reset credentials", - "clientAuthenticationFlow": "clients", - "dockerAuthenticationFlow": "docker auth", - "attributes": { - "_browser_header.xXSSProtection": "1; mode=block", - "_browser_header.xFrameOptions": "SAMEORIGIN", - "permanentLockout": "false", - "quickLoginCheckMilliSeconds": "1000", - "_browser_header.xRobotsTag": "none", - "maxFailureWaitSeconds": "900", - "minimumQuickLoginWaitSeconds": "60", - "failureFactor": "30", - "actionTokenGeneratedByUserLifespan": "300", - "maxDeltaTimeSeconds": "43200", - "_browser_header.xContentTypeOptions": "nosniff", - "actionTokenGeneratedByAdminLifespan": "43200", - "bruteForceProtected": "false", - "_browser_header.contentSecurityPolicy": "frame-src 'self'; frame-ancestors 'self'; object-src 'none';", - "waitIncrementSeconds": "60" - }, - "users": [ - { - "id": "9c978d30-c9ad-4dcb-b61c-840fe56f72f2", - "createdTimestamp": 1533234734911, - "username": "admin", - "enabled": true, - "totp": false, - "emailVerified": true, - "firstName": "admin", - "lastName": "admin", - "email": "admin.adf@alfresco.com", - "credentials": [ - { - "type": "password", - "value": "admin" - } - ], - "disableableCredentialTypes": ["password"], - "requiredActions": [], - "realmRoles": ["uma_authorization", "user", "offline_access"], - "clientRoles": { - "realm-management": [ - "view-clients", - "manage-users", - "manage-clients", - "view-users", - "manage-realm", - "view-realm" - ], - "account": ["manage-account", "view-profile"] - }, - "groups": ["/admin"] - } - ], - "keycloakVersion": "4.8.3.Final" -} diff --git a/docker/proxy/nginx.conf b/docker/proxy/nginx.conf deleted file mode 100644 index 2011a9e95..000000000 --- a/docker/proxy/nginx.conf +++ /dev/null @@ -1,40 +0,0 @@ -worker_processes 1; - -events { - worker_connections 1024; -} - -http { - server { - listen *:8080; - - client_max_body_size 0; - - set $allowOriginSite *; - proxy_pass_request_headers on; - proxy_pass_header Set-Cookie; - - # External settings, do not remove - #ENV_ACCESS_LOG - - proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; - proxy_redirect off; - proxy_buffering off; - proxy_set_header Host $host:$server_port; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_pass_header Set-Cookie; - - location / { - proxy_pass http://alfresco:8080; - } - - location /alfresco/ { - proxy_pass http://alfresco:8080; - } - - location /api-explorer/ { - proxy_pass http://alfresco:8080/api-explorer/; - } - } -} diff --git a/package-lock.json b/package-lock.json index d1504c409..594a7a310 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1985,42 +1985,6 @@ "kuler": "^2.0.0" } }, - "@hapi/address": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@hapi/address/-/address-4.1.0.tgz", - "integrity": "sha512-SkszZf13HVgGmChdHo/PxchnSaCJ6cetVqLzyciudzZRT0jcOouIF/Q93mgjw8cce+D+4F4C1Z/WrfFN+O3VHQ==", - "dev": true, - "requires": { - "@hapi/hoek": "^9.0.0" - } - }, - "@hapi/formula": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@hapi/formula/-/formula-2.0.0.tgz", - "integrity": "sha512-V87P8fv7PI0LH7LiVi8Lkf3x+KCO7pQozXRssAHNXXL9L1K+uyu4XypLXwxqVDKgyQai6qj3/KteNlrqDx4W5A==", - "dev": true - }, - "@hapi/hoek": { - "version": "9.0.4", - "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.0.4.tgz", - "integrity": "sha512-EwaJS7RjoXUZ2cXXKZZxZqieGtc7RbvQhUy8FwDoMQtxWVi14tFjeFCYPZAM1mBCpOpiBpyaZbb9NeHc7eGKgw==", - "dev": true - }, - "@hapi/pinpoint": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@hapi/pinpoint/-/pinpoint-2.0.0.tgz", - "integrity": "sha512-vzXR5MY7n4XeIvLpfl3HtE3coZYO4raKXW766R6DZw/6aLqR26iuZ109K7a0NtF2Db0jxqh7xz2AxkUwpUFybw==", - "dev": true - }, - "@hapi/topo": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.0.0.tgz", - "integrity": "sha512-tFJlT47db0kMqVm3H4nQYgn6Pwg10GTZHb1pwmSiv1K4ks6drQOtfEF5ZnPjkvC+y4/bUPHK+bc87QvLcL+WMw==", - "dev": true, - "requires": { - "@hapi/hoek": "^9.0.0" - } - }, "@istanbuljs/schema": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.2.tgz", @@ -3672,7 +3636,7 @@ }, "browserify-aes": { "version": "1.2.0", - "resolved": "http://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", + "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", "dev": true, "requires": { @@ -3709,7 +3673,7 @@ }, "browserify-rsa": { "version": "4.0.1", - "resolved": "http://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz", + "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz", "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=", "dev": true, "requires": { @@ -4934,7 +4898,7 @@ }, "create-hash": { "version": "1.2.0", - "resolved": "http://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", + "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", "dev": true, "requires": { @@ -4947,7 +4911,7 @@ }, "create-hmac": { "version": "1.1.7", - "resolved": "http://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", + "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", "dev": true, "requires": { @@ -6077,7 +6041,7 @@ }, "diffie-hellman": { "version": "5.0.3", - "resolved": "http://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", + "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", "dev": true, "requires": { @@ -6628,7 +6592,7 @@ }, "es6-promisify": { "version": "5.0.0", - "resolved": "http://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", + "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", "integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=", "dev": true, "requires": { @@ -9234,19 +9198,6 @@ } } }, - "joi": { - "version": "17.2.0", - "resolved": "https://registry.npmjs.org/joi/-/joi-17.2.0.tgz", - "integrity": "sha512-9ZC8pMSitNlenuwKARENBGVvvGYHNlwWe5rexo2WxyogaxCB5dNHAgFA1BJQ6nsJrt/jz1p5vSqDT6W6kciDDw==", - "dev": true, - "requires": { - "@hapi/address": "^4.1.0", - "@hapi/formula": "^2.0.0", - "@hapi/hoek": "^9.0.0", - "@hapi/pinpoint": "^2.0.0", - "@hapi/topo": "^5.0.0" - } - }, "js-beautify": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.13.0.tgz", @@ -10531,7 +10482,7 @@ }, "media-typer": { "version": "0.3.0", - "resolved": "http://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", "dev": true }, @@ -11716,13 +11667,13 @@ }, "os-homedir": { "version": "1.0.2", - "resolved": "http://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", "dev": true }, "os-tmpdir": { "version": "1.0.2", - "resolved": "http://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=" }, "osenv": { @@ -12035,7 +11986,7 @@ }, "path-is-absolute": { "version": "1.0.1", - "resolved": "http://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true }, @@ -14178,7 +14129,7 @@ }, "safe-regex": { "version": "1.1.0", - "resolved": "http://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", "dev": true, "requires": { @@ -14558,7 +14509,7 @@ }, "sha.js": { "version": "2.4.11", - "resolved": "http://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", + "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", "dev": true, "requires": { @@ -15652,7 +15603,7 @@ }, "strip-eof": { "version": "1.0.0", - "resolved": "http://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", "dev": true }, @@ -16056,7 +16007,7 @@ }, "through": { "version": "2.3.8", - "resolved": "http://registry.npmjs.org/through/-/through-2.3.8.tgz", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=" }, "through2": { @@ -16426,7 +16377,7 @@ }, "tty-browserify": { "version": "0.0.0", - "resolved": "http://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", + "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", "integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=", "dev": true }, @@ -16842,54 +16793,6 @@ "integrity": "sha512-8TEXQxlldWAuIODdukIb+TR5s+9Ds40eSJrw+1iDDA9IFORPjMELarNQE3myz5XIkWWpdprmJjm1/SxMlWOC8A==", "dev": true }, - "wait-on": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/wait-on/-/wait-on-5.2.0.tgz", - "integrity": "sha512-U1D9PBgGw2XFc6iZqn45VBubw02VsLwnZWteQ1au4hUVHasTZuFSKRzlTB2dqgLhji16YVI8fgpEpwUdCr8B6g==", - "dev": true, - "requires": { - "axios": "^0.19.2", - "joi": "^17.1.1", - "lodash": "^4.17.19", - "minimist": "^1.2.5", - "rxjs": "^6.5.5" - }, - "dependencies": { - "axios": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.19.2.tgz", - "integrity": "sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==", - "dev": true, - "requires": { - "follow-redirects": "1.5.10" - } - }, - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "follow-redirects": { - "version": "1.5.10", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz", - "integrity": "sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==", - "dev": true, - "requires": { - "debug": "=3.1.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } - } - }, "watchpack": { "version": "1.7.4", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.7.4.tgz", diff --git a/package.json b/package.json index 9983447a3..a9dbd9848 100644 --- a/package.json +++ b/package.json @@ -24,10 +24,6 @@ "e2e.typecheck": "tsc -p ./e2e/tsconfig.e2e.typecheck.json", "e2e": "npm run update-webdriver && protractor --baseUrl=${TEST_BASE_URL:-http://localhost:8080/content-app} $SUITE", "e2e.local": "npm run update-webdriver && protractor --baseUrl=http://localhost:4200", - "wait:app": "wait-on http://${HOST_IP:-localhost}:${HOST_PORT:-8080}/alfresco/ -t 1000000", - "start:docker": "./start.sh", - "stop:docker": "./start.sh -d", - "e2e:docker": "./start.sh && npm run e2e && ./start.sh -d", "spellcheck": "cspell '{src,e2e,projects}/**/*.ts'", "inspect.bundle": "ng build app --prod --stats-json && npx webpack-bundle-analyzer dist/app/stats.json", "validate-config": "ajv validate -s ./node_modules/@alfresco/adf-core/app.config.schema.json -d ./src/app.config.json --errors=text --verbose" @@ -96,7 +92,6 @@ "husky": "^4.2.5", "jasmine-core": "~3.6.0", "jasmine-spec-reporter": "~5.0.2", - "protractor-screenshoter-plugin": "0.10.3", "karma": "^5.2.3", "karma-chrome-launcher": "^3.1.0", "karma-coverage-istanbul-reporter": "^3.0.3", @@ -111,6 +106,7 @@ "protractor": "^7.0.0", "protractor-retry": "^1.2.13", "protractor-retry-angular-cli": "^1.3.0", + "protractor-screenshoter-plugin": "0.10.3", "protractor-smartrunner": "^0.1.1", "rxjs-tslint": "^0.1.8", "rxjs-tslint-rules": "^4.34.3", @@ -121,7 +117,6 @@ "tslint-config-prettier": "^1.18.0", "tslint-plugin-prettier": "^2.3.0", "typescript": "3.9.7", - "wait-on": "^5.2.0", "webdriver-manager": "12.1.7" }, "lint-staged": { diff --git a/sanity-check.sh b/sanity-check.sh deleted file mode 100755 index e1acb8b9c..000000000 --- a/sanity-check.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/env bash - -show_help() { - echo "Usage: ./start.sh" - echo "" - echo "-hi or --host-ip set the host ip" - echo "-hp or --host-port set the host port. Default 4200" - echo "-h or --help" -} - -set_host_ip(){ - SET_HOST_IP=$1 -} - -set_host_port(){ - export HOST_PORT=$1 -} - -set_time(){ - export TIME=$1 -} - -# Defaults -SET_HOST_IP="" -HOST_PORT="8080" -TIME="10000" - -while [[ $1 == -* ]]; do - case "$1" in - -h|--help|-\?) show_help; exit 0;; - -hi|--host-ip) set_host_ip $2; shift 2;; - -hp|--host-port) set_host_port $2; shift 2;; - -t|--time) set_time $2; shift 2;; - -*) echo "invalid option: $1" 1>&2; show_help; exit 1;; - esac -done - -if [ -n "${SET_HOST_IP}" ];then - export HOST_IP=${SET_HOST_IP} -else - echo "No HOST_IP set, try to figure out on its own ..." -fi -echo "HOST_IP: ${HOST_IP}" - -echo "Waiting for the content ..." -HOST_IP=$HOST_IP HOST_PORT=$HOST_PORT npm run wait:application -if [ $? == 1 ]; then - echo "Angular Application is not running check the configuration" - exit 1 - else - echo "Application up and running" -fi - diff --git a/start.sh b/start.sh deleted file mode 100755 index 04241006c..000000000 --- a/start.sh +++ /dev/null @@ -1,87 +0,0 @@ -#!/usr/bin/env bash - -show_help() { - echo "Usage: ./start.sh" - echo "" - echo "-k or --keycloak if you want to use keycloak as identity provider" - echo "-d or --down delete all container" - echo "-wp or --windows-path convert to Windows path" - echo "-hi or --host-ip set the host ip" - echo "-hp or --host-port set the host port. Default 8080" - echo "-w or --wait wait for backend. Default true" - echo "-aca. Only redeploy ACA and skip the other docker compose services" - echo "-h or --help" -} - -set_keycloak(){ - KEYCLOAK="true" -} - -set_windows_path(){ - export COMPOSE_CONVERT_WINDOWS_PATHS=1 -} - -down(){ - docker-compose down - exit 0 -} - -set_host_ip(){ - SET_HOST_IP=$1 -} - -set_host_port(){ - HOST_PORT=$1 -} - -set_wait(){ - WAIT=$1 -} - - -# Defaults -WAIT="true" -SET_HOST_IP="" -HOST_PORT="8080" -KEYCLOAK="false" -AIMS_PROPS="" - -while [[ $1 == -* ]]; do - case "$1" in - -h|--help|-\?) show_help; exit 0;; - -k|--keycloak) set_keycloak; shift;; - -wp|--windows-path) set_windows_path; shift;; - -d|--down) down; shift;; - -w|--wait) set_wait $2; shift 2;; - -hi|--host-ip) set_host_ip $2; shift 2;; - -hp|--host-port) set_host_port $2; shift 2;; - -*) echo "invalid option: $1" 1>&2; show_help; exit 1;; - esac -done - -if [ -n "${SET_HOST_IP}" ];then - export HOST_IP=${SET_HOST_IP} -else - echo "No HOST_IP set, try to figure out on its own ..." - export HOST_IP=$(ifconfig | grep -E "([0-9]{1,3}\.){3}[0-9]{1,3}" | grep -v 127.0.0.1 | awk '{ print $2 }' | cut -f2 -d: | head -n1) -fi -echo "HOST_IP: ${HOST_IP}" - -if [[ $KEYCLOAK == "true" ]]; then - AIMS_PROPS="-Dauthentication.chain=identity-service1:identity-service,alfrescoNtlm1:alfrescoNtlm" -fi - -export AIMS_PROPS=${AIMS_PROPS} - -echo "Start docker compose" -docker-compose -f docker-compose.e2e.yml up -d --build - -if [[ $WAIT == "true" ]]; then - echo "Waiting for the content ..." - HOST_IP=$HOST_IP HOST_PORT=$HOST_PORT npm run wait:app - if [ $? == 1 ]; then - echo "Waiting failed -> exit 1" - exit 1 - fi -fi -