mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-05 00:39:38 +03:00
🐛 Bug Report: Public clients without PKCE do not work #382
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @elee1766 on GitHub (Jul 18, 2025).
Reproduction steps
try to use implicit auth flow with a public client with PKCE disabled.
Expected behavior
https://github.com/pocket-id/pocket-id/blob/main/backend/internal/service/oidc_service.go#L127-L130
the comment says "if the client is not public, the code challenge must be provided"
but this code is, "if the client is public, then the code challenge must be provided" (or really, if the client is public and the code challenge is not provided, error)
Actual Behavior
i get error "missing code challenge" if i try to use implicit auth with PCKE off.
Version and Environment
1.6.2, in docker
Log Output
@stonith404 commented on GitHub (Jul 18, 2025):
Yeah the comment is wrong in that case, thanks.
We don't support the implicit flow though and are not planning to support it in the future because the flow isn't recommended anymore.