fusionauth-example-asp-netcore: Malformed client_id
-
I am trying to test the fusionauth-example-asp-netcore but have run into the following error.
{ "error" : "invalid_client", "error_description" : "client_id: d6a4b823-e832-4996-aedc-c8c678e17d5cest is not valid.", "error_reason" : "invalid_client_id" }
I downloaded Fusionauth via the docker quick start then jumped in on the example projects following the blog posts
- https://fusionauth.io/blog/2020/04/28/dot-net-command-line-client/
- https://fusionauth.io/blog/2020/05/06/securing-asp-netcore-razor-pages-app-with-oauth/
I copied the suggested values from the readme file as shown below.
I noted that the current code in the repo does not line up exactly with the code in the blog post. Have tried both and get the same result regardless. Any suggestions would be much appreciated.
-
For anyone else running into this issue. It appears that the issue was caused by the value in appsettings.Development.json some how a few extra char's got appended to the end of the ClientId string. Once that was fixed I also had to update the redirect routes to account for https. Now the app works perfectly.
-
That's great to hear, glad you figured it out!