Localhost can't be found in Microsoft edge normal mode

asked 2022-06-03T02:51:40.58+00:00
haipeng tang 16 Reputation points

Hi,

I am implementing identity external login. It works in chrome and Firefox and Microsoft InPrivate Mode.

But it show me this in Microsoft Edge normal mode.

This localhost page can’t be found

No webpage was found for the web address: https://localhost:44443/Identity/Account/ExternalLogin%3FreturnUrl=%2F&handler=Callback?code=0.ASgARLmYg9t8tUOfHuG6L4O2fveYV6Ogbn5MokT9cEJZnPYoAKc.AgABAAIAAAD--DLA3VO7QrddgJg7WevrAgDs_wQA9P8M26KfQmYdhqtGbpxujLfS27sUxYR9CVIiKCdjTWecEWb2JpwSJ3vhJrPQRueQpJir1sBPKHlh4Ar2W6_BFOfz_C2NYhefqbulM-Dc-eU0TfOmBiGaQQFZdXCdcOvzo_AmZfHfilwKE4o9L824wg2tR-fvWvVhA6R3tSH0PeCDPFXOucGAkf-Uk2kv9AamZ0f9klBMSBkTxYi9_o0dmGILYPFH4a_Xx8l4_W_5hcAXMFdAztdRHU3vftS9diUaXFBDyPR9im318jlOKYKYsmCXS8gvcnqNke8qiZDMjj-e-qMPL5m1cgkKbwiqsxsCy6qt_dq-X_PZQgC5ZFrpQcOAT8_2hPJsjQOjyvaXmww_qK2icxUAG84zwDnIoOcAB4zOOmh2OfecjVvU5vZBXRO435O5AgltBpnab8B6T3_dgjidWCt3svRfOcFy1YwQeeiV3j5IqirdV41YgThPWmc6kRPrOrvveUl_Ryi_w837mB3iBRjzJOvVdr-juX1HchK2wpRgZMExPJOUQLubbVtuLA3CC4awV1N-YVwQ8Pp4LaclqmkIK7tobDM4oS9vbMEilNBXIY9x01JGKMogLsNcFz2s4JsTntqdG8U8ogHBuXYZG5dX-cvQbrv9It5E4cXTQ-jgMJn3WQ8jkXiWFyI-vEJQxPV0j3ably3uVSyqGhCnVCVP2ZEoJ3AukjcFsxVIZTRNivOKFpMWUmXVpvwXYOzudZnXEADsMZqv5VrNVNIvgTME4nrvvuChS-s1q7M1CN3Skd0ikk8DHLo_Nn5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Gt-u-NJk1QxhKQuniT1OJEop6SXBc&session_state=ea9bab5b-0a4a-4381-b308-12c8740785a8

My code shown below in .net core 6

.AddMicrosoftAccount(microsoftOptions =>

{

microsoftOptions.ClientId = configuration["Authentication:Microsoft:ClientId"];

microsoftOptions.ClientSecret = configuration["Authentication:Microsoft:ClientSecret"];

microsoftOptions.CallbackPath = new PathString("/Identity/Account/ExternalLogin?returnUrl=%2F&handler=Callback");

microsoftOptions.AuthorizationEndpoint = MicrosoftAccountDefaults.AuthorizationEndpoint;

microsoftOptions.TokenEndpoint = MicrosoftAccountDefaults.TokenEndpoint;

microsoftOptions.Scope.Add("https://graph.microsoft.com/user.read");

})

What are the possible reason for this. I have tried so much thing already such as reset edge setting and increasing maxQueryString to "18192"

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
1,329 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
6,934 questions
1 vote

2 answers

Sort by: Most helpful
  1. answered 2022-06-03T12:46:12.057+00:00
    haipeng tang 16 Reputation points

    unfortunately, I have already tried, after I cleared cache and cookies I restart the browser,but it still doesn't work. It might related to 404.15 query string too long. Any idea what I need to do to fix it?

    No comments

  2. answered 2022-06-03T16:53:39.977+00:00
    haipeng tang 16 Reputation points

    As further investigation, I found it works after I sign out my user profile from edge browser , and clear cookie and cache, then try again. However, user has to re-enter their email every time when they are visit the website in order to login now. Not sure if there is a way to let user sign in profile and let browser keep their cookies and everything so that user will have seamless experience for login instead of re-type their user name and password every time.