An internal server error has occurred & Invalid Request

Hey everyone,

I’m running keycloak in dev mode via ubuntu server.
I allowed access to port 8080 on the ec2 security configurations, then runned the keycloak server via :

sudo ./kc.sh start-dev. ( with admin as user )

I get this in the terminal : Keycloak 19.0.3 on JVM (powered by Quarkus 2.7.6.Final) started in 7.371s. Listening on: http://0.0.0.0:8080

After accessing the keycloak url on my browser I do this :

  1. Go to Realm Settings
  2. Click on [OpenID Endpoint Configuration ]
  3. Click on some url endpoint like this : "authorization_endpoint": "http://***********:8080/realms/master/protocol/openid-connect/auth",
  4. I get the error

The error is :

  • We are sorry… An internal server error has occurred for token_endpoint
  • We are sorry…Invalid Request for authorization_endpoint

Is this related to configuration of OpenID Endpoint Configuration ?

Thanks

Not sure what you’re trying to achieve, but the authorization_endpoint expects some parameters defined in the openid connect protocol.

If you want to play with it, you can register the https://oidcdebugger.com/ as a client in your realm and use it to explore the keycloak response.

Also, you can understand the protocol better with this playground: Authorization Code Flow - OAuth 2.0 Playground

1 Like