def __init__(self, config=None): super().__init__(config) if config: self.sign_on_mode = "AUTO_LOGIN" if "credentials" in config: if isinstance( config["credentials"], scheme_application_credentials. SchemeApplicationCredentials): self.credentials = config["credentials"] elif config["credentials"] is not None: self.credentials = scheme_application_credentials.SchemeApplicationCredentials( config["credentials"]) else: self.credentials = None else: self.credentials = None if "settings" in config: if isinstance( config["settings"], auto_login_application_settings. AutoLoginApplicationSettings): self.settings = config["settings"] elif config["settings"] is not None: self.settings = auto_login_application_settings.AutoLoginApplicationSettings( config["settings"]) else: self.settings = None else: self.settings = None else: self.credentials = None self.settings = None
def __init__(self, config=None): super().__init__(config) if config: self.sign_on_mode = ApplicationSignOnMode("SECURE_PASSWORD_STORE") if "credentials" in config: if isinstance( config["credentials"], scheme_application_credentials. SchemeApplicationCredentials): self.credentials = config["credentials"] elif config["credentials"] is not None: self.credentials = scheme_application_credentials.SchemeApplicationCredentials( config["credentials"]) else: self.credentials = None else: self.credentials = None self.name = config["name"]\ if "name" in config else "template_sps" if "settings" in config: if isinstance( config["settings"], secure_password_store_application_settings. SecurePasswordStoreApplicationSettings): self.settings = config["settings"] elif config["settings"] is not None: self.settings = secure_password_store_application_settings.SecurePasswordStoreApplicationSettings( config["settings"]) else: self.settings = None else: self.settings = None else: self.credentials = None self.name = "template_sps" self.settings = None
def __init__(self, config=None): super().__init__(config) if config: self.sign_on_mode = ApplicationSignOnMode("BASIC_AUTH") if "credentials" in config: if isinstance( config["credentials"], scheme_application_credentials. SchemeApplicationCredentials): self.credentials = config["credentials"] elif config["credentials"] is not None: self.credentials = scheme_application_credentials.SchemeApplicationCredentials( config["credentials"]) else: self.credentials = None else: self.credentials = None self.name = config["name"]\ if "name" in config else "template_basic_auth" if "settings" in config: if isinstance( config["settings"], basic_application_settings.BasicApplicationSettings): self.settings = config["settings"] elif config["settings"] is not None: self.settings = basic_application_settings.BasicApplicationSettings( config["settings"]) else: self.settings = None else: self.settings = None else: self.credentials = None self.name = "template_basic_auth" self.settings = None
def __init__(self, config=None): super().__init__(config) if config: self.sign_on_mode = "BROWSER_PLUGIN" if "credentials" in config: if isinstance( config["credentials"], scheme_application_credentials. SchemeApplicationCredentials): self.credentials = config["credentials"] elif config["credentials"] is not None: self.credentials = scheme_application_credentials.SchemeApplicationCredentials( config["credentials"]) else: self.credentials = None else: self.credentials = None else: self.credentials = None