Rename saml_mapping_provider to saml_mapping_provider_mozilla

master
Andrew Morgan 5 years ago
parent 2c913fcf94
commit 15cc82e5e1

@ -20,7 +20,7 @@ Add the following in your Synapse config:
```yaml ```yaml
saml2_config: saml2_config:
user_mapping_provider: user_mapping_provider:
module: "saml_mapping_provider.MozillaSamlMappingProvider" module: "saml_mapping_provider_mozilla.SamlMappingProvider"
config: config:
mxid_source_attribute: "uid" mxid_source_attribute: "uid"
``` ```

@ -27,7 +27,7 @@ class SamlConfig(object):
mxid_source_attribute = attr.ib() mxid_source_attribute = attr.ib()
class MozillaSamlMappingProvider(object): class SamlMappingProvider(object):
def __init__(self, parsed_config: SamlConfig): def __init__(self, parsed_config: SamlConfig):
"""A Mozilla-flavoured, Synapse user mapping provider """A Mozilla-flavoured, Synapse user mapping provider

@ -41,8 +41,8 @@ def exec_file(path_segments, name):
setup( setup(
name="matrix-synapse-saml-mozilla", name="matrix-synapse-saml-mozilla",
version=exec_file(("saml_mapping_provider.py",), "__version__"), version=exec_file(("saml_mapping_provider_mozilla.py",), "__version__"),
py_modules=["matrix-synapse-saml-moz"], py_modules=["matrix-synapse-saml-mozilla"],
description="An Mozilla-flavoured SAML MXID mapper for Synapse", description="An Mozilla-flavoured SAML MXID mapper for Synapse",
install_requires=[ install_requires=[
"attr>=0.3.1", "attr>=0.3.1",

@ -1,4 +1,4 @@
from saml_mapping_provider import SamlMappingProvider from saml_mapping_provider_mozilla import SamlMappingProvider
def create_mapping_provider() -> SamlMappingProvider: def create_mapping_provider() -> SamlMappingProvider:

Loading…
Cancel
Save