Skip to content

Adapt to the OCM spec for remote shares #57152

Done

Description

@enriquepablo

Tip

Help move this idea forward

  • Use the 👍 reaction to show support for this feature.
  • Avoid commenting unless you have relevant information to add; unnecessary comments create noise for subscribers.
  • Subscribe to receive notifications about status changes and new comments.

There's been work at cs3org towards standardizing federated shares, adopting a draft for an OCM spec [1].
To adapt nextcloud to this standard, we would need to:

  • Allow Bearer auth for incoming and outgoing remote shares
  • Use permanent refresh tokens and transient access tokens for the shares
  • Update the nextcloud OCM stuff to include the token endpoint
  1. https://datatracker.ietf.org/doc/draft-ietf-ocm-open-cloud-mesh/

Activity

  1. added
    0. Needs triage
    on Dec 17, 2025
  2. come-nc commented on Dec 18, 2025

    @come-nc
    Contributor
  3. chodid commented on Oct 21, 2026

    @chodid

    A concrete interoperability case for this: shares from OpenCloud (reva, OCM 1.2 with webdav-uri/protocol-object) are unusable in Nextcloud 35.0.2 because Nextcloud ignores protocol.webdav.uri and uses Basic auth with the secret at the discovered endpoint, while OpenCloud expects the share id in the path and the secret as Bearer. Details and logs: #65770

  4. susnux commented on Dec 2, 2026

    @susnux
    Contributor

    Token exchange from the OCM specification is implemented since Nextcloud 35 (#57234, with follow-ups #61889 and #64596): Nextcloud exposes a token endpoint, stores refresh tokens and uses short-lived Bearer access tokens for incoming and outgoing federated shares. The remaining OpenCloud interoperability problem (the share's webdav URI being ignored) is tracked in #65770, so I'm closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triageenhancementfeature: federation

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions