Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Adds support for SSO authentication #40

Merged
merged 5 commits into from
Feb 15, 2021
Merged

Conversation

Gh0stByte
Copy link
Contributor

@Gh0stByte Gh0stByte commented Feb 12, 2021

Fixes #20 - Allows usage of _zm_page_auth and _zm_kms cookies to bypass sso authentication.
Edit: Fixed typo. Thank @yannip1234

Add option -a (--auth) to use sso authentication cookies.
Interestingly, between two schools, the cookie which authenticates is different(_zm_kms and _km_page_auth.)
Add description for _km_page_auth as well
@Gh0stByte Gh0stByte changed the title Support for SSO authentication Adds support for SSO authentication Feb 12, 2021
@yannip1234
Copy link

yannip1234 commented Feb 12, 2021

Ah, I see. My Zoom link does not have that cookie either. It seems like I have _zm_page_auth.

Edit: Nvm, it seems like your code includes for _zm_page_auth.

@Gh0stByte
Copy link
Contributor Author

@yannip1234 My bad. Typo in the pull req. Thanks for the heads up

@yannip1234
Copy link

@Gh0stByte No problem. I tried downloading your branch and compiling it using the devscripts.sh. I tried it like this: zoomdl -u '[link here]' -a '[cookie here]' and I am getting an unrecognized arguments error. Am I not compiling this thing right?

@Gh0stByte
Copy link
Contributor Author

Gh0stByte commented Feb 12, 2021 via email

@yannip1234
Copy link

@Gh0stByte Any update?

@Gh0stByte
Copy link
Contributor Author

Gh0stByte commented Feb 15, 2021

@Gh0stByte Any update?

Yeah, so when you compiled it, you must not have compiled my branch. I updated the cookie, since it's actually _zm_ssid rather than _zm_page_auth and was able to download without any issue.
Screenshot_5

I've attached the windows exe for you to try, if you don't want to compile it yourself. Let me know if it works for you too.

zoomdl.zip

@Gh0stByte
Copy link
Contributor Author

And just a note, I believe the _zm_kms is for password protected corporate links and _zm_ssid is strictly for SSO. Before I transferred this semester, the domain used the zoom login and the cookie was _zm_kms. This semester, however, it's SSO and the cookie is _zm_ssid. I can still, however, access lectures from last semester with the url and _zm_kms

@Battleman Battleman changed the base branch from master to Beta February 15, 2021 20:54
@Battleman
Copy link
Owner

All good, thanks for the PR. Merging into beta. With 2 PR on cookies, I might merge them into a single command, so I don't want to create a history and changing the commands later.

@Battleman Battleman merged commit 64b9c05 into Battleman:Beta Feb 15, 2021
@Gh0stByte
Copy link
Contributor Author

All good, thanks for the PR. Merging into beta. With 2 PR on cookies, I might merge them into a single command, so I don't want to create a history and changing the commands later.

Glad to help. Yeah totally, I think maybe a generic -c --cookie command may be a better option long-term.

@yannip1234
Copy link

@Gh0stByte thanks for the update. I have downloaded the latest beta branch of Zoomdl. My zoom links do contain _zm_ssid, but I am getting "Advanced meta failed". Trying with _zm_page_auth fails too. Any pointers?

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

Successfully merging this pull request may close these issues.

Unable to download from auth-protected URLs
3 participants