openid_client icon indicating copy to clipboard operation
openid_client copied to clipboard

Unable to logout the user from in-app browser.

Open ha210up opened this issue 1 year ago • 1 comments

We are building an app using Flutter framework. We are using the flutter_webview_plugin to login/logout a user out of our application. The login works fine. However, the logout does not work. We have tried following approaches with the issue we are facing-

  1. Calling the logout URL Issue - The session is not logged out even though we get 200 ok response on the logout url. The logged out user gets automatically signed in as soon as the user is redirected to the original login page after logout. In case where we try killing the app before reopening it to login, the code is deemed to be invalid.

  2. using _authenticator.logout() method The code does not compile with this in place. Following error is thrown - '../../../.pub-cache/hosted/pub.dev/openid_client-0.4.7/lib/openid_client_browser.dart:2:8: Error: Dart library 'dart:html' is not available on this platform'

ha210up avatar Jan 18 '24 12:01 ha210up

  1. sion is not logged out even though we

Hi, are you building a Flutter web app? I also need to implement logout in my web app. I'm using this package with Keycloak.

alex27riva avatar Apr 22 '24 19:04 alex27riva