forgejo/routers/web
Sybren 95e8ea9440
Allow setting redirect_to cookie on OAuth login (#22594)
The regular login flow can use a `redirect_to` cookie to ensure the user
ends their authentication flow on the same page as where they started
it.

This commit adds the same functionality to the OAuth login URLs, so that
you can use URLs like these to directly use a specific OAuth provider:

`/user/oauth2/{provider}?redirect_to={post-login path}`

Only the `auth.SignInOAuth()` function needed a change for this, as the
rest of the login flow is aware of this cookie and uses it properly
already.
2023-01-24 11:41:38 -05:00
..
admin Display unreferenced packages total size in package admin panel (#22498) 2023-01-18 09:52:04 -06:00
auth Allow setting redirect_to cookie on OAuth login (#22594) 2023-01-24 11:41:38 -05:00
events Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
explore Move convert package to services (#22264) 2022-12-29 10:57:15 +08:00
feed Add Feed for Releases and Tags (#21696) 2022-12-21 15:06:26 -06:00
healthcheck Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
misc Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
org Support org/user level projects (#22235) 2023-01-20 19:42:33 +08:00
repo Support org/user level projects (#22235) 2023-01-20 19:42:33 +08:00
shared Support org/user level projects (#22235) 2023-01-20 19:42:33 +08:00
user Support org/user level projects (#22235) 2023-01-20 19:42:33 +08:00
auth.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
auth_windows.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
base.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
goget.go refactor some functions to support ctx as first parameter (#21878) 2022-12-03 10:48:26 +08:00
home.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
metrics.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
nodeinfo.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
swagger_json.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
web.go Support org/user level projects (#22235) 2023-01-20 19:42:33 +08:00
webfinger.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00