nextcloud / nextcloud/user_oidc
Shorter URL back from nextcloud
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 181
- Forks
- 60
- Avg merge
- 7h 34m
- Merged PRs (30d)
- 26
Description
Hi,
It would be great to get a shorter URL back from Nextcloud.
Currently, when using OIDC and Nextcloud via Keycloak, you always receive a long string like this when visiting the Nextcloud login page:
/realms/xxxxxxx/protocol/openid-connect/auth?client_id=xxxxxxx&response_type=code&scope=openid+email+profile&redirect_uri=https%3A%2F%2Fdev.xxxxx.com%2Fapps%2Fuser_oidc%2Fcode&claims=%7B"id_token"%3A%7B"email"%3Anull%2C"name"%3Anull%2C"quota"%3Anull%2C"groups"%3Anull%7D%2C"userinfo"%3A%7B"email"%3Anull%2C"name"%3Anull%2C"quota"%3Anull%2C"groups"%3Anull%7D%7D&state=ADJAD6T132P83HMOGVRL773ZK3R80VY0&nonce=FMPGR3X6O43SW8SU946VN5J74R6MJBY7&code_challenge=yj_MppiWR49kF7uJzgYPGBkFuFhsryFkfHiwvuOCGLE&code_challenge_method=S256
Ideally, the URL would look more like this:
/realms/xxxxxxx
And if possible, remove the extra string that is sent back to the browser.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the Nextcloud OIDC login redirect and the URL returned when Keycloak is used, comparing the current long authorization URL with the requested /realms/xxxxxxx form. Done means the browser receives a shorter URL and the extra returned string is removed, while the login flow still works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- authentication, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100