-
Notifications
You must be signed in to change notification settings - Fork 42
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
requests.exceptions.MissingSchema: Invalid URL '/login/cert': No schema supplied. #12
Comments
Okay, I think I've made some progress in understanding exactly where things go wrong. When the script gets to the "okta redirect request," it finds the url https://xxxxx.okta.com/login/sessionCookieRedirect, which I gather is correct. After posting to that url, the script seems to be expecting something that will contain the saml-username and the prelogin-cookie. However, by pasting that url into a browser, I can see that it's just the page that either sends the push to the okta app on my phone or requests the sms code. (Apparently, I can also request my tech support to set up Yubikey for me -- I have no idea whether or not that might be easier.) If I click on the send push button, it takes me to a "login successful" page. The source for that page clearly has the saml-username and the prelogin-cookie. I'm a bit stuck here. It seems like I need to make the script provide some input to activate the button and send the push to my phone. |
From output You provided:
I can see that it fails here:
Meaning that it parsed HTML response from I am not sure how to continue this, as I haven't seen such behavior, without some test account or full debug logs. |
Yes, this is what I'm seeing! There's an "intermediate" web page where it asks me to click a button to send the push to my phone. If I do that interactively, it makes it to a page like you describe, with something like I'm at work but as soon as I get home I will attach the full debug logs. Let me know what else I can do to help. Thanks! |
@arthepsy, I think you already know this, but you should be using |
@dlenski yes, I'm aware, but I don't think that this will help, as I'm not sure what |
Is it possible that (I've seen a couple non-GP VPNs that use a similar step, where only one request in the authentication process actually needs the client cert…) |
Ok, here's the command line output and the full debug output is: Thanks!
|
@mawxcarroll this seems like a different issue, as error is |
I'm wondering why it got further than |
Ah! Sorry, yes, I had hard-coded the correct saml-username and was trying to get it to move a bit further in the process. Here's the command line output from the unmodified code with the full debug output here:
|
@mawxcarroll I reviewed Your debug.txt, compared with mine. Commited a patch, that does redirection dance, until it gets |
@arthepsy I tried the new version, and it definitely yields a different error:
|
I'm getting the same error as @mawxcarroll . This is the last request:
|
This appears to be my org's login page, so I think the redirect is a red herring, something's not working in the previous requests. |
I'm just trying out your code for the first time and first of all -- thank you! It's awesome that people are working on this. My school just switched to Pan-GP with okta and I haven't been able to access the VPN from my Ubuntu system.
I'm hoping that I'm just doing something simple wrong. I used a QR reader to get my totp secret and I think I've set up the config file correctly:
I get the following error when I run:
Any advice would be helpful!
Thanks!
Cheers,
tom
The text was updated successfully, but these errors were encountered: