--- a/oauth/client.py Thu Apr 21 16:26:30 2016 +0200
+++ b/oauth/client.py Mon Apr 11 16:47:09 2016 +0200
@@ -60,13 +60,14 @@
if 'remote_oauth_clientcredentials' in session:
resp = requests.post(
app.config["CREATE_RENKAN_ENDPOINT"]+"?act_as="+str(session.get("me_id", "anonymous")),
- {"title": "RENKAN_FROM_GED"},
+ json.dumps({"title": "RENKAN_FROM_GED"}),
headers={
'Authorization': 'Bearer %s' % session['remote_oauth_clientcredentials'][0],
- 'renkan-act-as': session.get("me_id", "anonymous")
+ 'renkan-act-as': session.get("me_id", "anonymous"),
+ 'content-type': "application/json"
}
)
- print(resp.text)
+ print("%r : %r" %(resp.status_code, json.loads(resp.text)))
return redirect('/')
@app.route('/authorized')