Skip to content

Add OpenCloud connection provider - #42

Open
palchrb wants to merge 1 commit into
Euro-Office:mainfrom
palchrb:feature/opencloud-provider
Open

Add OpenCloud connection provider#42
palchrb wants to merge 1 commit into
Euro-Office:mainfrom
palchrb:feature/opencloud-provider

Conversation

@palchrb

@palchrb palchrb commented Aug 28, 2026

Copy link
Copy Markdown

What

Adds OpenCloud (https://opencloud.eu) as a cloud provider in the connect
dialog — a data-driven entry under common/loginpage/providers/opencloud/:
config.json plus list/button icons for both themes (monochrome, derived from
OpenCloud's official mark). Five new files, no code or build changes — the
providers directory is enumerated at app startup.

This answers the community-integration invitation in Euro-Office/core#77:
OpenCloud pairs naturally with the Euro-Office document server, since OpenCloud
serves its web office through WOPI natively — no platform connector app needed.

Design notes

  • check.url is status.php: OpenCloud serves the ownCloud-compatible status
    endpoint, so reachability probing works like the ownCloud provider's.
  • editorPage is regex:\/external-[a-z0-9-]+ rather than a hardcoded app
    name: OpenCloud opens WOPI apps on /external-<app> URLs where <app> is
    the server's configured COLLABORATION_APP_NAME — deployment configuration,
    not a constant.
  • The existing ownCloud provider entry cannot serve OpenCloud: its
    editorPage (/apps/onlyoffice/) is the classic connector-app path and
    never matches, so documents are never promoted to editor tabs.
  • No editorFrameSize — the default behaves correctly with OpenCloud's
    editor page.

How this was tested

Against a real OpenCloud 7.5 instance (external reverse proxy, external OIDC
IdP) with the provider directory dropped into an installed DesktopEditors
build's providers/ folder (runtime enumeration — no rebuild needed):

  • provider appears in the connect dialog with icons in both themes
  • OIDC login (redirect flow) works in the embedded shell
  • opening a document promotes it to an editor tab via the /external-* match;
    editing, saving and co-editing with a browser user work
  • recent files track the portal and reopen correctly
  • together with a small OpenCloud web extension announcing portal:login
    (proposed at opencloud-eu/web-extensions#), the portal appears and
    persists in the Clouds list

Ref: Euro-Office/core#77

OpenCloud (opencloud.eu) serves its WOPI-based web office apps on
/external-<app> editor URLs and answers the ownCloud-compatible
status.php probe, so a data-driven provider entry is all the connect
dialog needs: reachability check via status.php, editor tabs promoted
by the /external-* URL pattern, and a monochrome OpenCloud mark for
the connections list in both themes.

The editorPage regex matches any /external-<app> page instead of
hardcoding an app name, because the WOPI app name on the server
(COLLABORATION_APP_NAME) is deployment configuration, not a constant.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VzBsHpG5rHzxwgRofBDnw5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant