无法使用自建的gitlab进行第三方登录 #1935

Closed
opened 2026-02-05 02:15:07 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @campnou-44 on GitHub (Nov 11, 2020).

你好,我在使用gitlab第三方登录的时候,跳转总是跳向gitlab.com,而不是我自己的gitlab地址,请问这是哪个地方出现了错误

Originally created by @campnou-44 on GitHub (Nov 11, 2020). 你好,我在使用gitlab第三方登录的时候,跳转总是跳向gitlab.com,而不是我自己的gitlab地址,请问这是哪个地方出现了错误
Author
Owner

@ssddanbrown commented on GitHub (Nov 13, 2020):

Hi @campnou-44,
Can you confirm if you have set the GITLAB_BASE_URI option in your .env File?

@ssddanbrown commented on GitHub (Nov 13, 2020): Hi @campnou-44, Can you confirm if you have set the `GITLAB_BASE_URI` option in your `.env` File?
Author
Owner

@campnou-44 commented on GitHub (Nov 13, 2020):

是的,我十分确定,我在.env文件中设置了GITLAB_BASE_URL=http://mygitlab.com,但是总是跳转向gitlab.com这个地址

@campnou-44 commented on GitHub (Nov 13, 2020): 是的,我十分确定,我在.env文件中设置了GITLAB_BASE_URL=http://mygitlab.com,但是总是跳转向gitlab.com这个地址
Author
Owner

@campnou-44 commented on GitHub (Nov 16, 2020):

现在又出现了另外一个问题,跳转之后总是会显示Client authentication failed due to unknown client, no client authentication included, or unsupported authentication method.我的key和secret都是正确的,为什么会出现这种情况呢

@campnou-44 commented on GitHub (Nov 16, 2020): 现在又出现了另外一个问题,跳转之后总是会显示Client authentication failed due to unknown client, no client authentication included, or unsupported authentication method.我的key和secret都是正确的,为什么会出现这种情况呢
Author
Owner

@ssddanbrown commented on GitHub (Dec 10, 2020):

I've just created a self-hosted gitlab setup to ensure this authentication still works for self hosted and all works as expected.

Some things to check:

  1. If you have any php files within the bootstrap/cache/ folder you can try deleting these.
  2. Are you still being directed to gitlab.com or is that part now fixed?
  3. Are you creating an "Application" like in the screenshot below?

image

@ssddanbrown commented on GitHub (Dec 10, 2020): I've just created a self-hosted gitlab setup to ensure this authentication still works for self hosted and all works as expected. Some things to check: 1. If you have any php files within the `bootstrap/cache/` folder you can try deleting these. 2. Are you still being directed to `gitlab.com` or is that part now fixed? 3. Are you creating an "Application" like in the screenshot below? ![image](https://user-images.githubusercontent.com/8343178/101700041-44cf8480-3a74-11eb-98ba-d3d279eace56.png)
Author
Owner

@ssddanbrown commented on GitHub (Jan 26, 2021):

Since there's been no follow-up I'm going to close this. If the issue remains and is something you still require to be fixed please open a new issue, referencing this one.

@ssddanbrown commented on GitHub (Jan 26, 2021): Since there's been no follow-up I'm going to close this. If the issue remains and is something you still require to be fixed please open a new issue, referencing this one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1935