Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebAuth class fixed. New api used. Email/guard code auth added. #454

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@
.coverage
*.swp
*.bin
*.mafile
13 changes: 7 additions & 6 deletions steam/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
from steam.utils import ip4_from_int, ip4_to_int
from steam.utils.proto import proto_fill_from_dict


# TODO: remove py2 support.
if six.PY2:
_cli_input = raw_input
else:
Expand All @@ -42,14 +44,13 @@

class SteamClient(CMClient, BuiltinBase):
EVENT_LOGGED_ON = 'logged_on'
"""After successful login
"""
"""After successful login"""

EVENT_AUTH_CODE_REQUIRED = 'auth_code_required'
"""When either email or 2FA code is needed for login
"""
"""When either email or 2FA code is needed for login"""

EVENT_NEW_LOGIN_KEY = 'new_login_key'
"""After a new login key is accepted
"""
"""After a new login key is accepted"""

_LOG = logging.getLogger("SteamClient")
_reconnect_backoff_c = 0
Expand Down
2 changes: 2 additions & 0 deletions steam/client/builtins/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def __init__(self, *args, **kwargs):
def __handle_disconnect(self):
self._web_session = None

# TODO: DEPRECATED. This function not work anymore.
#This function must be rewritten to use WebAuth
def get_web_session_cookies(self):
"""Get web authentication cookies via WebAPI's ``AuthenticateUser``

Expand Down
Loading