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 %}