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

Set up problems #255

Open
Readock opened this issue Jan 13, 2020 · 1 comment
Open

Set up problems #255

Readock opened this issue Jan 13, 2020 · 1 comment

Comments

@Readock
Copy link

Readock commented Jan 13, 2020

Type of issue: (check with "[x]")

  • New feature request
  • Bug
  • Support request
  • Documentation

Current behaviour:
I feel a bit lost setting up the development server. For now i just want to test cloud modeling but i cant set it up right. When setting up the .env file i am supposed to replace API_HOST and OAUTH_HOST i guess. So i set up a keycloak server with a user and the ACTIVITI_MODELER role. (would be nice to see a hint that this role is needed in the readme). When i open http://localhost:4200 i cant create a new project. In the browser console i get:

Failed to load resource: the server responded with a status of 401 (Unauthorized)
http://localhost:4200/alfresco/api/-default-/public/authentication/versions/1/tickets/-me-

and

main.js:13881 Error: Uncaught (in promise): Object: {"error":{"original":null,"response":{"req":{"method":"GET","url":"http://localhost:4200/alfresco/api/-default-/public/authentication/versions/1/tickets/-me-","headers":{"authorization":"Bearer ...

Steps to reproduce the issue:
clone https://github.com/activiti/activiti-modeling-app and https://github.com/Activiti/activiti-cloud-modeling-service. Setup keycloak server. My config:

API_HOST="http://localhost:8080"
OAUTH_HOST="http://localhost:8180/auth/realms/test"
E2E_HOST="http://localhost:4200"

Browser and version:
Chrome

@Readock
Copy link
Author

Readock commented Jan 13, 2020

there was a problem with the proxy.config.js ... when i replace "^/modeling-service/modeling-service": "" with "^/modeling-service": ""it is sort of working. I also changed the Client Authenticator to jwt. So now i can create a new project and processes. But i still get this error:
Screenshot_20200113_150827

Am i missing something here. Also is there no documentation on how to set keycloak up for this?

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