Search code examples
androidflutterhttp-redirectoauth

Why does "appAuthRedirectScheme" as manifest placeholder has no effect?


I'm trying to build a simple single sign-on example with flutter. Therefore I need to redirect the user after authenticating at the identity provider back to my app. I use the Flutter AppAuth Plugin to do so. But even when I follow the "Getting Started" section, it does not work. I've added

manifestPlaceholders = [
  'appAuthRedirectScheme': 'my.example.redirect'
]

to my grade file, but the open by default page of the app doesn't show anything:

enter image description here

And when I enter a URL like "my.example.redirect/test" to chrome, it doesn't open the app.

So does anyone have an idea, what I made wrong here?


Solution

  • I think, you using return url wrong, send something like "my.example.redirect:/callback" because scheme is before path, like scheme http, or https.

    hopefully it will help.