Skip to content

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

@ha210up

Description

@ha210up

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions