There was an error trying to log you in: ‘Invalid response Content-Type: text/html, from URL: https:login.microsoftonline.com/.well-known/openid-configuration’


I was implementing google authenticator feature on my Blazor web assembly POC demo. I was getting this exception

There was an error trying to log you in: ‘Invalid response Content-Type: text/html, from URL: https:login.microsoftonline.com/.well-known/openid-configuration’

My program.cs file was like

My appsettings.json file was like this

Workaround fix for this

>> change any name expect Local. You can give google or any other name. I hope it will help other developer.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.