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

Getting CLIENT_ERROR after redirect from azure ad b2c signin policy (web) #19

Open
shubhshah01 opened this issue Feb 17, 2023 · 1 comment

Comments

@shubhshah01
Copy link

shubhshah01 commented Feb 17, 2023

Getting
Callback data: {"tag":"885e5899-a955-41a9-a37c-94ecd7fc7158","source":"init","reason":"CLIENT_ERROR"}
After signin is completed and azure redirects to my app url.

Running on flutter web.

  • Config file as per the readme.
  • Calling the below fns in initState for main Widget again as per the example provided.
AzureB2C.registerCallback(B2COperationSource.INIT, (result) async {
   if (result.reason == B2COperationState.SUCCESS) {
       var _config = await AzureB2C.getConfiguration();
       AzureLoginFunction().setConfiguration(_config);
   }
});
AzureB2C.handleRedirectFuture().then((_) => AzureB2C.init(AzureLoginFunction.azureAuthConfigFileName));
@ndousse
Copy link

ndousse commented Jan 4, 2024

Same issue for me...

I have traced it to the fact that in the authorize url, there is the option client_info that is set to 1, if you remove manually this option, it seems to work, at least when I typed it manually in a web browser.
But I was not able to modify this option in the authorize url. Any idea how I can do that?

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