bspk / oauth.xyz-java

Other
35 stars 9 forks source link

xyz-java is not working #2

Closed hamidmass closed 4 years ago

hamidmass commented 4 years ago

Hello sir, I’m trying to test the implementation of XYZ in Java to understand the transactional authorization protocol XYZ, but the implementation is not working. I have followed the steps described in the readme but I get the 500 Internal Server Error when I’m trying to click on one of the buttons (see attached screenshot).

Capture d’écran 2020-04-20 à 12 35 00

Any idea on what we need to do ? To facilitate our debug, is there any information or script on the structure of the mongoDB database ? ( because It would be easier during testing to host it within mongoDB Atlas). Thank you in advance for you help.

jricher commented 4 years ago

I'd need to see more details of those errors, as it working as intended here. Are there any additional error messages from the Java console? Are you running the code as a Spring Boot app?

hamidmass commented 4 years ago

Hello sir, Thank you for your response. I do have additional error message besides the one that I showed you (see attached screenshot).

Capture d’écran 2020-04-20 à 18 03 10

I have followed precisely the steps described in the readme :

  1. git clone
  2. docker-compose up
  3. mvn spring-boot: run I have the following versions of : -> docker-compose version 1.25.4 -> mvn Capture d’écran 2020-04-20 à 18 19 30

    Thank you in advance for you help.

fimbault commented 4 years ago

Hi, I had the same issue. It's due to the docker configuration, set to work for windows.

On linux: you need to change host.docker.internal to localhost in file oauth.xyz-java/src/main/resources/application.yml

And then http://localhost:9834/c should work. For spa I don't know, haven't tried.

jricher commented 4 years ago

Ah, that makes sense -- on our setup we have host.docker.internal set on the dev machines host file so that it's accessible the same way inside and outside the container.

127.0.0.1   localhost localunixsocket localunixsocket.local localunixsocket.home host.docker.internal
hamidmass commented 4 years ago

Everything works well. Thank you so much 👍