Skip to content

feat(sharing): Allow custom share tokens for public links#3348

Closed
Chartman123 wants to merge 3 commits into
nextcloud:mainfrom
alexander-rebello:feature/custom-share-links
Closed

feat(sharing): Allow custom share tokens for public links#3348
Chartman123 wants to merge 3 commits into
nextcloud:mainfrom
alexander-rebello:feature/custom-share-links

Conversation

@Chartman123

Copy link
Copy Markdown
Collaborator

Closes #2815

This adds admin-gated custom tokens for public Forms share links. By default the feature is disabled, so existing instances keep the current random-token behavior. When enabled by an admin, form owners can edit the token of an existing public link directly in the sharing sidebar, save it explicitly, and the old URL becomes invalid immediately.

It also adds the necessary backend support for token updates, keeps public-link routing compatible with custom tokens, and includes tests plus API documentation updates.

New PR replacing #3311

@Chartman123 Chartman123 added this to the 5.3 milestone May 20, 2026
@Chartman123 Chartman123 added enhancement New feature or request 3. to review Waiting for reviews feature: 👥 sharing settings labels May 20, 2026
@Chartman123 Chartman123 requested review from pringelmann and susnux May 20, 2026 19:41
Comment thread lib/Controller/ShareApiController.php

@Chartman123 Chartman123 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexander-rebello I added some comments/suggestions. Most of them, especially the suggestions need the rebase on current main first.

Comment thread lib/Constants.php
Comment thread lib/Service/ConfigService.php
Comment thread src/components/SidebarTabs/SharingSidebarTab.vue
Comment thread src/components/SidebarTabs/SharingSidebarTab.vue
Comment thread src/components/SidebarTabs/SharingSidebarTab.vue
Comment thread src/components/SidebarTabs/SharingSidebarTab.vue
Comment thread src/FormsSettings.vue
Comment thread src/FormsSettings.vue
@Chartman123 Chartman123 modified the milestones: 5.3, 5.4 Jun 4, 2026
@Chartman123

Copy link
Copy Markdown
Collaborator Author

closed in favor of #3435

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

Labels

3. to review Waiting for reviews enhancement New feature or request feature: 👥 sharing settings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Readable links when sharing

3 participants