Coder Social home page Coder Social logo

Comments (4)

knicola avatar knicola commented on August 20, 2024

Hello,

HTTPS is required for OAuth2 authentication. There's instructions in the readme on how to generate a self signed SSL cert. Also, both the local config and the TD App in your TD dev account should point to the same address. Hope this helps!

from tdameritradejs.

bkozlik avatar bkozlik commented on August 20, 2024

Hi @knicola , thanks for the reply.
Ok I took another crack at this and got the SSL certificate generated, installed into the Windows certificate store and accepted by the Microsoft Edge browser.
Now, the app takes me through the login/grant flow and then gets the code returned to https://localhost:8443/?code=.... but then displays a "Failed to get access token" message, while the node.js app crashes with the following error:

node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^

Error: write EPROTO B0510000:error:0A000152:SSL routines:final_renegotiate:unsafe legacy renegotiation disabled:c:\ws\deps\openssl\openssl\ssl\statem\extensions.c:908:

    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:98:16)

Node.js v17.1.0

Is this "SSL unsafe legacy renegotiation disabled" error something I can resolve by generating the certificate with a different openssl command?

Thanks!

from tdameritradejs.

knicola avatar knicola commented on August 20, 2024

Hey, can you try running it with node v16?

from tdameritradejs.

bkozlik avatar bkozlik commented on August 20, 2024

Yes, that worked. Thanks for your help & creating this project!

from tdameritradejs.

Related Issues (13)

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.