Skip to content

[IOS] Would it be possible to support non-embedded browser (so use the default system browser) #565

Description

@MathiasCochet

I have been using a fork* of this library that adds the use of a default browser to authenticate. I had to use this becasue the way my authentication works is as follows:

  • user clicks on login button -> default browser opens (not in-app) -> browser opens authentication app (itsme) -> app opens callback url back in the browser -> browser closes and goes back to app.

This used to work just fine until iOS 18. If I click the login button I just get "error: unable to open Safari."

So I tried using the latest version of flutter_appauth. But then the flow breaks. it looks something like this.

  • user clicks on login button -> in-app browser opens -> inapp browser opens authentication app (itsme) -> app opens callback url in default browser (so it doesnt return to the app with the in-app browser open) -> callback show an error.

*the fork: https://github.com/digitalrmdy/flutter_appauth/tree/feature/android-sdk-34

Activity

  1. MaikuB commented on Nov 13, 2024

    @MaikuB
    Owner

    This would be something you'd need to investigate to determine. The plugin makes use of the AppAuth Android and iOS SDKs so the functionality is really provided by those SDKs

  2. flora-gr commented on Mar 24, 2025

    @flora-gr

    We have the same issue with our app > browser > auth app > browser > app flow. We would really like non-embedded browser support.

  3. CaringDev commented on May 13, 2025

    @CaringDev
    Contributor

    There was an attempt at solving this in #318
    I'm currently rebasing these changes onto latest ExternalUserAgent feature. Extending the enum should be straightforward...

  4. CaringDev commented on May 13, 2025

    @CaringDev
    Contributor

    [...] #318 [...] rebasing these changes onto latest ExternalUserAgent feature. Extending the enum should be straightforward...

    Turns out it is very straightforward 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions