MaikuB / flutter_appauth

A Flutter wrapper for AppAuth iOS and Android SDKs
274 stars 246 forks source link

Is it possible to custom 'externalUserAgent' parameter for iOS? #538

Closed john-slow closed 1 month ago

john-slow commented 2 months ago

Hey guys, our team is having a problem, we want to hide the alert when logging to iOS, however, we don't want to use ephemeral browser because it would clear session. So is it possible to expose 'externalUserAgent' parameter for iOS or can we add a custom SFSafariController as the externalAgent so that user would be able to use their own SFSafariController or is there an alternative?

john-slow commented 2 months ago

Is it possible that we use an enum type:

enum ExternalAgentType {
  ASWebAuthenticationSession,
  EphemeralSession,
  SFSafariViewController
}

to decide which type of external agent is been used here instead of using boolean preferEphemeralSession to only toggle between ASWebAuthenticationSession and EphemeralSession?

vmichalak commented 2 months ago

We currently have the same issue on our app. We need to be capable to use a non ephemeral session (we have some webviews in the app to manage the user profil).

john-slow commented 2 months ago

One solution we are doing right now is using this SFSafariController which works well but it doesn't have an open API in flutter so we have to modify the package.

john-slow commented 2 months ago

We currently have the same issue on our app. We need to be capable to use a non ephemeral session (we have some webviews in the app to manage the user profil).

here is a pr that I opened which fixed this issue

Manraj45 commented 2 months ago

This would also be really helpful for us. We are having the same issue. Thanks for creating that PR!

Mapk26 commented 1 month ago

Same problem, other webviews cannot access the same session. It would be great to have a non-ephemeral session option

john-slow commented 1 month ago

This issue has been resolved in the prerelease v8.0.0-dev.3