# Logout doesnt work when logged-in with certificate authentication (X509/Validate Username Form)

**URL:** <https://forum.keycloak.org/t/logout-doesnt-work-when-logged-in-with-certificate-authentication-x509-validate-username-form/29221>\
**Category:** Getting advice\
**Created:** [December 15, 2024, 1:05am UTC](https://forum.keycloak.org/t/logout-doesnt-work-when-logged-in-with-certificate-authentication-x509-validate-username-form/29221 "2024-12-15T01:05:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sreehari\_tummala](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/sreehari_tummala/32/11104_2.png) [@sreehari\_tummala](https://forum.keycloak.org/u/sreehari_tummala)\
**Post date:** [December 15, 2024, 1:05am UTC](https://forum.keycloak.org/t/logout-doesnt-work-when-logged-in-with-certificate-authentication-x509-validate-username-form/29221/1 "2024-12-15T01:05:15Z")

</div>

Create a new realm  
duplicate ‘browser’ Authentication flow. New Authentication flow is ‘Copy of browser fro x509 auth’  
Remove all steps in ‘Copy of browser fro x509 auth’  
Add ‘X509/Validate Username Form’  
Configure ‘User mapping method’ to ‘Username or Email’  
Launch ‘Home URL’ of ‘account-console’ client  
Login with proper client certificate.  
Now, click on “Sign out” button.  
Now, the logout happens. but again the login happens automatically  
Is there a way to change the logout redirection when logged-in with certificate.

 ![logoutIssue](https://global.discourse-cdn.com/free1/uploads/keycloak/original/2X/2/2c442697493d741d9374f5be7d47df86079e2e99.png)
