leezj-cbm commented on issue #24713:
URL: https://github.com/apache/superset/issues/24713#issuecomment-2238568947

   Hi All, i am facing this same issue. I have tried these and it still doesn't 
work. The app is unable to modify or delete the cookie.
   
   Manually expiring the cookie or deleting the cookie in browser prevents this.
   
   I have trying to code the app to delete or modify the cookie.
   
   Anybody have any advice for me?
   
   ```
   ...
   oidc.logout()
   super(AuthOIDCView, self).logout()
   ...
   response = make_response(redirect(oidc.client_secrets.get('issuer') + 
                                             
'/protocol/openid-connect/logout?post_logout_redirect_uri='+
                                             
quote(redirect_url)+f"&client_id={client_id}&id_token_hint={id_token}"))
   response.set_cookie('oidc_id_token',value='',max_age=0,expires=0, 
path='/',domain=request.host,secure=False, httponly=False, samesite=None)
   response.delete_cookie('oidc_id_token',path='/',domain=request.host)
   return response
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to