-
Hi folks, Not sure if this is a bug or user error, but I have this in my backend:
name: gitea
repo: mattcen/hugo-cms-test # Path to your Gitea repository
app_id: REDACTED # The Client ID provided by Gitea
api_root: https://codeberg.org/api/v1 # API URL of your Gitea instance
base_url: https://codeberg.org # Root URL of your Gitea instance
# optional, defaults to master
branch: main And am using the latest beta release in my <!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex" />
<title>Content Manager</title>
</head>
<body>
<!-- Include the script that builds the page and powers Decap CMS -->
<script src="https://unpkg.com/[email protected]/dist/decap-cms.js"></script>
</body>
</html> But when I try to authenticate using Gitea/Forgejo, after the redirect back from https://codeberg.org/login/oauth/authorize, Decap tries an OPTIONS request to https://codeberg.org/login/oauth/access_token, and gets back a 405 from Forgejo, which seems to be a CORS issue, but even when trying the same with my own Forgejo instance and playing around with its CORS settings, I can't get it to work. Anybody able to enlighten me? (It does look like the Gitea backend is quite new so perhaps it's just not quite ready for prime time?) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
@mattcen this is likely not an issue with Decap as myself and others have been exhaustively debugging Decap CMS on Forgejo (which is what the Codeberg instance runs on), for almost two months. As per my last comment in that thread, I was able to get Decap CMS working with |
Beta Was this translation helpful? Give feedback.
-
@basebuilder Thanks for following up! I'll do some reading into that referenced issue! |
Beta Was this translation helpful? Give feedback.
-
I just resolved this issue. There were two problems:
Now I've got DecapCMS authenticating and showing me my repo, and I just need to tweak its config so it knows my website structure. Thanks for your help! |
Beta Was this translation helpful? Give feedback.
I just resolved this issue. There were two problems:
Now I've got DecapCMS authenticating and showing me my repo, and I just need to tweak its config so it knows my website structure. Thanks for your help!