tda-api: authentication failure

Hey

I’ve created an app on TD Ameritrade with a callback URL https://127.0.0.1:8080 (as suggested on developer pages). I am making sure I am sending the correct API_KEY and redirect_url to the authentication flow

with webdriver.Chrome() as driver:
    c = auth.client_from_login_flow(driver, apikey, redirect_uri, token_path)

However, I am getting the error page a third party application you document.

Logging shows the port on the localhost being sent with the GET is different however

2020-06-08 16:48:47,541 DEBUG    GET http://127.0.0.1:57214/session/<SESSION>/url {}
2020-06-08 16:48:47,544 DEBUG    http://127.0.0.1:57214 "GET /session/<SESSION>/url HTTP/1.1" 200 189
2020-06-08 16:48:47,544 DEBUG    Finished Request

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 21 (13 by maintainers)

Most upvoted comments

Discussed this offline, it turns out the client_from_login_flow is not adding the @AMER.OAUTHAP suffix. I’ll fix this soon.