Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
switch to allow_guest=True for authing 3Ps as per PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ara4n committed Mar 31, 2017
1 parent a61dd40 commit 9ee397b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions synapse/rest/client/v2_alpha/thirdparty.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def __init__(self, hs):

@defer.inlineCallbacks
def on_GET(self, request):
yield self.auth.get_user_by_req(request, allow_guest=True)

protocols = yield self.appservice_handler.get_3pe_protocols()
defer.returnValue((200, protocols))

Expand All @@ -52,6 +54,8 @@ def __init__(self, hs):

@defer.inlineCallbacks
def on_GET(self, request, protocol):
yield self.auth.get_user_by_req(request, allow_guest=True)

protocols = yield self.appservice_handler.get_3pe_protocols(
only_protocol=protocol,
)
Expand All @@ -73,6 +77,8 @@ def __init__(self, hs):

@defer.inlineCallbacks
def on_GET(self, request, protocol):
yield self.auth.get_user_by_req(request, allow_guest=True)

fields = request.args
fields.pop("access_token", None)

Expand All @@ -95,6 +101,8 @@ def __init__(self, hs):

@defer.inlineCallbacks
def on_GET(self, request, protocol):
yield self.auth.get_user_by_req(request, allow_guest=True)

fields = request.args
fields.pop("access_token", None)

Expand Down

0 comments on commit 9ee397b

Please sign in to comment.