Coder Social home page Coder Social logo

Can't login about itc-api-docs HOT 11 CLOSED

fastlane avatar fastlane commented on May 5, 2024
Can't login

from itc-api-docs.

Comments (11)

omidahourai avatar omidahourai commented on May 5, 2024

Figured it out (via view-source) - Your request address is outdated. Use /WebObjects/iTunesConnect.woa/wo/7.0.1.13.3.15.2.1.1.3.1.1

from itc-api-docs.

KrauseFx avatar KrauseFx commented on May 5, 2024

Uh, that's not good. I'll have to find a way to fetch the latest URL for authentication. Do you have an idea how to solve this?

from itc-api-docs.

omidahourai avatar omidahourai commented on May 5, 2024

No clue, and probably apple doesn't want you to know how ;-) But maybe just add a note in the docs to check the iTunesConnect login page source for the latest url.

from itc-api-docs.

keithblaha avatar keithblaha commented on May 5, 2024

I'm trying to figure out a way to deal with this right now too... I think for you, a possible solution is web scraping + github's api to automatically update the docs with any changes to the endpoint

from itc-api-docs.

KrauseFx avatar KrauseFx commented on May 5, 2024

@keithblaha I like the idea of automatically updating the login URL on GitHub. Web Scraping of this URL is super simple and probably just one line of Ruby.

I'll temporary update the URL for now and will work on a better long term solution.

from itc-api-docs.

kovpas avatar kovpas commented on May 5, 2024

The login url, which you use to send POST requests to is (I assume) different for every session and should be different for every user. In order to get this address, you need to parse server page form, indeed: https://github.com/kovpas/itc.cli/blob/archive/itc/core/server.py#L72

from itc-api-docs.

KrauseFx avatar KrauseFx commented on May 5, 2024

@kovpas It shouldn't be different for every user. I used the same login URL for about a week and it working fine.

from itc-api-docs.

kovpas avatar kovpas commented on May 5, 2024

@KrauseFx might be a session with a certain expiration period then, so URL is invalid after this period passed.

from itc-api-docs.

kommen avatar kommen commented on May 5, 2024

@KrauseFx Just a shot in the blue: Afaik the cookies are cross service, so you might be able to authenticate with for example https://idmsa.apple.com/IDMSWebAuth/authenticate and use the cookie from there.

I didn't try this though.

from itc-api-docs.

KrauseFx avatar KrauseFx commented on May 5, 2024

@kommen That's a good idea, I actually have the code from the spaceship already:

URL_AUTHENTICATE = "https://idmsa.apple.com/IDMSWebAuth/authenticate" # Mixed - Dev Portal
     login_request = Excon.post(URL_AUTHENTICATE, 
        body: URI.encode_www_form(
          appleId: user,
          accountPassword: password,
          appIdKey: api_key
        ),
        headers: { 
          "Content-Type" => "application/x-www-form-urlencoded" 
        }
      )

The problem here is the api_key. It is static and built in into Xcode, but we're probably not allowed to use it. I found a nice workaround for spaceship though, which involves some Ruby scripting.

from itc-api-docs.

KrauseFx avatar KrauseFx commented on May 5, 2024

I added new information about the login URL: https://github.com/fastlane/itc-api-docs#login

Not 100% perfect yet, but you now have a very simple script that prints out the current URL 👍

from itc-api-docs.

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.