mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-01-13 14:09:27 -05:00
Fix flake8 issues
Signed-off-by: Jason Robinson <jasonr@matrix.org>
This commit is contained in:
parent
1838ef1ac3
commit
6f680241bd
@ -92,7 +92,10 @@ class FederationReaderServer(HomeServer):
|
|||||||
# is not specified since federation resource includes openid
|
# is not specified since federation resource includes openid
|
||||||
# resource.
|
# resource.
|
||||||
resources.update({
|
resources.update({
|
||||||
FEDERATION_PREFIX: TransportLayerServer(self, servlet_groups=["openid"]),
|
FEDERATION_PREFIX: TransportLayerServer(
|
||||||
|
self,
|
||||||
|
servlet_groups=["openid"],
|
||||||
|
),
|
||||||
})
|
})
|
||||||
|
|
||||||
root_resource = create_resource_tree(resources, NoResource())
|
root_resource = create_resource_tree(resources, NoResource())
|
||||||
|
@ -330,7 +330,7 @@ class ServerConfig(Config):
|
|||||||
|
|
||||||
- names: [federation] # Federation APIs
|
- names: [federation] # Federation APIs
|
||||||
compress: false
|
compress: false
|
||||||
|
|
||||||
# # If federation is disabled synapse can still expose the open ID endpoint
|
# # If federation is disabled synapse can still expose the open ID endpoint
|
||||||
# # to allow integrations to authenticate users
|
# # to allow integrations to authenticate users
|
||||||
# - names: [openid]
|
# - names: [openid]
|
||||||
|
@ -61,7 +61,10 @@ class FederationReaderOpenIDListenerTests(HomeserverTestCase):
|
|||||||
return
|
return
|
||||||
raise
|
raise
|
||||||
|
|
||||||
request, channel = self.make_request("GET", "/_matrix/federation/v1/openid/userinfo")
|
request, channel = self.make_request(
|
||||||
|
"GET",
|
||||||
|
"/_matrix/federation/v1/openid/userinfo",
|
||||||
|
)
|
||||||
self.render(request)
|
self.render(request)
|
||||||
|
|
||||||
self.assertEqual(channel.code, 401)
|
self.assertEqual(channel.code, 401)
|
||||||
@ -107,7 +110,10 @@ class SynapseHomeserverOpenIDListenerTests(HomeserverTestCase):
|
|||||||
return
|
return
|
||||||
raise
|
raise
|
||||||
|
|
||||||
request, channel = self.make_request("GET", "/_matrix/federation/v1/openid/userinfo")
|
request, channel = self.make_request(
|
||||||
|
"GET",
|
||||||
|
"/_matrix/federation/v1/openid/userinfo",
|
||||||
|
)
|
||||||
self.render(request)
|
self.render(request)
|
||||||
|
|
||||||
self.assertEqual(channel.code, 401)
|
self.assertEqual(channel.code, 401)
|
||||||
|
Loading…
Reference in New Issue
Block a user