-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Login problems #16
Comments
Having a similar problem. I cannot find any documentation for this integration. In my nextcloud admin settings, I cannot find any settings for the GtiLab integration. |
Hi, Sorry for the lack of documentation.
If you've configure an OAuth app for a GitLab instance and your users use the OAuth flow to connect to it, they connect with their GitLab user. The only thing that is shared between Nextcloud users is the OAuth app they use to access GitLab.
Did you add "api", "read_user", "read_api" and "read_repository" permissions to the personal token? What happens when you enter the token in user connected account settings?
A token is enough to authenticate a user. No need to specify a username when providing a personal token. Actually, when using the OAuth flow, an OAuth access token is created and is also used without username.
Do you mean there is a "Connected accounts" admin settings section but it does not contain a GitLab subsection? |
This is not in the admin settings, it's in the user settings. This works. There should be some instructions in how to use the integration when enabling it, otherwise many users will instantly remove the App because they don't know how to set it up. |
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Hi @eneiluj 2.) If I instead don't enter anything in the admin settings in Nextcloud and log back in as a normal user, then the normal user DOES have the option to enter one personal access token. (But then connection doesn't work.) So the question is: Why can't the normal user enter any token in his settings if Nextcloud is connected to Gitlab via the admin settings? If he can't enter any token, how would we distinguish one user from the other? Cheers |
Let me try to explain this from the beginning. 😁 With this app, there are 2 ways to authenticate a Nextcloud user in a GitLab instance:
In Nextcloud admin settings, what you enter is not an access token, it's only an OAuth app client ID/secret that will be used to let users authenticate in a GitLab instance.
What happens here is that your "root" session in GitLab is alive so when you press "connect" in Nextcloud, you reach GitLab authentication page that lets you in because you are already authenticated. I mean, your browser is already authenticated. Don't worry, other users won't be able to login as root. They will just see the GitLab authentication page. Try to logout from your GitLab account (on the GitLab website) and press "connect" in Nextcloud user settings. About 2. Are you sure you've added correct permissions to the token you manually created? I didn't get any bug report about that not working for the moment. Maybe you did something wrong or maybe there is a problem that only shows up in your context. In this case I would need more information like Nextcloud log messages when entering the token. Any better? |
I am facing a similar problem : when using a personal token, the token is rejected as an incorrect one. Permissions are correctly set and other tokens work perfectly with gitlab and other apps such as Labcoat. Any idea ? |
Same here, neither of the two methods work for me. Here is my step-by-step: 1. When User settings are empty (via OAuth app)I do the following:
c. Press Save application button
g. Hit Tab. "GitLab admin options saved" message appears (HTTP response:
i. Go to the Dashboard (https://nextcloud.example.com/apps/dashboard/#/) 2. When Admin settings are empty (via pesonal token)I do the following:
c. Hit Tab. "Incorrect access token" message appears HTTP Request:
HTTP Response:
My environmentNextcloud: 23.0.0.1 |
I tried this as well, just like @farrad and had exactly the same issue |
i have the same issue like @farrad. when gonna have any update to get fix this bug? |
Still broken on NextCloud 24 and GitLab 14.10.2 |
i have the same issue , can you help fix it? |
It's working fine on my side with integration_gitlab v1.0.3. I tried using an OAuth app with a gitlab.com and framagit.org account. I also tried using a personal token for both these servers. Could someone check if some lines containing "GitLab API error" pop up in the Nextcloud server logs ( If this does not help, could someone create an account for me on a Gitlab instance where the issue was observed? You can send me the credentials by email (which you can find in every commit of this repo). I could look into this issue if I could reproduce it 😁. |
@eneiluj Thank you for testing this! I was finally able to resolve it. Short answer: Detailed answer:
My suggestion is to explicitly describe this Nextcloud setting in the Configuration section. |
+1 I am facing the same problem. Adding Log Says : |
Thanks, this also worked for me! |
Worked for me also (I was having the Host violates local access rules error in the log). |
At first, adding |
Hi everybody, and thanks for the work!
I'm having problems to log in. It is impossible for me to tell from the documentation or anything I can find online.
How is the workflow meant? I can go to Nextcloud admin settings and link to any one specific user on my GitLab instance. Then for any Nextcloud user, I just need to press the connect button in the respective Nextcloud user's settings, and it works. Howver, now wevery Nextcloud user uses the same GitLab account. How does this make sense? Should I add a Nextcloud account to my Gitlab instance for everybody to use for monitoring purposes?
But if so, why the follwing: If I do NOT enter any Gitlab connection in Nextcloud admin settings, then any user in their respective Nextcloud user's settings have the option to enter a personal access token. This does not work: If I create a personal access token for that user in GitLab and enter it in Nextcloud, the connection is not possible. I anyways ask myself why there is no option to specify a GutLab username. So how is this supposed to work?
Kind regards and many thanks!
riker
The text was updated successfully, but these errors were encountered: