Oauth2 setup

Is there a specific way to set up the oauth2? I’ve been trying to set it up, but every time I access it with the given info, I get an {“error”: “invalid_client”} response.

I think it might it have something to do with the redirect uri, but I’m not exactly sure.

This is the first time I have had to work with an api that requires authentication, so sorry if this is kind of a noob question.

Can you please share some more info. It’s hard to guess, giving the few you gave so far.

Have you followed the process as described here:

You have to set the “Authentication Grand Type” to “password”

From the error message, I suppose your client credentials (client_id, client_secret) could be wrong.

Ok, so I go to https://online-go.com/oauth2/applications/ to create the application form,
where Client Type is set to public, and Authorization Grant Type is set to authorization-code, and the redirect uri is https://online-go.com/oauth2/applications/. I’m not sure if that is right, or if that is what is causing this problem, I can’t find to much info on these parts in regards to OGS api.

From there I get the client_id and client_secret, which I use in the given curl commands you’ve shown. I’m using my own username and password for the user and password, and I’ve been using grant_type has just been ‘password’.

Is there anything wrong with that?

Again, thanks for the help.

Use “resource owner password-based” and leave redirect uri empty.

Sweet, tried that and it worked.