Open fjulia opened 3 years ago
Hello!
Yep, definitely confusing stuff and it took me a while to figure it out when I was developing the platform, but by default, when you set up your integration in your Azure portal and select Android and/or iOS, it's expecting to get a redirect URI after sign-in in the following formats:
Android
msauth://<scheme>
://[Your_Bundle_Id]
You can find more information in Microsoft's MSAL documentation for Android and iOS.
Hello!
Yep, definitely confusing stuff and it took me a while to figure it out when I was developing the platform, but by default, when you set up your integration in your Azure portal and select Android and/or iOS, it's expecting to get a redirect URI after sign-in in the following formats:
Android msauth:/// iOS
<scheme>
://[Your_Bundle_Id]You can find more information in Microsoft's MSAL documentation for Android and iOS.
@wrobins When the RedirectURI is set to true, the plugin returns an error: "msalinit() is not initialized". Is there a way to solve this? Thank you.
Redirect URI that is set by default seems to be different depending on the platform (IOS or Android). In IOS it is set as:
... redirectUri:[NSString stringWithFormat:@"msauth.%@://auth", ...
And in android as:
... "redirect_uri\" : \"msauth://" + MsalPlugin.this.activity.getApplicationContext().getPackageName() + "/" + keyHashUrlFriendly + "\",\n"...
It took me some time to find out. I could not find that documented anywhere and Safari keeps showing the error : "cannot open the page because the address is invalid" when SignInInteractive is executed.
Thanks.