The Hub is now in read-only mode as we make improvements to the Hub experience. More information is available here.
08-30-2023 03:17 AM - edited 08-30-2023 03:20 AM
I am setting up oAuth flow in postman and all works ok until it calls the token URL at which point it fails with a 404 as per the below. If anyone has some ideas on this help would be much appreciated:
Solved! Go to Solution.
08-31-2023 03:13 AM - edited 08-31-2023 03:15 AM
Correcting this reply - I see that your are correct - investigating - thanks for the pointer
The client_id and client_secret are passed to the authorize call which returns successfully with the code that you see in the request body. The token call does not take the client_id and client_secret but rather the code that is generated from the authorize call which is returned after the user has successfully entered a userid and password based on the oAuth challenge.
08-31-2023 03:09 AM
Your client_id and client_secret are missing from the request body.
08-31-2023 03:13 AM - edited 08-31-2023 03:15 AM
Correcting this reply - I see that your are correct - investigating - thanks for the pointer
The client_id and client_secret are passed to the authorize call which returns successfully with the code that you see in the request body. The token call does not take the client_id and client_secret but rather the code that is generated from the authorize call which is returned after the user has successfully entered a userid and password based on the oAuth challenge.
08-31-2023 03:22 AM
This solved the problem - please note in postman you need to do additional advanced configuration in hte oAuth config to pass the client_id and client_scret to the token call. You can see a screen shot of that configuration below. This is interesting as this data is already passed to the authorize api call and I am not sure why the token call needs this data again. However once you configure these the oAuth calls will work correctly
Thanks Jan_Mantau for helping me through this investigation
08-31-2023 02:38 AM
Thanks Jan_Mantau - I changed to your suggested URL and here is the result. Error code has changes from a 403 to a 400 - but still not working. I have verfied that the client-id and secret are correct and this works in the playground but not in postman using the oAuth flow
08-31-2023 02:11 AM
The correct URL for getting the tokens is https://www.strava.com/api/v3/oauth/token
08-30-2023 03:19 AM - edited 08-30-2023 03:21 AM
URL verified and problem still exists. Any help appreciated
Welcome to the Community - here is your guide to help you get started!