Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run Azure AD screen #9

Open
NavyJot opened this issue Aug 23, 2022 · 3 comments
Open

Unable to run Azure AD screen #9

NavyJot opened this issue Aug 23, 2022 · 3 comments

Comments

@NavyJot
Copy link

NavyJot commented Aug 23, 2022

I used your example and added flutter_azure_b2c in my flutter application, and updated AndroidManifest.xml, created a config file named b2c_config.json and saved it in path: android/app/main/res/raw/ for android and updated my main.dart with your example's main.dart and getting this screen on my emulator

image

But when i click on login button i am not able load azure ad login page when i click on login, i think b2c config is not getting loaded in this app and i have checked same config with android native app its working for it

@chipscal
Copy link
Member

chipscal commented Aug 24, 2022

The sample code look for a configuration file named "auth_config.json".
You can specify a different name in the init method:

  • AzureB2C.init("<your_filename>"))

@NavyJot
Copy link
Author

NavyJot commented Aug 25, 2022

@chipscal i tried that as well

@chipscal
Copy link
Member

chipscal commented Sep 2, 2022

Could you post, if any, the errors that you got on console? Are you sure that the file is not loaded? maybe there is some error in the manifest or b2c configuration itself... Please, check that the android:host and android:path in the manifest file match with the application configured on the azure b2c portal as if not MSAL will not show anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants