You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
539 B
Python
16 lines
539 B
Python
from typing import Tuple
|
|
|
|
from matrix_synapse_saml_mozilla import SamlMappingProvider
|
|
|
|
|
|
def create_mapping_provider() -> Tuple[SamlMappingProvider, dict]:
|
|
# Default configuration
|
|
config_dict = {}
|
|
|
|
# Convert the config dictionary to a SamlMappingProvider.SamlConfig object
|
|
config = SamlMappingProvider.parse_config(config_dict)
|
|
|
|
# Create a new instance of the provider with the specified config
|
|
# Return the config dict as well for other test methods to use
|
|
return SamlMappingProvider(config, None), config_dict
|