def get_provider_config_form(provider_class: str, request_user: User): auth_module = AuthModule(system_settings_reader) try: provider_class_config = auth_module.get_provider( provider_class).get_config().PROVIDER_CONFIG_FORM except StopIteration: return abort(404, 'Provider not found') return make_response(provider_class_config)
def get_provider_config(provider_class: str, request_user: UserModel): auth_module = AuthModule( system_settings_reader.get_all_values_from_section( 'auth', default=AuthModule.__DEFAULT_SETTINGS__)) try: provider_class_config = auth_module.get_provider( provider_class).get_config() except StopIteration: return abort(404, 'Provider not found') return make_response(provider_class_config)