-
Notifications
You must be signed in to change notification settings - Fork 0
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
Coursera Authentication Protocol changes again. #5
Comments
I think I have found a fix - let me test more - and when it is done I can submit a patch. |
The problem is that it seems .NET is not able to parse the cookies returned from the coursera website properly. Adding the |
See also ovatsus/Apps@fb1ea9b |
Thanks Ovatsus. I've got it fixed on my side. |
Out of curiosity, was that the same fix you were also doing, or were you doing something else? |
I am working on a separate code base (my private one) and is mostly following the logic in this project. I am working on the Coursera Viewer app on Windows Store. For the fix, yes, the same webrequest parameter, and the same fix to handle the fact that HTTP only cookies are not stored in cookieContainer and therefore need to parse the set-cookie header and put it back to CookieContainer. |
Session.cs need to change from
var data = string.Format("email={0}&password={1}", Uri.EscapeDataString(email), Uri.EscapeDataString(password));
to
var data = string.Format("email={0}&password={1}&webrequest=true", Uri.EscapeDataString(email), Uri.EscapeDataString(password));
Something else is still not working on GetCourseService returning 401, I can't figure that out. It would be great if you can help.
The text was updated successfully, but these errors were encountered: