GithubHelp home page GithubHelp logo

Comments (13)

yogeshpathade avatar yogeshpathade commented on August 24, 2024 1

@d11wtq Thanks. I have generated a new token and used the latest generated token in the request. I can confirm that the old tokens are not used as explained on the docs that they will be revoked once new token is issued.

Are the requests monitored for the whitelisted IP Addresses? Does the request need to pass any additional headers etc?

from api.

yogeshpathade avatar yogeshpathade commented on August 24, 2024 1

@d11wtq No more an issue. I can get the response now. Not sure what was wrong.

Whats the token timeout?

{
    "meta": {
        "id": "9bec95e8-0ca8-42f2-9e10-585c2c84c0f1",
        "statusEmoji": "⚡️"
    }
}

from api.

d11wtq avatar d11wtq commented on August 24, 2024 1

We've just deployed a fix for this. Essentially now you can only have the QR code page open in one window at a time. Opening a new window invalidates the others.

from api.

d11wtq avatar d11wtq commented on August 24, 2024

@yogeshpathade thanks for reaching out. The token should have something after the up:yeah: part. Without posting the actual token here, can you confirm you are sending the full token correctly?

from api.

yogeshpathade avatar yogeshpathade commented on August 24, 2024

@d11wtq I can confirm I am passing through the actual token.
Removed it in the issue description for Security reason.

curl --location --request GET 'https://api.up.com.au/api/v1/util/ping' \ --header 'Authorization: Bearer up:yeah:oh<REMOVED'

from api.

d11wtq avatar d11wtq commented on August 24, 2024

Have you only generated one token? Currently generating a token will revoke any existing tokens.

from api.

d11wtq avatar d11wtq commented on August 24, 2024

Is it possible you have some additional white space before the token? Not seeing anything obvious on our end.

from api.

scottgbailey avatar scottgbailey commented on August 24, 2024

could you try wrap the --header part with "" instead of '' ?
--header "Authorization: Bearer up:yeah:oh<REMOVED"

from api.

yogeshpathade avatar yogeshpathade commented on August 24, 2024

Closing this issue. I could access all of my accounts and transactions.

Thanks for your help @d11wtq

from api.

d11wtq avatar d11wtq commented on August 24, 2024

Fantastic!

Whats the token timeout?

While we're in beta and access tokens are for personal use only, there isn't one. This will change when we start supporting third parties accessing your data.

from api.

yogeshpathade avatar yogeshpathade commented on August 24, 2024

Thanks, @d11wtq For your prompt response.

I found the problem with the Unauthorized 401 responses happening yesterday. It's probably a bug.
I had the get access token page open in multiple tabs of the browser https://api.up.com.au/getting_started and when one of them I scan a QR Code to confirm the IP address request from the Up App both (or all) the open pages fires the request

GET https://api.up.com.au/auth_granted 

to fetch the tokens which in the race condition one of them revokes the previously granted token. Assuming the Open tab page which is used to scan the QR Code has the latest token to copy makes the API request failed with 401 since the tokens are already overridden and revoked by some other pages in the background.
I should probably raise this as a bug?

from api.

d11wtq avatar d11wtq commented on August 24, 2024

Ohhhh, good find. That definitely sounds like a bug. @plasticine fyi.

from api.

yogeshpathade avatar yogeshpathade commented on August 24, 2024

Looks good. Thanks @d11wtq

from api.

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.