nextcloud/lib
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 #45978

Signed-off-by: Jonas <jonas@freesources.org>
2024-07-17 12:56:41 +02:00
..
composer feat(Reference): Add public API endpoints to get references 2024-07-17 12:56:41 +02:00
l10n Fix(l10n): Update translations from Transifex 2024-07-17 00:19:35 +00:00
private feat(Reference): Add public API endpoints to get references 2024-07-17 12:56:41 +02:00
public feat(Reference): Add public API endpoints to get references 2024-07-17 12:56:41 +02:00
autoloader.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
base.php fix(occ): Use the const instead of hardcoded string for --debug-log option 2024-07-08 16:09:39 +02:00
versioncheck.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00