class MyAuthenticatedPlugin(PluginBase):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.logged_in = False
        self.authenticator = PasswordAuthenticator(self.client, self.pluginRun)
        
    def login(self, username, password):
        if not (username=="username" and password=="password"):
            raise ValueError("Wrong credentials.")
            
    def run(self):
        self.authenticator.authenticate(login_callback=self.login)
        self.logged_in = True
        print("done!")
    
    def add_to_schema(self):
        pass
pod_client = PodClient()

run = PluginRun("", "", "")
account = Account(service="myAccount")
run.add_edge("account", account)
run.status = "started"

pod_client.create(run)
pod_client.create(account)
pod_client.create_edge(run.get_edges("account")[0]);

Simulate entering credentials

set_account_credentials[source]

set_account_credentials(pod_client, run_id, username, password)

simulate_enter_credentials[source]

simulate_enter_credentials(run_id:Param object at 0x7f852d865690>=None, plugin:Param object at 0x7f852aa60310>=None, pod_full_address:Param object at 0x7f852e997f10>='http://localhost:3030', database_key:Param object at 0x7f852e9b2c50>=None, owner_key:Param object at 0x7f852e9c1bd0>=None)