Skip to content

Commit

Permalink
Fixed context options to allow logging in with username and password …
Browse files Browse the repository at this point in the history
…and updated example with login for username
  • Loading branch information
marty0678 committed May 28, 2022
1 parent dbaa06f commit 2339c89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions example.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
# Json login file must be placed in the root be structured like:
# {
# "log_in_name": {
# "username": "username",
# "password": "password",
# "deviceName": device_name:str,
# "gsfId" : id_number:int,
# "authSubToken" : token:str
Expand Down Expand Up @@ -34,8 +36,10 @@ def resource_path(relative_path):

print("Logging in...")
server.login(
gsfId=current_log_in['gsfId'],
authSubToken=current_log_in['authSubToken']
email=current_log_in['username'],
password=current_log_in['password'],
# gsfId=current_log_in['gsfId'],
# authSubToken=current_log_in['authSubToken']
)
print("Complete!")

Expand Down
2 changes: 1 addition & 1 deletion gpapi/googleplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def init_poolmanager(self, *args, **kwargs):
context = SSLContext()
context.set_ciphers(ssl_.DEFAULT_CIPHERS)
context.verify_mode = ssl.CERT_REQUIRED
context.options &= ~ssl_.OP_NO_TICKET
context.options &= ~0x4000
self.poolmanager = PoolManager(*args, ssl_context=context, **kwargs)


Expand Down

0 comments on commit 2339c89

Please sign in to comment.