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

Cloud login issue #33

Closed
vrossum opened this issue Feb 2, 2021 · 3 comments
Closed

Cloud login issue #33

vrossum opened this issue Feb 2, 2021 · 3 comments

Comments

@vrossum
Copy link

vrossum commented Feb 2, 2021

Hi
Thanks for this software!
I'm trying to use it as a teacher at Uni. Nottingham in the UK which uses the cloud version.
The problem is that the login does not work, probably because
https://echo360.org.uk/section/82a37ff6-132c-4300-91dd-48eb0a18214d/syllabus
points to
https://login.echo360.org.uk
which points to
https://login.pingone.com/ (a centralized login).

But this prompt does not show, instead a 404 error is thrown.

When using an -existing- browser on
https://echo360.org.uk/section/82a37ff6-132c-4300-91dd-48eb0a18214d/syllabus
the login goes as expected via poingone.com, the 404 is resolved and syllabus has content.

Log attached.

log.txt

@soraxas
Copy link
Owner

soraxas commented Feb 2, 2021

Hi Mark thank you for reporting the issue.

This might be related to #32, which is currently staled without responses.

There are a few things that came into my mind. First thing is that it might be due to the credentials had not been set when accessing the page. Can you try to run it again with the --manual flag to ensure you had been properly logged in before continuing the script, i.e.,

python3 echo360.py  https://echo360.org.uk/section/82a37ff6-132c-4300-91dd-48eb0a18214d/home --debug --firefox --manual

(type continue in the terminal after logging in within the browser)

Secondly, if the above didn't affect the final result, it is strange that accessing https://echo360.org.uk/section/XXXX/syllabus returns 404 even though the login is successful. It might be due to some browser compatibility? If you have chrome installed as well you can try to see if that make any differences. Finally, I'm not sure if it is due to the user agent string set within the script that causes the 404 results. Is that any way that you can successfully access the syllabus within the controlled browser, as opposed to the existing browser?

@vrossum
Copy link
Author

vrossum commented Feb 2, 2021

Thanks, with manual it works!

I realize I was not clear. Without manual, I get the 404 error because I am not presented with a login prompt. Echo.org.uk redirects the login from login.echo.uk to pingone once you give your username. In the manual mode that works ok, but without manual, it fails.

@soraxas
Copy link
Owner

soraxas commented Feb 4, 2021

Thanks @vrossum for reporting back, and I'm glad that it works!

The automatic redirection works by checking for the existence of some special cookies set by the SSO. Perhaps the detection mechanism is not sophisticated enough and had performed a redirection before a successful login. I will make the manual mode default to avoid similar confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants