Code Monkey home page Code Monkey logo

Comments (14)

ususus1987 avatar ususus1987 commented on July 29, 2024

to solve this problem temporarily, open up Microsoft Edge and go to Amazon.com then sign in using your Amazon Flex Account.
Then try your account.

from amazonflexunlimited.

Uajer avatar Uajer commented on July 29, 2024

I have done like this.
I used account which I have in Amazon.com
But still I noticed that It is unable to authenticate
please fix this problem

from amazonflexunlimited.

ususus1987 avatar ususus1987 commented on July 29, 2024

try this way:
make sure your Phone (Amazon Flex App) and the computer are connected to the same home WiFi then, Log out & Sign In again on Amazon Flex App in your phone then, run the script on your computer. It worked with me

Im not the developer of this App, the developer is still working on it and he is done a great job with his project.
try to visit this project from time to time to see if he did any changes.

Thanks....

from amazonflexunlimited.

mdesilva avatar mdesilva commented on July 29, 2024

I'm still trying to replicate this issue in order to provide a fix for it. Once I do I will update this thread.

from amazonflexunlimited.

Uajer avatar Uajer commented on July 29, 2024

from amazonflexunlimited.

sneezyxl avatar sneezyxl commented on July 29, 2024

@santiagoyamamoto I can help you get setup with the program if you want to.

Just going to ask the basic first.

  1. Were you able to open the config.json file to add your username and password into the json format
    "username": "[email protected]",
    "password": "Enter your password",

  2. Do you happen to have the application download mitmproxy
    I used this app to gather my device serial and gather the FRC.
    (im using an iphone )

  • Once you download mitmproxy open up terminal
  • type "ipconfig" and write down your ipv4 address
  • type "mitmproxy" it will show flow at the top of terminal that how you will now its running.
  • on the iphone navigate to Setting>Wifi>tap the i for more information about the wifi you're connected. scroll down to find http proxy tap on Configure proxy>manual>Server will be your ipv4 address > port will be 8080 then hit save on the top right.

3.navigate to amazon flex app sign out and sign back in

-you will see on the terminal under flow amazon get request
-Look for the POST /auth/register scroll down and gather the serial and the frc
-after you had copy the information you will have to enter the info into the flexunlimited.py file

i hope it helps if not reach out. This is currently how im able to get logged in.

from amazonflexunlimited.

Uajer avatar Uajer commented on July 29, 2024

I did all my work in my computer.
you mean I can login when I use mitmproxy?.
If so , could you explain about it in more detail.
If it is possible please give me video attachment about how to do it.
Thank you for your kind.

from amazonflexunlimited.

mdesilva avatar mdesilva commented on July 29, 2024

Please pull the latest code and try again. I have updated the app to account for the two step verification process that needs to be done when logging in. Let me know how it goes.

from amazonflexunlimited.

mike503 avatar mike503 commented on July 29, 2024

Did not work for me as of the latest as of right now. Even tried doing it on same connection as my phone in case it has some sort of IP checking or persistence, any of that. no matter what, can't get it to auth.

command line (with personal info changed)

$ python app.py
Amazon Flex Unlimited v2

Unable to authenticate to Amazon Flex.

Please try completing the two step verification challenge at https://www.amazon.com/ap/challenge?openid.return_to=https://www.amazon.com/ap/maplanding&openid.oa2.code_challenge_method=XXX&openid.assoc_handle=amzn_device_ios_us&pageId=amzn_device_ios_light&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:1234&language=en_US&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.code_challenge=sdfsdfasdfas-423423423423&openid.oa2.scope=device_auth_access&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.response_type=code&arb=uuid-1234-4567-4234 . Then try again.

If you already completed the two step verification, please check your Amazon Flex username and password in the config file and try again.

I load the URL in my browser, login and it sends me to:

image

from amazonflexunlimited.

mike503 avatar mike503 commented on July 29, 2024

when using the curl example in lib/auth.sh (replacing my own information) I get this response. no idea if it's an outdated method or not.

loading that URI even with a fake user agent returns a 404. (changed the uuids for privacy)

{
  "response": {
    "challenge": {
      "challenge_reason": "HandleOnWebView",
      "uri": "https://www.amazon.com/ap/challenge?arb=432423-f8ba-9283-f9d3-819287d73f"
    }
  },
  "request_id": "298d18bc8-aaaa-bbbb-cccc-ddddddddd"
}

from amazonflexunlimited.

mdesilva avatar mdesilva commented on July 29, 2024

Did not work for me as of the latest as of right now. Even tried doing it on same connection as my phone in case it has some sort of IP checking or persistence, any of that. no matter what, can't get it to auth.

command line (with personal info changed)

$ python app.py Amazon Flex Unlimited v2

Unable to authenticate to Amazon Flex.

Please try completing the two step verification challenge at https://www.amazon.com/ap/challenge?openid.return_to=https://www.amazon.com/ap/maplanding&openid.oa2.code_challenge_method=XXX&openid.assoc_handle=amzn_device_ios_us&pageId=amzn_device_ios_light&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:1234&language=en_US&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.code_challenge=sdfsdfasdfas-423423423423&openid.oa2.scope=device_auth_access&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.response_type=code&arb=uuid-1234-4567-4234 . Then try again.

If you already completed the two step verification, please check your Amazon Flex username and password in the config file and try again.

I load the URL in my browser, login and it sends me to:

image

You are supposed to get the "Looking for something?" page after you login. Once you get that page, re-run app.py and it should work.

from amazonflexunlimited.

mike503 avatar mike503 commented on July 29, 2024

You are supposed to get the "Looking for something?" page after you login. Once you get that page, re-run app.py and it should work.

I could have sworn I tried that (and I did) - I just tried it again, no dice.

Should this be using Safari on the phone, Chrome on the desktop, indifferent? I've tried the links on both. All I get is another link to try again, looks like the "arb" param changes, at least.

from amazonflexunlimited.

mdesilva avatar mdesilva commented on July 29, 2024

The browser you use shouldn't make a difference. You might have to try several times before the login succeeds. Logging out and logging in on your device might also help. In the meantime I'll work on a more foolproof way of logging in.

from amazonflexunlimited.

mike503 avatar mike503 commented on July 29, 2024

FWIW, I've logged out, in, tried to reauth over and over, it never wound up working

from amazonflexunlimited.

Related Issues (20)

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.