Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to logout the user from in-app browser. #109

Open
ha210up opened this issue Jan 18, 2024 · 1 comment
Open

Unable to logout the user from in-app browser. #109

ha210up opened this issue Jan 18, 2024 · 1 comment

Comments

@ha210up
Copy link

ha210up commented Jan 18, 2024

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'

@alex27riva
Copy link

  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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants