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.
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’.