<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
I have problem with the Bad request when the user login.<br>
<br>
I have a simple War with JSP-s. With the following keycloak.json<br>
<br>
{<br>
"realm": "test",<br>
"realm-public-key": "...",<br>
"auth-server-url": "keycloak-url",<br>
"ssl-required": "none",<br>
"resource": "dashboard-app",<br>
"public-client": true,<br>
"use-resource-role-mappings": false,<br>
"principal-attribute": "preferred_username"<br>
}<br>
<br>
The wildfly redirects to the keycloak perfectly and adds a status
parameter to the URL. After the login we get a 400 Bad request
error. In the wildfly log I found these lines.<br>
<br>
WARN [org.keycloak.adapters.OAuthRequestAuthenticator] (default
task-111) state parameter invalid<br>
WARN [org.keycloak.adapters.OAuthRequestAuthenticator] (default
task-111) cookie: 151/af93b54d-6b04-4d82-9a8b-1fe7203b279e<br>
WARN [org.keycloak.adapters.OAuthRequestAuthenticator] (default
task-111) queryParam: 150/e946fb78-9902-4449-8c33-687fcaf98d3d<br>
<br>
What did I configure wrong?<br>
<br>
The Keycloak version is 1.9.8.Final .<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
Any ideas ?<br>
<br>
Regards<br>
</body>
</html>