From a54f95baf55cd5c670ac5fff2a5e1944bb68f7e3 Mon Sep 17 00:00:00 2001 From: beardedtek Date: Tue, 29 Jul 2025 14:00:00 -0800 Subject: [PATCH] Add PKCE support in config.yml and enhance DecapCMS initialization in index.html with additional load checks and debugging logs. --- static/admin/config.yml | 3 ++- static/admin/index.html | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/static/admin/config.yml b/static/admin/config.yml index 2db84d4..c4e4ee8 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -6,8 +6,9 @@ backend: base_url: https://git.beardedtek.com api_root: https://git.beardedtek.com/api/v1 auth_endpoint: https://git.beardedtek.com/login/oauth/authorize - # Add explicit token endpoint for better compatibility token_endpoint: https://git.beardedtek.com/login/oauth/access_token + # Add debugging and ensure PKCE is properly configured + auth_flow: pkce commit_messages: create: 'content: create {{collection}} "{{slug}}"' update: 'content: update {{collection}} "{{slug}}"' diff --git a/static/admin/index.html b/static/admin/index.html index f1b5ed2..9b26cee 100644 --- a/static/admin/index.html +++ b/static/admin/index.html @@ -12,12 +12,16 @@