openbankproject / hello-obp-directlogin-python Goto Github PK
View Code? Open in Web Editor NEWAllows Apps to authenticate point to point. For higly trusted Apps and Sandbox contexts.
License: Apache License 2.0
Allows Apps to authenticate point to point. For higly trusted Apps and Sandbox contexts.
License: Apache License 2.0
Check the example body is correct etc.
For SANDBOX_TAN, SEPA, COUNTERPARTY with challenge.
python2 hello_obp.py
Login as {'dl_username': '[email protected]', 'dl_password': '3e3a3102'} to http://127.0.0.1:8080/my/logins/direct
Traceback (most recent call last):
File "hello_obp.py", line 31, in
response = requests.post(URL_LOGIN, json=loginData)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 99, in post
return request('post', url, data=data, json=json, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 49, in request
response = session.request(method=method, url=url, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 461, in request
resp = self.send(prep, *_send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 573, in send
r = adapter.send(request, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 415, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', error(111, 'Connect ion refused'))
(not counterpart)
python3 hello_obp.py
Login as {'Authorization': 'DirectLogin username="[email protected]",password="d9c663",consumer_key="5bno1qctzfsbm1hzfpclmtqx0p5rolf0mdorhoef"'} to https://apisandbox.openbankproject.com/my/logins/direct
error: could not login
text: {"code":401,"message":"OBP-20013: The account has been locked, please contact administrator !"}
--- Get current user
current user data:
{'code': 400, 'message': 'OBP-20002: These DirectLogin parameters are missing: token'}
Traceback (most recent call last):
File "hello_obp.py", line 31, in
user_id = user['user_id']
KeyError: 'user_id'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.