最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

azure - Decap CMS OAuth Redirect Issue - Redirecting to Homepage Instead of Admin Page After GitLab Authorization - Stack Overfl

programmeradmin11浏览0评论

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!

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论