mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 07:48:16 -05:00
Pass the state value in OAuth2 error redirects.
This commit is contained in:
@@ -118,6 +118,9 @@ class OAuth2FrontendController(RedditController):
|
||||
self._check_redirect_uri(client, redirect_uri)
|
||||
|
||||
resp = {}
|
||||
if state:
|
||||
resp["state"] = state
|
||||
|
||||
if not c.errors:
|
||||
c.deny_frames = True
|
||||
return OAuth2AuthorizationPage(client, redirect_uri, scope_info[scope], state).render()
|
||||
|
||||
Reference in New Issue
Block a user