cannot log in interactively

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • parasimha
    Junior Member
    • Jan 2014
    • 4

    #1

    cannot log in interactively

    I am trying to login but keep getting the error "Method=POST&errorCode=FORBIDDEN&url=https%3A%2F%2 Fwww.betfair.com%2F"
    I have created my application key a lot longer than 3 days ago but cannot get it to work.
    Has anyone else had the same problem?
  • AlgoTrader
    Junior Member
    • Mar 2012
    • 243

    #2
    Interactive login is plain.

    Headers should be like this:
    Code:
    { 
         'Content-Type': 'application/x-www-form-urlencoded',
         'Content-Length': 127,
         'X-Application': XXXXXXXXXXXXX 
    }
    Body is following:
    Code:
    username=XXXXXX&password=XXXXXXXXX&login=true&redirectMethod=POST&product=XXXXXXXXXXXXXXXXXXX&url=https%3A%2F%2Fwww.betfair.com%2F
    The response is like this:
    Code:
    <html>
    <head>
        <title>Login</title>
    </head>
    <body onload="document.postLogin.submit()">
    <iframe src="https://secure.img-cdn.mediaplex.com/0/16789/universal.html?page_name=loggedin&amp;loggedin=1&amp;mpuid=2006479" HEIGHT="1" WIDTH="1" FRAMEBORDER="0" ></iframe>
    <form name="postLogin" action="https://www.betfair.com/" method="POST">
        <input type="hidden" name="productToken" value="8WBrPSMn5lbFDaQw9a+QFjqbyhgMv1gaCZNr2IJGoGw="/>
        <input type="hidden" name="loginStatus" value="SUCCESS"/>
    </form>
    </body>
    </html>
    Product token was edited, so was mpuid
    The answer is completely out of interest. I need just a ssoid cookie, so all the HTML is completely ignored
    Betfair Bots Made Easy

    Comment

    • AlgoTrader
      Junior Member
      • Mar 2012
      • 243

      #3
      Addon. The complete URL is

      https://identitysso.betfair.com:443/api/login
      Betfair Bots Made Easy

      Comment

      • parasimha
        Junior Member
        • Jan 2014
        • 4

        #4
        I thought it was just a matter of embedding the https://identitysso.betfair.com/view/login?product=<theProductDescriptor>&url=<theRedir ectUrl> and betfair took care of the rest, I did not realize there was more involved.

        Comment

        • Dev T
          Junior Member
          • Jan 2014
          • 2

          #5
          Can not login using Interactively

          I am using below url directly on Browser

          https://identitysso.betfair.com/view...ww.betfair.com

          When i put credentials it gives me error

          "We are experiencing some technical issues and unable to proceed
          with your login. Please try again later."

          With response url as below

          https://identitysso.betfair.com/view...ww.betfair.com

          What's the issue ?
          I am getting this from last 1 month.

          Comment

          • chriskokoko
            Junior Member
            • Jan 2014
            • 4

            #6
            Originally posted by parasimha View Post
            I thought it was just a matter of embedding the https://identitysso.betfair.com/view/login?product=<theProductDescriptor>&url=<theRedir ectUrl> and betfair took care of the rest, I did not realize there was more involved.
            That's how it reads...

            Comment

            • chriskokoko
              Junior Member
              • Jan 2014
              • 4

              #7
              One thing I did notice parashima was that if you login to Betfair through the main site and then visit that URL, it will forward you and POST the sessionID to your return URL.

              For some reason when I login through the identitysso URL itself I get the same FORBIDDEN error.

              Comment

              • parasimha
                Junior Member
                • Jan 2014
                • 4

                #8
                I was using webbrowser in python to open the link with the correct parameters and that was where I received the error also.
                I wish there were a few more code examples in the docs, it is very hard to understand how to implement some of the methods.

                Comment

                Working...
                X