forgejo/routers
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
..
api Support scoped access tokens (#20908) 2023-01-17 15:46:03 -06:00
common Support disabling database auto migration (#22053) 2022-12-07 09:58:31 -06:00
install fix: update settings table on install (#22326) 2023-01-03 14:33:41 -06:00
private Prevent multiple To recipients (#22566) 2023-01-22 08:23:52 -06:00
utils
web Allow setting redirect_to cookie on OAuth login (#22594) 2023-01-24 11:41:38 -05:00
init.go Add support for incoming emails (#22056) 2023-01-14 23:57:10 +08:00