Nextcloud (OAuth2-Provider) + GitLab (OAuth2-Client) howto

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/

3 Likes

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.

1 Like

Thank you :slight_smile: 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',

1 Like