Announcement

Collapse
No announcement yet.

cannot log in interactively

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #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
    https://github.com/AlgoTrader/betfair

    Comment


    • #3
      Addon. The complete URL is

      Betfair Bots Made Easy
      https://github.com/AlgoTrader/betfair

      Comment


      • #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


        • #5
          Can not login using Interactively

          I am using below url directly on Browser



          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



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

          Comment


          • #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


            • #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


              • #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