HinaraH
ZITADEL3mo ago
12 replies
Hinara

Cannot generate PKCE secret

Hello,

I had some discussion with forgejo community while trying to enable PKCE on it, however the told me that you technically should have a secret while using PKCE which is not possible to generate in Zitadel with PKCE framework
https://codeberg.org/forgejo/forgejo/issues/6014

Note: Because PKCE is not a replacement for client authentication, it does not allow treating a public client as a confidential client.

https://oauth.net/2/pkce/

It seems technically possible by temporarily converting your app to a regular Code application then convert it back to a PKCE one ? Or just use Code and app supporing PKCE should try to use it ?

I'm a bit lost on that specific topic, and what makes it even more confusing is that Zitadel recommend using PKCE but the fact that there is no client_secret might make it less secure in certain use case.
Codeberg.org

Can you reproduce the bug on the Forgejo test instance?


No

Description


As was tracked by #2766, forgejo supports using PKCE as an OpenID Connect client. However, when utilizing PKCE a client secret is not actually required. Thus, the client secret field should be optional instead of re...
bug: Client Secret is a required field in OIDC authentication sourc...
Was this page helpful?