|
1 | 1 | # JMU OpenConnect |
2 | 2 |
|
| 3 | +<p align="center"> |
| 4 | + <a href="https://badge.fury.io/py/jmu-openconnect"><img alt="PyPI" src="https://img.shields.io/pypi/v/jmu-openconnect" /></a> |
| 5 | + <a href="https://pepy.tech/project/jmu-openconnect"><img alt="Downloads" src="https://pepy.tech/badge/jmu-openconnect" /></a> |
| 6 | + <a href="https://github.com/TabulateJarl8/jmu-openconnect/blob/master/LICENSE"><img alt="License" src="https://img.shields.io/pypi/l/jmu-openconnect.svg" /></a> |
| 7 | + <a href="https://github.com/TabulateJarl8/vapor/graphs/commit-activity"><img alt="Maintenance" src="https://img.shields.io/badge/Maintained%3F-yes-green.svg" /></a> |
| 8 | + <a href="https://github.com/TabulateJarl8/vapor/issues/"><img alt="GitHub Issues" src="https://img.shields.io/github/issues/TabulateJarl8/vapor.svg" /></a> |
| 9 | + <a href="https://github.com/TabulateJarl8"><img alt="GitHub followers" src="https://img.shields.io/github/followers/TabulateJarl8?style=social" /></a> |
| 10 | + <br> |
| 11 | + <a href="https://ko-fi.com/L4L3L7IO2"><img alt="Kofi Badge" src="https://ko-fi.com/img/githubbutton_sm.svg" /></a> |
| 12 | +</p> |
| 13 | + |
3 | 14 | This is a wrapper script around openconnect to help with authentication for the JMU VPN on Linux. Openconnect used to work fine until Ivanti purchased Pulse Secure, and then that broke something. This script opens up a web browser to allow the user to authenticate with Duo, and then grabs the DSID cookie to use for openconnect authentication. |
4 | 15 |
|
5 | 16 | ## Installation |
@@ -31,14 +42,17 @@ You can alternatively specify the `--prompt-password` option instead of using `- |
31 | 42 | JMU OpenConnect defaults to using firefox, but you can easily change which browser you're using by specifying `--browser`, which accepts `firefox`, `chrome`, or `edge`. |
32 | 43 |
|
33 | 44 | ```console |
34 | | -jmu-openconnect --browser chrome |
| 45 | +$ jmu-openconnect --browser chrome |
35 | 46 | ``` |
36 | 47 |
|
37 | 48 | To see all of the available options, run `jmu-openconnect --help`. |
38 | 49 |
|
39 | 50 | ## Dependencies |
40 | 51 | This script just requires openconnect, [selenium](https://pypi.org/project/selenium/), and a webdriver. On my machine, it seems that the webdrivers are automatically installed if you have Firefox or Chromium installed, so you probably don't need to worry about this. If you are having problems, check the [Selenium Python Documentation](https://selenium-python.readthedocs.io/installation.html#drivers0). |
41 | 52 |
|
| 53 | +## Why is this all in one script? |
| 54 | +I heavily considered splitting this up into multiple files, but I really wanted to preserve the ability to just have this script up on a website somewhere where people could just download this script, install selenium, and run it with Python. This may change in the future but this is what I've gone with for now. |
| 55 | + |
42 | 56 | ## DSID Cookie was not found |
43 | 57 | If you get the error that the DSID cookie was not found, then you may be logged on in multiple places at once. Navigate to https://vpn.jmu.edu and after signing in, you should see a screen like this: |
44 | 58 |
|
|
0 commit comments