This repository was archived by the owner on Jun 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,18 @@ def registerMocks(regTokenRedirect=False, guest=False):
55
55
("Set-Cookie" , "MSPOK=MSPOK" ))), content_type = "text/html" ,
56
56
body = """<html><body><input name="PPFT" value="ppftvalue"></body></html>""" )
57
57
# Live login: submit username/password to form.
58
+ liveBody = """<html>
59
+ <body>
60
+ <!-- Stage 1: opid -->
61
+ <script type="text/javascript">
62
+ f({urlPost:'https://login.live.com/ppsecure/post.srf?wa=wsignin1.0&opid=66AE4377820CC67F'});
63
+ </script>
64
+ <!-- Stage 2: t -->
65
+ <input id="t" value="tvalue">
66
+ </body>
67
+ </html>"""
58
68
responses .add (responses .POST , "{0}/ppsecure/post.srf" .format (SkypeConnection .API_MSACC ),
59
- status = 200 , content_type = "text/html" ,
60
- body = """<html><body><input id="t" value="tvalue"></body></html>""" )
69
+ status = 200 , content_type = "text/html" , body = liveBody )
61
70
responses .add (responses .POST , "{0}/microsoft" .format (SkypeConnection .API_LOGIN ),
62
71
status = 200 , content_type = "text/html" ,
63
72
body = """<html><body><input name="skypetoken" value="{0}">
You can’t perform that action at this time.
0 commit comments