I have a blazor application. I use Azure AD B2C for authentication. When I am trying to run a sign in user flow, I get
This site can’t be reached
localhost refused to connect.
Here is my launchSettings.json:
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:54925",
"sslPort": 44333
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"MyAppName": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:5001;http://localhost:5000"
}
}
}
This is from appsettings.json:
"AzureAdB2C": {
"Instance": "https://laticreteb2c.b2clogin.com",
"ClientId": "Set in Azure. For development, set in User Secrets (secrets.json)",
"CallbackPath": "/signin-oidc",
"Domain": "laticreteb2c.onmicrosoft.com",
"SignOutCallbackPath": "/signout",
"SignUpSignInPolicyId": "B2C_1_MyAppName_SignIn",
"ResetPasswordPolicyId": "MyAppName_PasswordReset",
"EditProfilePolicyId": "",
"ClientSecret": "Set in Azure. For development, set in User Secrets (secrets.json)",
"TenantId": "Set in Azure. For development, set in User Secrets (secrets.json)"
},
I am running my user flow with reply url https://localhost:5001/signin-oidc.
I know it used to work before, both locally and in production, and I cannot figure out what might break since then. How can I diagnose this issue?