10-28-2023 01:00 PM
I'm trying to use the ebay developer api to authenticate so I can begin testing listing items. I've been intermittently trying to authenticate with the sandbox over the past several days. I've reviewed the description and instructions here: https://developer.ebay.com/api-docs/static/oauth-scopes.html.
Unfortunately, I find myself flummoxed and perhaps a bit bamboozled.
I use a password manager that autofills usernames/passwords so I'm fairly certain none of my issues are due to typos.
My flow was as follows:
I applied for an ebay developer account and set it up once it was granted. With that username/password I can successfully log into:
Next I visited the below website and successfully generated TESTUER_username and saved its password in my password manager:
https://developer.ebay.com/DevZone/sandboxuser/
However, when I go to sign in to ebay sandbox login (link below), I cannot login with the password I have just set:
https://signin.sandbox.ebay.com/ws/eBayISAPI.dll?SignIn&ru=https%3A%2F%2Fsandbox.ebay.com%2F
I don't understand where I'm going wrong. Am I using a wrong link or something?
---
Additionally I still don't understand the association between TESTUSER and the User or Application tokens that we generate at https://developer.ebay.com.
From the oauth-scopes instructions it looks like we're supposed to send a GET request with our client_id to receive an authorization code "that contains the user's consent for the specified scopes." However, there is no reference to what TESTUSER_ we are getting consent for - the only identifying query parameter is the Client Id associated with the developer account. We then exchange the previously returned authorization code for a user access token and refresh token by sending a POST request containing amongst other things, the base64 encoded oauth credentials for our client_id. Again there is no mention of the TESTUSER_. I don't understand where the TESTUER username and password are used or why they exist at all. And I don't understand how we're supposed to get the base64 encoded oauth credentials for our Client Id to begin with... the page below didn't really help me understand anything:
https://developer.ebay.com/api-docs/static/oauth-base64-credentials.html#.
Can someone please explain how to generate and access our Client Id base64 encoded oauth credentials and what any of this has to do with the TESTUSER(s). Why are we even creating TESTUSER(s) if they never actually used by the API. Why does ebay require consent for ebay developer account Client Id to begin with? Thanks for any help and my sincere apologies if I'm missing something obvious.