exislow / kleinanzeigen-magic

[DO NOT USE] [Or you will get blocked! This app need re-factoring.] Speed up your eBay Kleinanzeigen workflows -- for free!
GNU Affero General Public License v3.0
44 stars 7 forks source link

Login not working #12

Closed gsorick closed 2 years ago

gsorick commented 2 years ago

I installed the windows exe version. Trying to login but it allways come an error: "Wrong email address or password". But they are correct. Any ideas?

exislow commented 2 years ago

Thank you reporting this issue. You are right. I will investigate and fix this soon. Also some some features are comming. I will keep you updated.

exislow commented 2 years ago

I have identified the issue. Since eBay Kleinanzeigen was sold to the dutch based company Markplaats, they are changing the backend logic to their backend farm.

Login procedure has changed. First a token must be acquired using:

curl --location --request GET 'https://api.ebay-kleinanzeigen.de/api/users/login' \
--header 'X-ECG-USER-AGENT: ebayk-android-app-13.4.2' \
--header 'X-ECG-USER-VERSION: 13.4.2' \
--header 'X-ECG-Authorization-User: email="EMAIL",password="BASE65(SHA1.DIGEST(PASSWORD))"' \
--header 'User-Agent: Dalvik/2.2.0' \
--header 'X-EBAYK-APP: 13a6dde3-935d-4cd8-9992-db8a8c4b6c0f1456515662229' \
--header 'Accept: application/search-v1+json' \
--header 'X-EBAYK-WENKSE-SESSION-ID: asd' \
--header 'Authorization: Basic YW5kcm9pZDpUYVI2MHBFdHRZ' \

and extract X-EBAYK-TOKEN from the response header. Now insert the extracted X-EBAYK-TOKEN as token= to any further request header instead the old password= parameter, e.g. get ads:

curl --location --request GET 'https://api.ebay-kleinanzeigen.de/api/users/EMAIL/ads.json' \
--header 'X-ECG-USER-AGENT: ebayk-android-app-13.4.2' \
--header 'X-ECG-USER-VERSION: 13.4.2' \
--header 'X-ECG-Authorization-User: email="EMAIL",token="EXTRACTED_X-EBAYK-TOKEN"' \
--header 'User-Agent: Dalvik/2.2.0' \
--header 'X-EBAYK-APP: 13a6dde3-935d-4cd8-9992-db8a8c4b6c0f1456515662229' \
--header 'Accept: application/search-v1+json' \
--header 'Authorization: Basic YW5kcm9pZDpUYVI2MHBFdHRZ' \

I will implement this into the Kleinanzeigen Magic app and built a new release.

exislow commented 2 years ago

Fixed with https://github.com/exislow/kleinanzeigen-magic/releases/tag/v0.4.4