Can't connect a client / get access token


#1

Hi,
I just set up a new Squidex instance (v 3.3.0) with docker.
I can log in, create an app, create schema and contents and clients. Everything works so far.

Now when I go to “Clients” and hit the “connect” button I see the explanations how to connect a client. Looks quite simple. But I can’t get it to work!

No matter if I try it with curl, Postman or Insomnia. With curl nothing happened at all. Both Postman and Insomnia return a “Bad Request” with the body: {“error”: “invalid_client”}

Ok, but if I take the Test Token that is also shown there and use it in my api requests, it works perfectly fine. I can access my contents of the api through Postman or Insomnia.

Here is how my request looked like in Postman:

Any idea what I’m doing wrong or what could be the problem? Help would be very appreciated. Thanks!
Johannes


#2

Are you sure that there is no whitespace or so?

Can you use the Connect button in the UI and check if it works?
Can you check the logs?


#3

Thanks for the quick response!

Ok, I now got it working with curl. The problem was the following:
At the end there is a single quote missing to close the string of -d! Here’s a screenshot where you can see it:

Maybe this could be fixed.

And in Postman and Insomnia it was my fault, because I passed “grant_type” and the rest as url parameters instead of creating a “Form URL Encoded” body and add them there…


#4

You mean after squidex-api? Will fix that.