parent
1838ef1ac3
commit
6f680241bd
|
@ -92,7 +92,10 @@ class FederationReaderServer(HomeServer):
|
|||
# is not specified since federation resource includes openid
|
||||
# resource.
|
||||
resources.update({
|
||||
FEDERATION_PREFIX: TransportLayerServer(self, servlet_groups=["openid"]),
|
||||
FEDERATION_PREFIX: TransportLayerServer(
|
||||
self,
|
||||
servlet_groups=["openid"],
|
||||
),
|
||||
})
|
||||
|
||||
root_resource = create_resource_tree(resources, NoResource())
|
||||
|
|
|
@ -330,7 +330,7 @@ class ServerConfig(Config):
|
|||
|
||||
- names: [federation] # Federation APIs
|
||||
compress: false
|
||||
|
||||
|
||||
# # If federation is disabled synapse can still expose the open ID endpoint
|
||||
# # to allow integrations to authenticate users
|
||||
# - names: [openid]
|
||||
|
|
|
@ -61,7 +61,10 @@ class FederationReaderOpenIDListenerTests(HomeserverTestCase):
|
|||
return
|
||||
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.assertEqual(channel.code, 401)
|
||||
|
@ -107,7 +110,10 @@ class SynapseHomeserverOpenIDListenerTests(HomeserverTestCase):
|
|||
return
|
||||
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.assertEqual(channel.code, 401)
|
||||
|
|
Loading…
Reference in New Issue