From 9a8129ae4487b2a0bc662899413d2927bb372aba Mon Sep 17 00:00:00 2001 From: Pascal Gollor Date: Fri, 14 Feb 2020 09:57:15 +0100 Subject: [PATCH 1/2] update NextCloud oauth link In my Nextcloud 18 it only works with `https://cloud.example.com/apps/sociallogin/custom_oauth2/Mailcow` instead of `https://cloud.example.com/index.php/apps/sociallogin/custom_oauth2/Mailcow`. --- docs/third_party-nextcloud.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/third_party-nextcloud.md b/docs/third_party-nextcloud.md index 8266fadec..d86484105 100644 --- a/docs/third_party-nextcloud.md +++ b/docs/third_party-nextcloud.md @@ -4,7 +4,7 @@ In the following, we will only assume that you have already set up NextCloud at To set up authentication via mailcow, you can use OAuth2 as described below. 1. Log into mailcow as administrator. -2. Scroll down to _OAuth2 Apps_ and click the _Add_ button. Specify the redirect URI as `https://cloud.example.com/index.php/apps/sociallogin/custom_oauth2/Mailcow` and click _Add_. Save the client ID and secret for later. +2. Scroll down to _OAuth2 Apps_ and click the _Add_ button. Specify the redirect URI as `https://cloud.example.com/index.php/apps/sociallogin/custom_oauth2/Mailcow` (for NextCloud 18 without `index.php`) and click _Add_. Save the client ID and secret for later. 3. Log into NextCloud as administrator. 4. Click the button in the top right corner and select _Apps_. Click the search button in the toolbar, search for the [_Social Login_](https://apps.nextcloud.com/apps/sociallogin) plugin and click _Download and enable_ next to it. 5. Click the button in the top right corner and select _Settings_. Scroll down to the _Administration_ section on the left and click _Social login_. From 42a600cd34c38082a78e952ef6e047fe8c82bd7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Peters?= Date: Wed, 25 Mar 2020 07:36:34 +0100 Subject: [PATCH 2/2] Update third_party-nextcloud.md --- docs/third_party-nextcloud.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/third_party-nextcloud.md b/docs/third_party-nextcloud.md index d86484105..4922cf4ed 100644 --- a/docs/third_party-nextcloud.md +++ b/docs/third_party-nextcloud.md @@ -5,6 +5,10 @@ To set up authentication via mailcow, you can use OAuth2 as described below. 1. Log into mailcow as administrator. 2. Scroll down to _OAuth2 Apps_ and click the _Add_ button. Specify the redirect URI as `https://cloud.example.com/index.php/apps/sociallogin/custom_oauth2/Mailcow` (for NextCloud 18 without `index.php`) and click _Add_. Save the client ID and secret for later. + + !!! info + Some installations, including those setup using the helper script of mailcow, need to remove index.php/ from the URL to get a successful redirect: `https://cloud.example.com/apps/sociallogin/custom_oauth2/Mailcow` + 3. Log into NextCloud as administrator. 4. Click the button in the top right corner and select _Apps_. Click the search button in the toolbar, search for the [_Social Login_](https://apps.nextcloud.com/apps/sociallogin) plugin and click _Download and enable_ next to it. 5. Click the button in the top right corner and select _Settings_. Scroll down to the _Administration_ section on the left and click _Social login_.