nextcloud/core/Controller
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
..
AppPasswordController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
AutoCompleteController.php fix(core): use OC namespace for core ReponseDefinitions instead of OCA 2024-07-15 11:50:02 +02:00
AvatarController.php fix(core): Return X-NC-IsCustomAvatar for guest avatars too 2024-06-12 10:27:29 +02:00
ClientFlowLoginController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
ClientFlowLoginV2Controller.php fix(core): use OC namespace for core ReponseDefinitions instead of OCA 2024-07-15 11:50:02 +02:00
CollaborationResourcesController.php fix(core): use OC namespace for core ReponseDefinitions instead of OCA 2024-07-15 11:50:02 +02:00
ContactsMenuController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
CSRFTokenController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
CssController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
ErrorController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
GuestAvatarController.php fix(core): Return X-NC-IsCustomAvatar for guest avatars too 2024-06-12 10:27:29 +02:00
HoverCardController.php fix(core): use OC namespace for core ReponseDefinitions instead of OCA 2024-07-15 11:50:02 +02:00
JsController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
LoginController.php feat: don't count failed CSRF as failed login attempt 2024-07-11 09:27:33 +02:00
LostController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
NavigationController.php fix(core): use OC namespace for core ReponseDefinitions instead of OCA 2024-07-15 11:50:02 +02:00
OCJSController.php feat: Add new forbidden filename options to Capabilities 2024-07-11 13:31:54 +02:00
OCMController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
OCSController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
PreviewController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
ProfileApiController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
ProfilePageController.php test: add tests for ProfilePageController 2024-06-12 11:46:12 +02:00
RecommendedAppsController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
ReferenceApiController.php feat(Reference): Add public API endpoints to get references 2024-07-17 12:56:41 +02:00
ReferenceController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
SearchController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
SetupController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
TaskProcessingApiController.php fix(core): use OC namespace for core ReponseDefinitions instead of OCA 2024-07-15 11:50:02 +02:00
TeamsApiController.php fix(core): use OC namespace for core ReponseDefinitions instead of OCA 2024-07-15 11:50:02 +02:00
TextProcessingApiController.php fix(core): use OC namespace for core ReponseDefinitions instead of OCA 2024-07-15 11:50:02 +02:00
TextToImageApiController.php fix(core): use OC namespace for core ReponseDefinitions instead of OCA 2024-07-15 11:50:02 +02:00
TranslationApiController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
TwoFactorChallengeController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
UnifiedSearchController.php fix(core): use OC namespace for core ReponseDefinitions instead of OCA 2024-07-15 11:50:02 +02:00
UnsupportedBrowserController.php fix(core): unsupported browser redirect url 2024-06-01 09:34:22 +02:00
UserController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
WalledGardenController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
WebAuthnController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
WellKnownController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
WhatsNewController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00
WipeController.php chore: Add SPDX header 2024-05-27 14:53:40 +02:00