invalid_request: The required parameter client_id is missing or invalid.
It is the same client_id that is on my newly created app and it seems to be invalid. I validated in the browser that a GET request is sent to this URL i wrote up here and the 'client_id parameter is being sent.
If the above works than perhaps you want to check this URL against the part of your code that constructs the OAuth URL to see if the proper client_id is being used and if it is there is any missing information.
Yes i’ve tried the URL that my developer console generated when i inputted a valid redirect URL, pasted it in the browser and got the same error: invalid_request: The required parameter client_id is missing or invalid.
The URL generated in the console API is: Log in - Asana<STATE_PARAM>
I noticed it URL encodes the URL, i’ve tried it URL encoded and unencoded and get the same response (the endpoint is reachable). It’s like the client id was invalid from the start.
Forgot to mention that maybe the URL was not reachable so i also tried tunneling with ngrok, does not seem to be the case, still get the same invalid client_id error.
I believe this is happening because of our new app distribution feature. By default new apps created will have “Specific workspaces” selected. You will need to add your workspace or select “Any workspace” to get the OAuth flow to work.
That did it!
Since it was in the distribution tab i did not think it was of use at the moment (or related to client_id itself). Also didn’t see it on the OAuth documentation.