flutter_appauth icon indicating copy to clipboard operation
flutter_appauth copied to clipboard

Unable to show AuthorizationPage on iOS

Open TomGobillard opened this issue 3 years ago • 2 comments

Hey,

I use Azure B2C to authenticate through my app, on Android everything is working well but on iOS the package do not include the policy parameter "b2c_signup_signin" in the url, creating the following error :

image

How to force include it ?

TomGobillard avatar Jul 29 '22 09:07 TomGobillard

Same Issue I am facing, Please let me know if have any solution

JaiRathoreSpraxa avatar Aug 01 '22 14:08 JaiRathoreSpraxa

I don't have an Azure B2C instance to I can use anymore to test but I assume you mean having the policy as part of the query string? If so, then the request classes have an additional parameters property. In saying that, if you look at Microsoft's own docs, you should find examples where policy can be part of the URL as a part of the path itself. See https://docs.microsoft.com/en-us/azure/active-directory-b2c/access-tokens

There's also personal blog post written a couple of years ago on how to use this plugin with Azure B2C that can help you and shows that they had the policy name in the path https://www.detroitdave.dev/2020/04/simple-azure-b2c-flutter.html. The author happens to work at Microsoft too

MaikuB avatar Aug 05 '22 22:08 MaikuB

The additional parameter property solve my problem, lack of research on my part

Thank you

TomGobillard avatar Aug 08 '22 19:08 TomGobillard