Skip to content

fix(oauth2): clarify client configuration and validate deletion - #67400

Merged
susnux merged 10 commits into
masterfrom
jtr/oauth2-clarity
Dec 5, 2026
Merged

susnux merged 10 commits into
masterfrom
jtr/oauth2-clarity

Conversation

@joshtrichards

@joshtrichards joshtrichards commented Dec 2, 2026 •

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

While revising the OAuth chapter in the Admin Manual in nextcloud/documentation#16136 tidied up the app UX a bit:

  • Clarify OAuth authorization and standardize client terminology.
  • Improve settings guidance, command help, and error messages.
  • Validate the delete command’s internal client ID as a positive integer.

TODO

  • Update OpenAPI

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

joshtrichards and others added 10 commits December 5, 2026 20:44
Describe OAuth 2.0 as a way for users to authorize external
applications to access their Nextcloud accounts.

Remove the unnecessary restriction to web applications.

Signed-off-by: Josh <josh.t.richards@gmail.com>
Clarify who grants access and make the credential labels more recognizable:

- Explain how users authorize external applications
- Use familiar OAuth terminology
- Clarify redirect URL and secret handling

Signed-off-by: Josh <josh.t.richards@gmail.com>
Use "Client secret" for the password field's accessible label,
matching the settings table heading.

Signed-off-by: Josh <josh.t.richards@gmail.com>
Use consistent OAuth terminology.

Signed-off-by: Josh <josh.t.richards@gmail.com>
Require a positive integer rather than coercing invalid input.
Clarify that the command expects the internal ID (not OAuth Client ID) and that deleting a client revokes its associated access tokens.

Signed-off-by: Josh <josh.t.richards@gmail.com>
Clarify the configuration prerequisite and add help.

Report an error for empty arguments.

Signed-off-by: Josh <josh.t.richards@gmail.com>
Align the example with the add-client command.

Signed-off-by: Josh <josh.t.richards@gmail.com>
Explain that the application is not registered with the server
and direct the user to their administrator.

Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
The app description in info.xml changed, so the generated spec must follow.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux
susnux force-pushed the jtr/oauth2-clarity branch from 8d3b04d to 1542e3a Compare December 5, 2026 19:45
@susnux
susnux requested a review from provokateurin as a code owner December 5, 2026 19:45
@susnux
susnux merged commit 63c7b92 into master Dec 5, 2026
149 of 154 checks passed
@susnux
susnux deleted the jtr/oauth2-clarity branch December 5, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants