Coder Social home page Coder Social logo

Login using Api not working about nikeapi-py HOT 28 OPEN

azerpas avatar azerpas commented on June 12, 2024
Login using Api not working

from nikeapi-py.

Comments (28)

Mobeen-Ghaffar avatar Mobeen-Ghaffar commented on June 12, 2024 1

Thank you so much for helping me out...

from nikeapi-py.

azerpas avatar azerpas commented on June 12, 2024

@Mobeen22-creator As I've said in the README.md, the login has been changed by Nike more than a year ago.

You need to reverse engineer their new log-in system powered by Akamai.

A few leads I can give you:

While a lot of bots are requests based nowadays, I'm sure you'll be able to generate better results with a good webdriver framework.

Good luck and let me know if you achieve anything!

from nikeapi-py.

Mobeen-Ghaffar avatar Mobeen-Ghaffar commented on June 12, 2024

Thanks for your response...I will check it if possible.. Also Can you guide me on other api(for checkout,add to card)?

from nikeapi-py.

azerpas avatar azerpas commented on June 12, 2024

Last time I checked they were not any changes on the checkout part. They track your sensor data through the whole process though.

from nikeapi-py.

Mobeen-Ghaffar avatar Mobeen-Ghaffar commented on June 12, 2024

Last time I checked they were not any changes on the checkout part. They track your sensor data through the whole process though.

Which Senor data?..Because I am working about 15 days ago..Checkout Api working..But now it not working..Can you please check the issue?..I will be very thankful to you.

from nikeapi-py.

azerpas avatar azerpas commented on June 12, 2024

Will try to check asap

from nikeapi-py.

Mobeen-Ghaffar avatar Mobeen-Ghaffar commented on June 12, 2024

Will try to check asap

Thank you so much

from nikeapi-py.

Mobeen-Ghaffar avatar Mobeen-Ghaffar commented on June 12, 2024

fetch("https://api.nike.com/buy/checkouts/v3/ee2c64e3-7fcb-4793-ba50-d7b23585b2ca", {
"headers": {
"accept": "application/json",
"accept-language": "en-US,en;q=0.9",
"authorization": "Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImFlYmJkMWMyLTNjNDUtNDM5NS04MGMzLWE3YTIyMmJlOTJmMHNpZyJ9.eyJ0cnVzdCI6MTAwLCJpYXQiOjE2MDcwNzI1NTAsImV4cCI6MTYwNzA3NjE1MCwiaXNzIjoib2F1dGgyYWNjIiwianRpIjoiMjE1Nzk4MWMtODY5Yi00MDI0LWFiOWYtZjI1OTBkYzdmM2E0IiwibGF0IjoxNjA3MDI2MTk4LCJhdWQiOiJjb20ubmlrZS5kaWdpdGFsIiwic3ViIjoiY29tLm5pa2UuY29tbWVyY2UuY2hlY2tvdXQud2ViIiwic2J0IjoibmlrZTphcHAiLCJzY3AiOlsiY29tbWVyY2UiXSwicHJuIjoiNWI1ZDhkMjgtMTA0Yi00OTlhLTkzOTAtNTc0NDhjNTQ1OWQxIiwicHJ0IjoibmlrZTpwbHVzIn0.0bpMoHH3d68qZz5ORXdkV2Wfj2lNCpbMA_PwCtNmL7B1a2udS2xrxLbHMvGgw8gVbtuU72JhsAKCoVJ7SFW7cO6t-EQDIrxprCW9TgH0oWsR52YmK1RGak7nkq7TIeJQMbsQu65X5jnQEw4httffSBOE8jDoMTCSrh_bEeoyIOyPngP9E4go_zaHzpGkuzCdWrK4uyLJqK1mHZ93FjdpiIwWpb9FuXNRziYgD2hxJkDkX3u5pbYVXwG3JHV-8yyDKn8NXcCYEo_7U-UhjvTNz7yFtAljk5IjyRbAke_hz3W3ck6TG2HFljd87I7hINKF9WgTWtT25ECNP1Fz5m02Dg",
"content-type": "application/json; charset=UTF-8",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-site",
"x-b3-spanname": "CiCCheckout",
"x-b3-traceid": "552bf8ff-8077-4a4c-92c5-a3db513744fc"
},
"referrer": "https://www.nike.com/",
"referrerPolicy": "strict-origin-when-cross-origin",
"body": "{"request":{"email":"[email protected]","country":"GB","currency":"GBP","locale":"en_GB","channel":"NIKECOM","clientInfo":{"deviceId":"0400nyhffR+vPCUNf94lis1ztol5d9dCHB246/Ao2WE9gwrUHAxi3JGYcv10jeKdrw/C8c6z42TBuWd9l5a0IyQqrWpPeeaRgFdrdUsprl5Sq8nl3OCiMt8Ua0+1lB53qXj42Y+Kp1yqi2Z4uIfnWQtSfAUqw4TZbScFh+Qutt/w307oXkDF/U1E7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gy2F6NwUwl9oZZ9QWrvZYKbOvwKNlhPYMK1BwMYtyRmHLfhVX5Lkhxb+bHa83CDZB6we5j4IIrWxMsSjK79lVFBrV8dHY+xR/hipLYSyumm5EJby3UH+X6gycqgnQuQ/zKgvmQv7oSpR7WjVkxQPfCtSRKbKGKbsGAaNDOuJV070+eL95s1tnZULi6NPoChhyXJCq+NTWRpAHjVbcIQaZyvlUmoq3MFE1OvpUNFyuiTcGNpO1APFETHhycLtQBpgeRH82SmjZ9xBbSvXhtHp8xh3BDHIiN3p6e"},"items":[{"id":"21d70f3a-9053-42bc-a5e3-1b76531515b0","skuId":"3e323cdc-1c35-5663-895e-f3f809edff1e","productId":"6e92eeae-6956-5eec-82b8-a1b67af28c2f","itemCosts":{"priceInfo":{"taxTotal":0,"price":84.95,"subtotal":84.95,"discount":0,"valueAddedServices":0,"total":84.95}},"quantity":1,"fulfillmentDetails":{"type":"SHIP","getBy":{"maxDate":{"dateTime":"2020-12-11T12:00:00Z","timezone":"Europe/London","precision":"DAY"}},"location":{"id":"62f64b0d-0cff-4c38-99d5-20d870bd1e42","postalAddress":{"country":"GB","address1":"asmn","postalCode":"L1 8JQ","city":"asmn"},"type":"address/shipping"}},"valueAddedServices":[],"recipient":{"firstName":"asmn","lastName":"asmn"},"contactInfo":{"phoneNumber":"923478677","email":"[email protected]"}}],"paymentToken":"d7a76359-b908-4e2e-b13f-c8808229ca8c","promotionCodes":[],"totals":{"total":84.95,"items":{"total":84.95,"details":{"price":84.95,"discount":0}},"fulfillment":{"total":0,"details":{"price":0,"discount":0}},"taxes":{"total":0,"details":{"items":{"tax":0,"type":"NOT_CALCULATED"},"fulfillment":{"tax":0,"type":"NOT_CALCULATED"},"valueAddedServices":{"tax":0,"type":"NOT_CALCULATED"}}},"valueAddedServices":{"total":0,"details":{"price":0,"discount":0}}}}}",
"method": "PUT",
"mode": "cors",
"credentials": "include"
});
This response:
{
"sec-cp-challenge": "true",
"provider": "crypto",
"branding_url_content": "%2fstatic%2fbot%2fchallenge%2findex.html",
"chlg_duration": 30
}

from nikeapi-py.

azerpas avatar azerpas commented on June 12, 2024

How are you handling your cookies?

from nikeapi-py.

Mobeen-Ghaffar avatar Mobeen-Ghaffar commented on June 12, 2024

I am get access token from chrome session storage...I am not using cookies.. Because api request for add to cart and checkout api was working without cookies..

from nikeapi-py.

azerpas avatar azerpas commented on June 12, 2024

They flag you because of that. This response is returned whenever your cookies are incorrect or absent.

from nikeapi-py.

Mobeen-Ghaffar avatar Mobeen-Ghaffar commented on June 12, 2024

It mean we need cookies..But when I copied it from chrome in postman, issue still exist..Any Solution for it?

from nikeapi-py.

Mobeen-Ghaffar avatar Mobeen-Ghaffar commented on June 12, 2024

I am working in c#

from nikeapi-py.

Mobeen-Ghaffar avatar Mobeen-Ghaffar commented on June 12, 2024

How can I generate cookies for nike?

from nikeapi-py.

Mobeen-Ghaffar avatar Mobeen-Ghaffar commented on June 12, 2024

If you can guide, I will be very helpful for me..

from nikeapi-py.

azerpas avatar azerpas commented on June 12, 2024

I gave you everything you need to learn how to generate cookies here.

from nikeapi-py.

rhkruz03 avatar rhkruz03 commented on June 12, 2024

So if the login URL isn't "https://unite.nike.com/login?"

Then what is it? I cannot find a link that goes api.nike.com for login purposes

from nikeapi-py.

Mobeen-Ghaffar avatar Mobeen-Ghaffar commented on June 12, 2024

You have to generate senor data then it will be easier.

from nikeapi-py.

rhkruz03 avatar rhkruz03 commented on June 12, 2024

from nikeapi-py.

azerpas avatar azerpas commented on June 12, 2024

Selenium will get you flagged instantly by Akamai. Decode the _bmak file and search for "selenium" or "chromedriver", hopefully you'll start to understand how that works. 😁

from nikeapi-py.

azerpas avatar azerpas commented on June 12, 2024

@Mobeen22-creator I'll be happy to hear what you found, please let me know. 😉

from nikeapi-py.

rhkruz03 avatar rhkruz03 commented on June 12, 2024

from nikeapi-py.

azerpas avatar azerpas commented on June 12, 2024

The code itself generates the sensor data. You're only half way through with that decoded result, replace all "_ac" vars by its value in the array. Good luck!

from nikeapi-py.

rhkruz03 avatar rhkruz03 commented on June 12, 2024

from nikeapi-py.

maiff avatar maiff commented on June 12, 2024

I figured out a way to bypass all of that. Which is great news. I am on the final part of checkout. I saw someone mentioned it above as well but it is not clear to me what they did but they seemed to figure it out. I am getting the following error on checkout: "sec-cp-challenge": "true", "provider": "crypto", "branding_url_content": "%2fstatic%2fbot%2fchallenge%2findex.html", "chlg_duration": 30

________________________________ From: Azerpas [email protected] Sent: Tuesday, January 26, 2021 3:40 AM To: azerpas/nikeAPI-Py [email protected] Cc: rhkruz03 [email protected]; Comment [email protected] Subject: Re: [azerpas/nikeAPI-Py] Login using Api not working (#3) The code itself generates the sensor data. You're only half way through with that decoded result, replace all "_ac" vars by its value in the array. Good luck! — You are receiving this because you commented. Reply to this email directly, view it on GitHub<#3 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASSNVW6I2GQODEWAIOLD2LDS3Z5ZFANCNFSM4UMLOYDQ.

I am working on bypassing it.and I have done something in Android app. Maybe we can collaborate.
My email is [email protected]

from nikeapi-py.

azerpas avatar azerpas commented on June 12, 2024

I've created a discord to share your work:
https://discord.gg/JqYCEAURpm

@maiff @rhkruz03 @Mobeen22-creator

from nikeapi-py.

ammar-r avatar ammar-r commented on June 12, 2024

Has anyone come around this
"sec-cp-challenge": "true",
"provider": "crypto",
"branding_url_content": "%2fstatic%2fbot%2fchallenge%2findex.html",
"chlg_duration": 30

also how senser data is generated pls elaborate.TIA

from nikeapi-py.

mvilches2508 avatar mvilches2508 commented on June 12, 2024

I HAve Succesed getting the abck cookie but when use my bot in concurrency, akamai detect to me that I use a bot, somebody know how akamai detect to me?

from nikeapi-py.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.