i m uable to hit the keycloak logout endpoint by java rest api on server

220 views
Skip to first unread message

Vedant Thakur

unread,
Jul 24, 2023, 3:11:28 AM7/24/23
to Keycloak User
Hello,
i m uable to hit the keycloak logout endpoint by java rest api on server but it will working fine on my local keyclaok server but not dev or stage 
and i getting this error in response
ERROR{     400 Bad Request: "<html><EOL><EOL><head><title>400 Bad Request</title></head><EOL><EOL><body><EOL><EOL><center><h1>400 Bad Request</h1></center><EOL><EOL></body><EOL><EOL></html><EOL><EOL>   } 
keycloak java rest endpoint {https://dev.tfuefcgi .com/realms/docquity/protocol/openid-connect/logout

keycloak version 21
can any one please help me on this issue 
i will be very thankfull to you.
thanks 
Vedant Thakur 


Sada Shiv Dash

unread,
Jul 24, 2023, 5:14:36 AM7/24/23
to Vedant Thakur, Keycloak User
Logout endpoint is having some mandatory query parameters. Please refer rest documentation of keycloak internal api.

Regards
Sada Shiv Dash

On 24-Jul-2023, at 12:41 PM, Vedant Thakur <vedant...@docquity.com> wrote:

Hello,
“The information contained in this message is intended for the addressee only and may contain classified information. If you are not the addressee, please delete this message and notify the sender; you should not copy or distribute this message or disclose its contents to anyone. Any views or opinions expressed in this message are those of the individual(s) and not necessarily of the Docquity. No reliance may be placed on this message without written confirmation from an authorised representative of its contents.”

--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/72b0d9ba-934c-4ba9-8648-019fbbde1473n%40googlegroups.com.

Vedant Thakur

unread,
Jul 24, 2023, 5:26:29 AM7/24/23
to Keycloak User
Hello  Sada Shiv Dash,
I have set all the required parameters but still geting error 400
ERROR{     400 Bad Request: "<html><EOL><EOL><head><title>400 Bad Request</title></head><EOL><EOL><body><EOL><EOL><center><h1>400 Bad Request</h1></center><EOL><EOL></body><EOL><EOL></html><EOL><EOL>   } 


parameter {cliendId,clientscrect, refreshToken and bearertoken in auth header}.
Is there any other parameter required ?
Thanks and Regards
Vedant

Reply all
Reply to author
Forward
0 new messages