admin管理员组

文章数量:1356582

I'm experiencing an issue with Decap CMS OAuth integration. Here's the situation:

I have successfully set up Decap CMS with GitLab authentication.

When I authorize using GitLab, I'm correctly redirected to example/admin/ (GitLab authorization page).

However, after completing the authorization, I am being redirected to the homepage (example/) instead of the /admin/#/collections/home-page page where I expect to land.

Here's what I've tried so far: Verified that my config.yml file on the staging server is correctly set up with the site_url: "example/admin/".

Checked GitLab OAuth application settings, and the redirect URI is properly set.

I’ve tested this on my local environment, where it works correctly.

I’ve cleared browser cache and cookies and retried.

I’ve checked the server logs for any related errors (none found).

backend:
name: gitlab
repo: ""
branch: "decap_cms"
auth_type:"pkce" app_id: ""
api_root: "https://gitlab/api/v4"
base_url: "https://gitlab" use_graphql: false
use_proxy_url: false site_url: "/" authentication_error_callback: handleAuthError

Problem: After authorizing with GitLab, I am redirected to the homepage of the website (example/) instead of being taken to the admin page for content management (/admin/#/collections/home-page).

Any help or ideas on how I can resolve this issue?

Thanks!

本文标签: