Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(oauth): instance name encoding on oauth app in admin #49804

Open
wants to merge 46 commits into
base: master
Choose a base branch
from

Conversation

byt3sage
Copy link

Summary

  • This PR aims to resolve the issue with the encoding of the instance name when shown in the OAuth settings in Nextcloud admin.
  • This is my first PR for Nextcloud (and hopefully the first of many) so I'm keen for any feedback if this approach doesn't follow what it should.
  • I've removed instance name from the translate function. My reasoning for this is the instance name will already be in the users own language and this avoids the issue of the translate function escaping special characters.

TODO

  • Remove instance name binding from the translate function and use string interpolation instead.
  • Update translation files to ensure the string prior to the instance name is still translated.

Screenshots

Before
image

After
image

Checklist

@kesselb
Copy link
Contributor

kesselb commented Dec 12, 2024

Thanks for your pull request 👍

Please revert the changes to the language files. The files are synced automatically from Transifex. It's enough to change the source.

@byt3sage
Copy link
Author

@kesselb Ah that makes sense! I've reverted these back now.

byt3sage and others added 23 commits December 13, 2024 09:14
…yt3sage/server into bug/oauth-instance-name-decoding-39956
…yt3sage/server into bug/oauth-instance-name-decoding-39956

Signed-off-by: byt3sage <[email protected]>
…yt3sage/server into bug/oauth-instance-name-decoding-39956
Signed-off-by: byt3sage <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
Signed-off-by: byt3sage <[email protected]>
Signed-off-by: Robin Appelman <[email protected]>
Signed-off-by: byt3sage <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
Signed-off-by: byt3sage <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
Signed-off-by: byt3sage <[email protected]>
Signed-off-by: Nextcloud bot <[email protected]>
Signed-off-by: byt3sage <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
Signed-off-by: byt3sage <[email protected]>
…ric one

Let the controller access the HintException and show the error to the user.

Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: byt3sage <[email protected]>
This fixes a regression that bad password returned 403 instead of 400
 because of previous changes.

Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: byt3sage <[email protected]>
icewind1991 and others added 19 commits December 13, 2024 09:19
Signed-off-by: Christopher Ng <[email protected]>
Signed-off-by: byt3sage <[email protected]>
Signed-off-by: Christopher Ng <[email protected]>
Signed-off-by: byt3sage <[email protected]>
Signed-off-by: skjnldsv <[email protected]>
Signed-off-by: byt3sage <[email protected]>
Signed-off-by: skjnldsv <[email protected]>
Signed-off-by: byt3sage <[email protected]>
Signed-off-by: Christopher Ng <[email protected]>
Signed-off-by: byt3sage <[email protected]>
Signed-off-by: Christopher Ng <[email protected]>
Signed-off-by: byt3sage <[email protected]>
…oned queries

Signed-off-by: Robin Appelman <[email protected]>
Signed-off-by: byt3sage <[email protected]>
Signed-off-by: Daniel Kesselberg <[email protected]>
Signed-off-by: byt3sage <[email protected]>
Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.7 to 3.3.8.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](ai/nanoid@3.3.7...3.3.8)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: byt3sage <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
Signed-off-by: byt3sage <[email protected]>
Signed-off-by: Nextcloud bot <[email protected]>
Signed-off-by: byt3sage <[email protected]>
…yt3sage/server into bug/oauth-instance-name-decoding-39956
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Instance name not decoded in the "OAuth 2.0-Clients" config menu