I wrote a few lines about how I combined Nextcloud and GitLab. Iād value any input or corrections you might have:
https://www.claudiuscoenen.de/2018/10/oauth2-with-nextcloud-provider-and-gitlab-client/
Hi,
The callback URL has to be as described in your guide - the Gitlab documentation confused me for a while, suggesting .../users/auth/oauth2_generic/callback
Anyways, thanks for the article - it works in 2021 with the most recent Versions of NextCloud and GitLab.
Thank you
Iām glad this is useful!
Great work! Works still with newest GitLab 15.7.1 CE and Nextcloud 24.0.8. I had just one easy to solve problem:
I had to add /index.php into the authorize_url and the token_url to get it work.
"authorize_url": '/index.php/apps/oauth2/authorize',
"token_url": '/index.php/apps/oauth2/api/v1/token',