Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example config for 3rd party WebDAV client Cyberduck (and Mountain Duck) #7649

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

michaelstingl
Copy link
Contributor

@michaelstingl michaelstingl commented Nov 2, 2023

Description

Cyberduck & Mountain Duck now support WebDAV with OAuth 2.0 / OpenID Connect. Infinite Scale instances can be accessed using Connection Profiles

Connection Profile:

Related Issue

Motivation and Context

This change would make it easy to understand connections with modern 3rd party WebDAV clients.

How Has This Been Tested?

  1. Import cyberduck.json to https://keycloak.ocis-keycloak.latest.owncloud.works/admin/master/console/#/oCIS/clients/import-client
  2. Create ocis.ocis-keycloak.latest.owncloud.works.cyberduckprofile and open with Cyberduck Version 8.7.1 (40750)

Example Profile:

ocis.ocis-keycloak.latest.owncloud.works.cyberduckprofile
<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright (c) 2002-2022 iterate GmbH. All rights reserved.
  ~ https://cyberduck.io/
  ~
  ~ This program is free software; you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  -->

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>Protocol</key>
        <string>owncloud</string>
        <key>Vendor</key>
        <string>owncloud.works</string>
        <key>Description</key>
        <string>ownCloud Infinite Scale</string>
        <key>Default Nickname</key>
        <string>ownCloud Infinite Scale</string>
        <key>Default Hostname</key>
        <string>ocis.ocis-keycloak.latest.owncloud.works</string>
        <key>Default Path</key>
        <string>/remote.php/webdav/</string>
        <key>Path Configurable</key>
        <true/>
        <key>Hostname Configurable</key>
        <true/>
        <key>OAuth Configurable</key>
        <true/>
        <key>OAuth Authorization Url</key>
        <string>https://keycloak.ocis-keycloak.latest.owncloud.works/realms/oCIS/protocol/openid-connect/auth</string>
        <key>OAuth Token Url</key>
        <string>https://keycloak.ocis-keycloak.latest.owncloud.works/realms/oCIS/protocol/openid-connect/token</string>
        <key>Scopes</key>
        <array>
            <string>openid</string>
            <string>email</string>
            <string>offline_access</string>
        </array>
        <key>OAuth Client ID</key>
        <string>3keLfua0olYvW1zKXTDB3OjAMPEYWEQNuiscli395GKJOiPnPURNQWGvGCJZf4Hw</string>
        <key>OAuth Client Secret</key>
        <string>yoqICbLIeYbpZPqDH4D8k4NKb04HqnrWBntEeVZEQ5gO1RmaUlln0Aqu1dj2UoF4</string>
        <key>OAuth Redirect Url</key>
        <string>${oauth.handler.scheme}:oauth</string>
        <key>Password Configurable</key>
        <false/>
        <key>Username Configurable</key>
        <false/>
    </dict>
</plist>

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

/cc @dkocher @tbsbdr @hodyroff

@michaelstingl michaelstingl added the Status:Needs-Review Needs review from a maintainer label Nov 2, 2023
@michaelstingl michaelstingl self-assigned this Nov 2, 2023
Copy link

update-docs bot commented Nov 2, 2023

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@dkocher
Copy link
Contributor

dkocher commented Nov 3, 2023

For the OAuth Redirect Url you can use the value ${oauth.handler.scheme}://oauth in the connection profile to make this work in both Cyberduck & Mountain Duck.

@micbar micbar force-pushed the example-deployment-keycloak-cyberduck branch from 8c169ee to 7af9cd9 Compare December 1, 2023 10:10
@micbar
Copy link
Contributor

micbar commented Dec 1, 2023

rebased it.

Copy link

sonarcloud bot commented Dec 1, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@michaelstingl michaelstingl merged commit a7d2ef2 into master Dec 1, 2023
2 checks passed
@delete-merged-branch delete-merged-branch bot deleted the example-deployment-keycloak-cyberduck branch December 1, 2023 10:19
ownclouders pushed a commit that referenced this pull request Dec 1, 2023
…berduck

Add example config for 3rd party WebDAV client Cyberduck (and Mountain Duck)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status:Needs-Review Needs review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants