Comments (4)
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.
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.
Hey, can you try running it with node v16?
from tdameritradejs.
Yes, that worked. Thanks for your help & creating this project!
from tdameritradejs.
Related Issues (13)
- Load Valid Tokens from file HOT 1
- Doucmentation HOT 1
- FYI See this repo with clean TD Ameritrade API schemas. HOT 1
- WARNING This library is still in its early stages of development and thus far from ready for production use. HOT 2
- User guide HOT 1
- Returned data is the HTTP response vs the body HOT 4
- refreshAccessToken gets new refreshToken HOT 4
- Scripts cannot run when installed as a node module HOT 4
- How to get Futures quotes faster than 1 minue HOT 4
- Self signed cert generation update HOT 3
- Add support for CHART_HISTORY_FUTURES HOT 5
- Add auth methods HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tdameritradejs.