pocket-id: 🐛 Bug Report: invalid callback URL, it might be necessary for an admin to fix this

Reproduction steps

After updating to 0.48.0 all applications suddenly give invalid callback url, even those with no callback url enforced

Expected behavior

It should accept the redirect url provided by the client

Actual Behavior

In the logs and in the UI I see invalid callback URL, it might be necessary for an admin to fix this

Version and Environment

v0.48.0 docker

Log Output

[GIN] 2025/04/18 - 21:59:36 | 400 |     777.256µs |   192.168.1.127 | POST     "/api/oidc/authorize"
Error #01: invalid callback URL, it might be necessary for an admin to fix this
[GIN] 2025/04/18 - 21:59:36 | 400 |     790.021µs |   192.168.1.127 | POST     "/api/oidc/authorize"
Error #01: invalid callback URL, it might be necessary for an admin to fix this

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 16 (3 by maintainers)

Most upvoted comments

I had similar with kubelogin with my Kubernetes cluster, Adding a callback URL of ‘*’ ‘fixes’ it, insecure, sure, but it resolves the issue of dynamic endpoints for redirects.

Also, is callback URL the correct name here? Isn’t it redirect URI in the spec? Or am I getting confused.

From experience of other systems, Authentik has it that undefined then on the first attempt it’ll populate the Redirect URI with the first request it gets, this covers the vast majority of apps quite well, but always ended tripping people up when due to a incorrect app config they end up with a HTTP url or a internal, non-routable address.

I’d say the best way would be to either make the field required so people always input the value and understand it meaning, or put a explicit warning saying that blank will reject all callback URLs

I’m closing this because this seems fixed by using a wildcard.

The next release will force an user to enter at least one callback URL and there will be a note that wilcards are supported.

In this case might I suggest empty = *, as the field isn’t marked as required on the ui, with maybe an orange div popping up that informs the user of the risks