Pass the state value in OAuth2 error redirects.

This commit is contained in:
Dave Pifke
2012-03-14 10:56:52 -07:00
committed by Logan Hanks
parent 961495b003
commit 9001852a40

View File

@@ -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()