0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-02-24 00:48:38 +00:00
nextcloud_server/lib/private/Collaboration
Jonas 1671bf3ef2
feat(Reference): Add public API endpoints to get references
Calling the public API endpoints will check for matching registered
reference providers that implement `IPublicReferenceProvider` and call
their respective functions. If no matching provider is found, the
default `LinkReferenceProvider` will be used to provide open graph data.

The frontend reference widget components will call these endpoints from
unauthorized sessions, e.g. in public shares.

If present, the sharing token of the origin URL is passed to
`resolveReferencePublic()` as additional information for the reference
provider to determine the access scope. This allows the respective
reference providers to determine whether the origin share has access to
the linked resource.

`getCacheKeyPublic` also gets the sharing token so it can scope the cached
entry to it.

Contributes to 

Signed-off-by: Jonas <jonas@freesources.org>
2024-07-17 12:56:41 +02:00
..
AutoComplete chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Collaborators fix(federation): Fix missing protocol on CloudID remote 2024-06-27 11:26:08 +02:00
Reference feat(Reference): Add public API endpoints to get references 2024-07-17 12:56:41 +02:00
Resources chore: Add SPDX header 2024-05-24 13:11:22 +02:00