Comments (7)
I'll release a new version (0.2.0) including this fix and the crowdfunding api soon
from finary_uapi.
The web UI now does a POST https://clerk.finary.com/v1/client/sign_ins?_clerk_js_version=4.67.0 with identifier and password in the payload.
Finary apparently uses https://clerk.com. There is a python SDK here : https://pypi.org/project/clerk-sdk-python/, not sure if it's needed or if it's maintained.
A wrong password -> HTTP error 422 and a json payload with error
Right password -> HTTP 200, somehow we should get a token that we can use in the next API call.
Apparently the token is refreshed often. Not sure if we deal with it in this tool or we let it to the user. Maybe we can verify the token before each call ?
from finary_uapi.
The API doc : https://clerk.com/docs/reference/frontend-api/tag/Sign-Ins#operation/createSignIn
from finary_uapi.
Knowing all this, it's pretty simple to modify signin
to POST https://clerk.finary.com/v1/client/sign_ins
, get a token in the response and use it in the next call on /me
for example. It works.
BUT, it's less easy to refresh the token without doing a signin again with the token expired. I'm working on it. Ideally, I would like the signin to be persist more than 20 seconds.
@MadeInPierre what do you think ? What are the requirements for finalynx ?
from finary_uapi.
refreshing the token now works. Next step 2FA...
from finary_uapi.
Somehow the old login still works today without issues using finalynx. Deprecated but still active for some time maybe?
I'll look into updating finary_uapi and try your new solution. Thanks for the work!
from finary_uapi.
Version 0.2.0 is out on Pypi and supports the new signin scheme only. Main difference, there is a call to clerk.com before any call to api.finary.com
from finary_uapi.
Related Issues (20)
- Import/update real estate data? HOT 14
- 3rd party platform integration: via importer or separate project integrating finary_uapi? HOT 7
- Fetch checking account transactions HOT 5
- Fetch investment account transactions HOT 1
- Fetch credit card transactions ? HOT 7
- implement a function to call `users/me/organizations`
- Add support for Organisation
- Handling currencies while adding/updating real estates? HOT 1
- Minor finary_uapi versioning for bug fix update? HOT 2
- Add crowdlending projects HOT 17
- Remove retired endpoints
- Access to shared portfolio
- Add tests for real_estates
- saving_accounts disappear HOT 1
- Add "contructionYear" in real_estates HOT 5
- Can't signing anymore ? HOT 11
- Cannot signin : bot detected HOT 25
- START-UPS / PME / PRIVATE EQUITY HOT 1
- Add Nexo support 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 finary_uapi.