Unable to log in via WebUI
csyversen opened this issue · comments
@uhurusurfa I grabbed the latest release from sourceforge and I've got both the webui and the server up and running and they are communicating with each other (i can see the following in the openas2 logs after I make a login attempt via the web ui)
but i keep getting a 404 when using the test credentials (userID/pWd), whereas i see slightly different results when inputting a totally invalid u/pw, like so:
am i doing something wrong? am i missing a db seed step or something? I'm incredibly new to both as2 and this project, so any guidance is appreciated, thanks!
@igwtech it's long, so i created a gist: https://gist.github.com/csyversen/02578a11677ebf0d461908ce28ec24ef
the only section i changed was the RestCommandProcessor section, mostly following the steps that somebody else laid out here: #320 (comment)
@igwtech awesome, I'll try that in a little bit!
I had modified this line: https://gist.github.com/csyversen/02578a11677ebf0d461908ce28ec24ef#file-config-xml-L131 to be http://0.0.0.0:8443 and thought that might be an override, but I might've misunderstood the config's intent!
@igwtech ah, no luck even after making that change. I'm still seeing the same results.
It looks like the Server app is up and accepting REST requests from the Vue app (since i'm seeing activity in the server logs when I submit the login form), but the user doesn't exist or something?
i get a connection refused, the service does not seem to be running/listening
What got it to work for me/us is changing the following 2 files:
docker-compose.yml
services:
openas2:
build:
context: .
dockerfile: Dockerfile
ports:
- 4080:10080
- 4081:10081
- ${HOST_RESTAPI_PORT:-8443}:8080
environment:
- OPENAS2PROP_RESTAPI__COMMAND__PROCESOR__BASEURI="http://0.0.0.0:8080"
- OPENAS2PROP_RESTAPI__COMMAND__PROCESOR__USERID="userID"
- OPENAS2PROP_RESTAPI__COMMAND__PROCESOR__PASSWORD="pWd"
tty: true
stdin_open: true
networks:
- as2-network
volumes:
- ./config:/opt/openas2/config:rw
- ./data:/opt/openas2/data:rw
openas2_webui:
build:
context: .
dockerfile: Dockerfile_WebUI
args:
- VUE_APP_RESTAPI_URL=http://openas2:${HOST_RESTAPI_PORT:-8443}/api
ports:
- ${HOST_WEBUI_PORT:-8080}:80
tty: true
stdin_open: true
networks:
- as2-network
networks:
as2-network:
name: as2-network
config.xml
restapi.command.processor.baseuri="http://0.0.0.0:8080"
Closing as solution appears to have been found.
@uhurusurfa fwiw i never got this working, but decided to just use openas2 headless instead