nextcloud / nextcloud/user_oidc

Shorter URL back from nextcloud

Open
#1,088 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.