Prechádzať zdrojové kódy

Fixed invalid client_id error when authenticating against indieauth for mgmt panel

deadtom 1 mesiac pred
rodič
commit
14066e7909
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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)