From d104290675149220f68fba35984f70b26a04d6d3 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 28 Apr 2019 11:10:01 +0200 Subject: [PATCH] IndieAuth tweaks --- app.py | 4 ++-- templates/indieauth_flow.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index 1a1f12f..0869668 100644 --- a/app.py +++ b/app.py @@ -2212,7 +2212,7 @@ def indieauth_endpoint(): session["logged_in"] = True me = auth["me"] state = auth["state"] - scope = " ".join(auth["scope"]) + scope = auth["scope"].split() print("STATE", state) return build_auth_resp({"me": me, "state": state, "scope": scope}) @@ -2235,7 +2235,7 @@ def token_endpoint(): ) if not auth: abort(403) - scope = " ".join(auth["scope"]) + scope = auth["scope"].split() payload = dict( me=me, client_id=client_id, scope=scope, ts=datetime.now().timestamp() ) diff --git a/templates/indieauth_flow.html b/templates/indieauth_flow.html index c0ce2c9..7a9e313 100644 --- a/templates/indieauth_flow.html +++ b/templates/indieauth_flow.html @@ -14,8 +14,8 @@ {% endif %}
-{{ client.name }} -

wants you to login

+{{ client.name }} +

wants you to login as {{ me }}