mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-05 01:40:04 +00:00
7d855efb1f
The PKCE flow according to [RFC 7636](https://datatracker.ietf.org/doc/html/rfc7636) allows for secure authorization without the requirement to provide a client secret for the OAuth app. It is implemented in Gitea since #5378 (v1.8.0), however without being able to omit client secret. Since #21316 Gitea supports setting client type at OAuth app registration. As public clients are already forced to use PKCE since #21316, in this PR the client secret check is being skipped if a public client is detected. As Gitea seems to implement PKCE authorization correctly according to the spec, this would allow for PKCE flow without providing a client secret. Also add some docs for it, please check language as I'm not a native English speaker. Closes #17107 Closes #25047 |
||
---|---|---|
.. | ||
_index.en-us.md | ||
_index.zh-cn.md | ||
_index.zh-tw.md | ||
api-usage.en-us.md | ||
api-usage.zh-cn.md | ||
hacking-on-gitea.en-us.md | ||
hacking-on-gitea.zh-cn.md | ||
integrations.en-us.md | ||
integrations.zh-cn.md | ||
integrations.zh-tw.md | ||
migrations.en-us.md | ||
migrations.zh-cn.md | ||
migrations.zh-tw.md | ||
oauth2-provider.en-us.md | ||
oauth2-provider.zh-cn.md | ||
oauth2-provider.zh-tw.md |