Jeff Tian
Jeff Tian

Reputation: 5923

keycloak internal server error when accessing token url

I ran the keycloak instance by

docker run -d --name keycloak \
 -e ROOT_LOGLEVEL=INFO \
 -e KEYCLOAK_LOGLEVEL=INFO \
 -e KEYCLOAK_USER=admin \
 -e KEYCLOAK_PASSWORD=admin \
 -p 8080:8080 \
 -it jboss/keycloak:master -b 0.0.0.0

docker logs -f keycloak

And then visit http://localhost:8080/auth/realms/master/protocol/openid-connect/token, get Internal Server Error:

enter image description here

So,

  1. How to get the error log? docker logs keycloak stays at the startup information, now new request log.

  2. Where is wrong, and how to fix the internal server error?


Upvotes: 6

Views: 15487

Answers (1)

Jan Garaj
Jan Garaj

Reputation: 28714

Why do you need GET request /auth/realms/master/protocol/openid-connect/token?

Token endpoint is for POST requests, not for GET request - see OIDC spec https://openid.net/specs/openid-connect-core-1_0.html#TokenRequest

Upvotes: 9

Related Questions