Skip to content

Commit

Permalink
eastlink
Browse files Browse the repository at this point in the history
  • Loading branch information
NitroNine authored May 21, 2022
1 parent af117ad commit ba972da
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cogeco.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

class Cogeco:
"""
@class Cogeco
@class Eastlink
MSO class to handle authorization with the Cogeco MSO
MSO class to handle authorization with the Eastlink MSO
"""

@staticmethod
Expand All @@ -15,14 +15,14 @@ def getID():
@staticmethod
def authorize(streamProvider, username, password):
"""
Perform authorization with Cogeco
Perform authorization with Eastlink
@param streamProvider the stream provider object.
@param username the username to authenticate with
@param password the password to authenticate with
"""

uri = streamProvider.getAuthURI("Cogeco")
uri = streamProvider.getAuthURI("Eastlink")

jar = Cookies.getCookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(jar))#,
Expand Down Expand Up @@ -86,7 +86,7 @@ def postAuthSaml(username, password, saml, relay, url):
print "Unable to find action form"
return None

action = "https://customer-services.cogeco.com" + action.group(1)
action = "https://eastlink.ca" + action.group(1)

return Cogeco.postLogin(username, password, action)

Expand Down

0 comments on commit ba972da

Please sign in to comment.