Activiti / activiti-modeling-app

Activiti Modeling Application
Apache License 2.0
184 stars 93 forks source link

Set-Up Problems #289

Open tonyashm opened 2 years ago

tonyashm commented 2 years ago

Type of issue:

  • [ ] New feature request
  • [ ] Bug
  • [x] 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:

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="admin@test.de"
ADMIN_PASSWORD="test"

Browser and version: Firefox 98.00

Node version (for build issues):
v14.15.4