Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to login with self-hosted gitlab #34

Open
me-cs opened this issue Mar 11, 2024 · 4 comments
Open

Unable to login with self-hosted gitlab #34

me-cs opened this issue Mar 11, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@me-cs
Copy link

me-cs commented Mar 11, 2024

I'm trying to deploy self-hosted codecov and use it in conjunction with self-hosted gitlab
I configured the gitlab application.
as shown below
image
After deploying codecov using docker compose, I was successfully prompted to login with gitlab ce
image
And then this error appeared
image
The difference I found was that I configured the callback address to be
http://ip:port/login/gitlab_enterprise
but it changed to
http://ip:port/login/gle
image
When I change it to gitlab_enterprise and type it directly into the browser, I can bring up the gitlab authentication window, but it still fails after authentication
image

Any help is appreciated!

@me-cs me-cs changed the title Unable to log in with self-hosted gitlab Unable to login with self-hosted gitlab Mar 11, 2024
@ChrisZhangJin
Copy link

we encounted the same issue, and didn't find any useful information.

@fmdoe
Copy link

fmdoe commented Apr 2, 2024

Does it work with https://codecov-selfhosted-hostname.com/login/gle as redirect URI in Gitlab?

gle

(replace gitlab_enterprise with gle)

@ChrisZhangJin
Copy link

Does it work with https://codecov-selfhosted-hostname.com/login/gle as redirect URI in Gitlab?

gle

(replace gitlab_enterprise with gle)

no, actually, i'd tried both way of login/gle and login/gitlab_enterprise. Neither works.

From the worker's log, it showed 401 which means the authenication is failed i guess when it jumped back from gitlab to codecov.

i'm using the Community version of gitlab, so not sure if it is kind of incompatiblity.

@hverlin
Copy link

hverlin commented Apr 4, 2024

Seeing the same issue. Even after fixing the redirect URL and using gle, it does not work.
http://localhost:8080/internal/user fails with

{"detail":"Authentication credentials were not provided."}

@thomasrockhu-codecov thomasrockhu-codecov added the bug Something isn't working label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants