You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/web
Denys Konovalov 7d855efb1f
Allow for PKCE flow without client secret + add docs (#25033)
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
2 years ago
..
admin Improve queue and logger context (#24924) 2 years ago
auth Allow for PKCE flow without client secret + add docs (#25033) 2 years ago
devtest Remove untranslatable `on_date` key (#24106) 2 years ago
events Implement FSFE REUSE for golang files (#21840) 2 years ago
explore Sort users and orgs on explore by recency by default (#24279) 2 years ago
feed Pass 'not' to commit count (#24473) 2 years ago
healthcheck Refactor `setting.Database.UseXXX` to methods (#23354) 2 years ago
misc Decouple the different contexts from each other (#24786) 2 years ago
org Merge `new project` templates into one (#24985) 2 years ago
repo Fix users cannot visit issue attachment bug (#25019) 2 years ago
shared Respect original content when creating secrets (#24745) 2 years ago
user Add user level action runners (#24995) 2 years ago
auth.go Implement FSFE REUSE for golang files (#21840) 2 years ago
auth_windows.go Implement FSFE REUSE for golang files (#21840) 2 years ago
base.go Use standard HTTP library to serve files (#24693) 2 years ago
goget.go Support SSH for go get (#24664) 2 years ago
home.go Refactor cookie (#24107) 2 years ago
metrics.go Implement FSFE REUSE for golang files (#21840) 2 years ago
nodeinfo.go Implement FSFE REUSE for golang files (#21840) 2 years ago
swagger_json.go Group template helper functions, remove `Printf`, improve template error messages (#23982) 2 years ago
web.go Merge `new project` templates into one (#24985) 2 years ago
webfinger.go Use User.ID instead of User.Name in ActivityPub API for Person IRI (#23823) 2 years ago