OAuth 2.0 Authentication Problem Requesting Token from iNaturalist.org API

I am trying to access iNaturalist.org, which requires OAuth 2.0 authentication. It supports the Authorization Code flow, which I know Parabola also supports. I’ve created an app on iNaturalist and obtained the authorization request URL. When I try to perfrom an OAuth 2.0 authorization in Parabola, I keep getting an error after the initial authorization code is generated and the token request is placed. I get this error: “An error occurred during authorization: Access token URL returned a 500 when making a request for the access token.”

Here are the settings I have currently for the token request:

Token Request URL: https://www.inaturalist.org/oauth/token
grant_type: authorization_code
redirect_uri: https://parabola.io/api/steps/generic_api/callback
Header Key: Content-Type: application/json

Can someone help me understand what I’m doing wrong here? It seems to send the authorization request and generate the authorization code, because I can see the code appended to the redirect uri, but it seems to be broken at the point where the token is requested. Maybe I just have the URL wrong? I feel like it’s something simple that I’m overlooking.

Here are the iNaturalist.org API docs: https://www.inaturalist.org/pages/api+reference

If anyone can help me solve this puzzle, I would immensely appreciate it! Thanks for taking the time. Hope everyone is well out there.

Hey @Brother_Toadstool :wave:

Taking a look at their documentation, there are a few things to double-check to get this to work.

To start, can you double-check your Parabola account and clear your failed authorization attempts? You can do this by clicking into the “Pull from an API” step → Choose accounts → Edit → “Trash” icon.

Next, can you try sending a client_secret as a URL parameter for your token request URL?

Lastly, let’s ensure that your authorization code request is directed to /oauth/authorize and your token request is directed to /oauth/token. These are steps 1 and 2 of the authorization step configuration settings in Parabola.

Let me know if that helps!

1 Like