From 6d11353f6b7632630374ca662bb8326cd0528a62 Mon Sep 17 00:00:00 2001 From: David Kocher Date: Sun, 2 Jul 2023 17:15:50 +0200 Subject: [PATCH 1/5] Add template for ownCloud with OAuth 2.0 plugin. --- ownCloud (OAuth 2).cyberduckprofile | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 ownCloud (OAuth 2).cyberduckprofile diff --git a/ownCloud (OAuth 2).cyberduckprofile b/ownCloud (OAuth 2).cyberduckprofile new file mode 100644 index 0000000..f1fef76 --- /dev/null +++ b/ownCloud (OAuth 2).cyberduckprofile @@ -0,0 +1,41 @@ + + + + + + + Protocol + owncloud + Vendor + owncloud-oauth2 + Description + ownCloud (OAuth 2) + Username Configurable + + Password Configurable + + Authorization + AuthorizationCode + OAuth Authorization Url + /index.php/apps/oauth2/authorize + OAuth Token Url + /index.php/apps/oauth2/api/v1/token + OAuth Client ID + cyberduck + OAuth Client Secret + + + From fc28dc1f922c0d51e7dc3fb6b84584ff700771b5 Mon Sep 17 00:00:00 2001 From: David Kocher Date: Fri, 11 Aug 2023 12:16:25 +0200 Subject: [PATCH 2/5] Allow manual input of OAuth client id and secret. --- ownCloud (OAuth 2).cyberduckprofile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ownCloud (OAuth 2).cyberduckprofile b/ownCloud (OAuth 2).cyberduckprofile index f1fef76..a3b957f 100644 --- a/ownCloud (OAuth 2).cyberduckprofile +++ b/ownCloud (OAuth 2).cyberduckprofile @@ -33,9 +33,5 @@ /index.php/apps/oauth2/authorize OAuth Token Url /index.php/apps/oauth2/api/v1/token - OAuth Client ID - cyberduck - OAuth Client Secret - From 045e00f71ea97ac493ceaca810283d44caf280f4 Mon Sep 17 00:00:00 2001 From: David Kocher Date: Sat, 4 Nov 2023 14:17:58 +0100 Subject: [PATCH 3/5] Explicitly mark as OAuth. --- ownCloud (OAuth 2).cyberduckprofile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ownCloud (OAuth 2).cyberduckprofile b/ownCloud (OAuth 2).cyberduckprofile index a3b957f..e34155d 100644 --- a/ownCloud (OAuth 2).cyberduckprofile +++ b/ownCloud (OAuth 2).cyberduckprofile @@ -27,6 +27,8 @@ Password Configurable + OAuth Configurable + Authorization AuthorizationCode OAuth Authorization Url From 7c298f42e8f2eaeab8104078832755dd3fecc738 Mon Sep 17 00:00:00 2001 From: David Kocher Date: Sat, 4 Nov 2023 14:18:21 +0100 Subject: [PATCH 4/5] Set redirect URL. --- ownCloud (OAuth 2).cyberduckprofile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ownCloud (OAuth 2).cyberduckprofile b/ownCloud (OAuth 2).cyberduckprofile index e34155d..8944784 100644 --- a/ownCloud (OAuth 2).cyberduckprofile +++ b/ownCloud (OAuth 2).cyberduckprofile @@ -31,6 +31,8 @@ Authorization AuthorizationCode + OAuth Redirect Url + ${oauth.handler.scheme}://oauth OAuth Authorization Url /index.php/apps/oauth2/authorize OAuth Token Url From 4136395ceeb7688d99cf70aff308880678889970 Mon Sep 17 00:00:00 2001 From: David Kocher Date: Sat, 4 Nov 2023 14:18:25 +0100 Subject: [PATCH 5/5] Set scopes. --- ownCloud (OAuth 2).cyberduckprofile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ownCloud (OAuth 2).cyberduckprofile b/ownCloud (OAuth 2).cyberduckprofile index 8944784..c7dc2f7 100644 --- a/ownCloud (OAuth 2).cyberduckprofile +++ b/ownCloud (OAuth 2).cyberduckprofile @@ -37,5 +37,11 @@ /index.php/apps/oauth2/authorize OAuth Token Url /index.php/apps/oauth2/api/v1/token + Scopes + + openid + email + offline_access +