Examples do not login to Windows

Hi
I’ve tried a couple of the sample applications. The one I particularly wanted to get to work is the acme-aspnet-razor sample. Logging into my Auth0 domain is fine and so is logging into GitHub. However, when I try to login to Windows I get the following error:

OpenIdConnectProtocolException: Message contains error: ‘invalid_request’, error_description: ‘OAuth2Strategy requires a clientID option’, error_uri: ‘error_uri is null’.

I’ve tried all the usual places to get an answer. I also tried an Auth0 ASP Net MVC example and got exactly the same message.
Any ideas are more than welcome.

Thanks in advance
Richard

Hi @richard7,

Welcome to the Auth0 Community!

The error ‘OAuth2Strategy requires a clientID option’ suggests that the Social or Enterprise Connection you’ve set up for “Windows” login in your Auth0 Dashboard is missing a required setting, most likely the Client ID from the external identity provider (like Azure).

You can likely resolve this by ensuring the connection’s settings are complete in your Auth0 Dashboard.

  1. Navigate to your Auth0 Dashboard.
  2. Select the specific connection you configured.
  3. On the settings page for that connection, carefully review all the fields. You will almost certainly find that the Client ID field is empty.
  4. You will need to get this value from your identity provider (for example, from the “App Registration” in your Azure portal) and paste it into this field. If you are using Azure AD, you will also need the Client Secret.
  5. Click Save Changes at the bottom.

After saving the correct settings, try running the sample application again.

If you have any other questions, feel free to reach out.

Have a good one,
Vlad

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.