mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-03 00:16:05 -04:00
Use direct references for configuration variables (part 5). (#10897)
This commit is contained in:
parent
85551b7a85
commit
bb7fdd821b
48 changed files with 128 additions and 113 deletions
|
@ -50,7 +50,7 @@ def build_synapse_client_resource_tree(hs: "HomeServer") -> Mapping[str, Resourc
|
|||
|
||||
resources["/_synapse/client/oidc"] = OIDCResource(hs)
|
||||
|
||||
if hs.config.saml2_enabled:
|
||||
if hs.config.saml2.saml2_enabled:
|
||||
from synapse.rest.synapse.client.saml2 import SAML2Resource
|
||||
|
||||
res = SAML2Resource(hs)
|
||||
|
|
|
@ -30,7 +30,7 @@ class SAML2MetadataResource(Resource):
|
|||
|
||||
def __init__(self, hs: "HomeServer"):
|
||||
Resource.__init__(self)
|
||||
self.sp_config = hs.config.saml2_sp_config
|
||||
self.sp_config = hs.config.saml2.saml2_sp_config
|
||||
|
||||
def render_GET(self, request: Request) -> bytes:
|
||||
metadata_xml = saml2.metadata.create_metadata_string(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue