Add NextStep and pass_login_credentials

This commit is contained in:
Romuald Juchnowicz-Bierbasz
2019-03-12 16:53:57 +01:00
committed by Aliaksei Paulouski
parent e09e443064
commit 9b33397827
2 changed files with 10 additions and 1 deletions

View File

@@ -49,6 +49,7 @@ class Plugin():
# implemented by developer
self._register_method("init_authentication", self.authenticate, sensitive_params=["stored_credentials"])
self._register_method("pass_login_credentials", self.pass_login_credentials)
self._register_method(
"import_owned_games",
self.get_owned_games,
@@ -274,6 +275,9 @@ class Plugin():
"""
raise NotImplementedError()
async def pass_login_credentials(self, step, credentials, cookies):
raise NotImplementedError()
async def get_owned_games(self):
raise NotImplementedError()

View File

@@ -1,5 +1,5 @@
from dataclasses import dataclass
from typing import List, Optional
from typing import List, Dict, Optional
from galaxy.api.consts import LicenseType, LocalGameState, PresenceState
@@ -8,6 +8,11 @@ class Authentication():
user_id: str
user_name: str
@dataclass
class NextStep():
next_step: str
auth_params: Dict[str, str]
@dataclass
class LicenseInfo():
license_type: LicenseType