auth0-samples / auth0-WinFormsWPF-oidc-samples

Auth0 OIDC Client with Windows Forms / WPF applications
MIT License
22 stars 26 forks source link

Invalid request when running sample Windows Form #24

Closed idonaldson closed 3 years ago

idonaldson commented 3 years ago

Issue Report

If you are reporting a bug, please fill the sections below (if they are applicable), otherwise feel free to delete those that don't apply. Thank you! 🙏🏼

Description

When running the sample WindowsFormsSample application by plugging in my Domain and ClientID and selecting any of the connection options, I get back an "invalid_request" response. No other information is provided and I can't track down what the problem is. I've re-created my Auth0 native application through their dashboard, added the allowed callback URL, and triple checked the domain and client id.

Expected behaviour

Login window should display.

Actual behaviour

Error is thrown "invalid_request."

Steps to reproduce the problem

Run the WindowsFormsSample app in this repository.

idonaldson commented 3 years ago

I was able to resolve this by opening the app in Rider and debugging the compiled code to get a better error message "no connections enabled for the client." Bingo, found the error and now it works.