浏览代码

Fixed invalid client_id error when authenticating against indieauth for mgmt panel

deadtom 1 月之前
父节点
当前提交
14066e7909
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      ownchatbot/web_panels.py

+ 1 - 1
ownchatbot/web_panels.py

@@ -38,7 +38,7 @@ def login():  # Verify the streamer using indieauth, to their owncast instance
     global state_value
     state_value = code_verifier
     owncast_url = current_app.config['OWNCAST_URL']
-    client_id = current_app.config['ACCESS_ID']
+    client_id = current_app.config['OCB_URL']
     redirect_url = f'{owncast_url}/api/auth/provider/indieauth?client_id={client_id}&redirect_uri={url_for("web_panels.auth_response", _external=True)}&response_type=code&code_challenge_method=S256&code_challenge={code_challenge}&state={code_verifier}'
     return redirect(redirect_url)