mirror of
https://github.com/nextcloud/server.git
synced 2025-02-24 00:48:38 +00:00
![]() 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> |
||
---|---|---|
.. | ||
File | ||
LinkReferenceProvider.php | ||
ReferenceManager.php | ||
RenderReferenceEventListener.php |