I have checked the
api from the following
url
https://www.keycloak.org/docs-api/5.0/rest-api/index.html
I have tried this to clear the entire session for the currently logged in user
via curl function.
$url = {keycloak server}/auth/admin/realms/testotp/users/".$id."/logout
$postdata = array(
'refresh_token' => $refresh_token,
'client_id' => 'sso',
'realm' => 'testotp',
'client_secret' => '96835403-30d9-4c8f-b0e0-00e91cb2b481',
'user'=>‘9eac87a6-32b3-419d-a690-c5e5aad98245’
);
And sets the header assigned with bearer access token.
'Authorization: Bearer '.$access_token,
But I got the error code – 403 as response
Kindly add some points to help me from logout the current users entire sessions.
Thanks and Regards
Joyson Anto ~ Aj
Antony Joyson M
Software Engineer
TSG
SPi Global
M +91 9551347970
M.AntonyJoyson@spi-global.com
www.spi-global.com
SPi Global – Philippines Best Employer 2018, 13th Employer Branding
Awards, Employer Branding Institute - India and 2018’s Top 25 AI Companies in APAC by CIO Advisor
CONFIDENTIALITY NOTICE: This email, including its
attachments, is intended for the use of the person/s it is addressed to. It may contain personal data, or information that is protected or privileged, which are protected from unauthorized use or disclosure by law. |
|
If you are not the intended recipient, any dissemination,
retention or use of any information contained in this email is prohibited. If you have received this email in error, please promptly notify the sender by reply email and delete the original email and any backup copies without reading them. |
|
If you have questions or clarifications regarding
any matter relating to data protection, you may write to the SPi Global Data Protection Office at dpo@spi-global.com. You may also file a complaint or report a security incident involving personal data by writing to: dpo@spi-global.com. |