FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    fusionauth-example-asp-netcore: Malformed client_id

    Scheduled Pinned Locked Moved Q&A
    dotnetdockererrorjwtcookies
    3 Posts 2 Posters 7.7k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kwatters
      last edited by

      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.

      59c2d7b7-5742-4d24-9fc2-178ca8984d96-image.png

      1fb1d962-9ff7-476f-8844-fa27a71227fd-image.png

      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.

      1 Reply Last reply
      Reply Quote 0
      • K
        kwatters
        last edited by

        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.

        1 Reply Last reply
        Reply Quote 1
        • danD
          dan
          last edited by

          That's great to hear, glad you figured it out!

          --
          FusionAuth - Identity Without Constraints
          https://fusionauth.io

          1 Reply Last reply
          Reply Quote 1
          • danD dan moved this topic from Q&A on
          • danD dan moved this topic from Frequently Asked Questions (FAQ) on

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post