Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Set-Up Problems #289

Open
tonyashm opened this issue Mar 14, 2022 · 0 comments
Open

Set-Up Problems #289

tonyashm opened this issue Mar 14, 2022 · 0 comments

Comments

@tonyashm
Copy link

Type of issue:

  • New feature request
  • Bug
  • Support request
  • Documentation

Current behaviour:
Hello, I am evaluating different BPMN Modeler and try to get the Activiti Modelling App started, but quite a few errors occur and I do not know how to fix all of them.

Currently, the login does not work. npm start compiles successfully and I get to the login UI. But when I try to enter any of the credentials listed in the .env file, the UI shows You've entered an unknown username or password while the console logs ERROR TypeError: alfrescoApiService.getInstance().oauth2Auth is undefined.

Expected behavior:
Successful login and ready to start modelling.

Steps to reproduce the issue:

  • Download activiti-modeling-app-7.1.0-M17.zip -> unzip
  • Follow steps in README.md
    • Run npm install
    • Create .env file and copy/paste values
    • tried to run npm start which ended with errors -> since I work on Windows, I had to change a few things in the package.json:
      • replace / with \\
      • replace mkdir -p with if not exist <path> mkdir <path
    • run docker build command according to README.md
    • run docker run -it -e APP_CONFIG_OAUTH2_HOST="http://localhost:4201/auth/realms/activiti" -e APP_CONFIG_OAUTH2_CLIENTID="activiti" -e APP_CONFIG_BPM_HOST="http://localhost" -p 8080:80 alfresco/alfresco-apps:latest

What my .env looks like:

# App config settings
#APP_CONFIG_BPM_HOST="<url>"
APP_CONFIG_BPM_HOST="http://localhost:4201"
#APP_CONFIG_ECM_HOST="<url>"
APP_CONFIG_ECM_HOST="http://localhost:4201"

#APP_CONFIG_OAUTH2_HOST="<url>"
APP_CONFIG_OAUTH2_HOST="http://localhost:4201/auth/realms/alfresco/auth"

#APP_CONFIG_IDENTITY_HOST="<url>"
APP_CONFIG_IDENTITY_HOST="http://localhost:4201/auth/realms/alfresco/auth/admin"

APP_CONFIG_PROVIDER="ALL"
APP_CONFIG_AUTH_TYPE="OAUTH"
APP_CONFIG_OAUTH2_CLIENTID="alfresco"
APP_CONFIG_OAUTH2_IMPLICIT_FLOW=true
APP_CONFIG_OAUTH2_SILENT_LOGIN=true
APP_CONFIG_OAUTH2_REDIRECT_SILENT_IFRAME_URI="{protocol}//{hostname}{:port}/assets/silent-refresh.html"
APP_CONFIG_OAUTH2_REDIRECT_LOGIN=/
APP_CONFIG_OAUTH2_REDIRECT_LOGOUT=/
APP_CONFIG_APPS_DEPLOYED="[{"name": "simpleapp"}]"

# MODELING RELATED
APP_CONFIG_NOTIFICATION_LAST=6000
APP_CONFIG_SHOW_NOTIFICATION_HISTORY=true

# E2E settings
E2E_USE_MOCK_BACKEND=true
E2E_HOST="http://localhost"
E2E_PORT="4200"
BROWSER_RUN="true"
E2E_PREFIX="e2e"
SMART_RUNNER_DIRECTORY=".protractor-smartrunner"
SAVE_SCREENSHOT="true"
SCREENSHOT_URL="<url>"
SCREENSHOT_PASSWORD="test"
LOG_LEVEL="TRACE"
LOG=true

# Test user credentials
E2E_USERNAME="e2e"
E2E_PASSWORD="test"
E2E_UNAUTHORIZED_USER="e2e_unauth"
E2E_UNAUTHORIZED_USER_PASSWORD="test"
IDENTITY_USER_EMAIL="identity_user_email"
IDENTITY_USER_PASSWORD="test"
SUPERADMIN_EMAIL="superadmin_email"
SUPERADMIN_PASSWORD="test"
DEVOPS_EMAIL="devops_email"
DEVOPS_PASSWORD="test"
MODELER_EMAIL="user"
MODELER_PASSWORD="test"
PROCESS_ADMIN_EMAIL="process_admin_email"
PROCESS_ADMIN_PASSWORD="test"
HR_USER="hr"
HR_USER_PASSWORD="test"
ADMIN_EMAIL="[email protected]"
ADMIN_PASSWORD="test"

Browser and version:
Firefox 98.00

Node version (for build issues):
v14.15.4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant