Skip to content
Open
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
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