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
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.
2 years ago
..
admin Display unreferenced packages total size in package admin panel (#22498) 2 years ago
auth Allow setting `redirect_to` cookie on OAuth login (#22594) 2 years ago
events Implement FSFE REUSE for golang files (#21840) 2 years ago
explore Move `convert` package to services (#22264) 2 years ago
feed Add Feed for Releases and Tags (#21696) 2 years ago
healthcheck Implement FSFE REUSE for golang files (#21840) 2 years ago
misc Implement FSFE REUSE for golang files (#21840) 2 years ago
org Support org/user level projects (#22235) 2 years ago
repo Support org/user level projects (#22235) 2 years ago
shared Support org/user level projects (#22235) 2 years ago
user Support org/user level projects (#22235) 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 Implement FSFE REUSE for golang files (#21840) 2 years ago
goget.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
home.go Implement FSFE REUSE for golang files (#21840) 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 Implement FSFE REUSE for golang files (#21840) 2 years ago
web.go Support org/user level projects (#22235) 2 years ago
webfinger.go Implement FSFE REUSE for golang files (#21840) 2 years ago