Revert emergency registration patches
Revert "Merge commit '4d3ebc' into matrix-org-hotfixes" This reverts commitpull/8675/head617541c4c6
, reversing changes made toae4f6140f1
.
parent
6610343332
commit
7ff7a415d1
|
@ -329,6 +329,18 @@ class AuthHandler(BaseHandler):
|
||||||
# isn't arbitrary.
|
# isn't arbitrary.
|
||||||
clientdict = session.clientdict
|
clientdict = session.clientdict
|
||||||
|
|
||||||
|
# Ensure that the queried operation does not vary between stages of
|
||||||
|
# the UI authentication session. This is done by generating a stable
|
||||||
|
# comparator based on the URI, method, and body (minus the auth dict)
|
||||||
|
# and storing it during the initial query. Subsequent queries ensure
|
||||||
|
# that this comparator has not changed.
|
||||||
|
comparator = (uri, method, clientdict)
|
||||||
|
if (session.uri, session.method, session.clientdict) != comparator:
|
||||||
|
raise SynapseError(
|
||||||
|
403,
|
||||||
|
"Requested operation has changed during the UI authentication session.",
|
||||||
|
)
|
||||||
|
|
||||||
if not authdict:
|
if not authdict:
|
||||||
raise InteractiveAuthIncompleteError(
|
raise InteractiveAuthIncompleteError(
|
||||||
self._auth_dict_for_flows(flows, session.session_id)
|
self._auth_dict_for_flows(flows, session.session_id)
|
||||||
|
|
Loading…
Reference in New Issue