You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-9Lines changed: 4 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,13 +17,11 @@ This is a wrapper script around openconnect to help with authentication for the
17
17
This script can easily be installed with pip or [pipx](https://pipx.pypa.io/stable/) with the following commands:
18
18
19
19
```console
20
-
$ pip3 install jmu-openconnect
21
-
$ # OR
22
20
$ pipx install jmu-openconnect
21
+
$ # OR
22
+
$ pip3 install jmu-openconnect
23
23
```
24
24
25
-
This script can also be used as a standalone script by downloading the `main.py` file and ensuring that selenium is installed with `pip3 install selenium`, or by cloning the repository and running `poetry install`.
26
-
27
25
## Usage
28
26
Once the script is installed, you can run the following command in your terminal:
29
27
@@ -37,7 +35,7 @@ You can also specify a username and password to be automatically typed in, howev
37
35
$ jmu-openconnect -u <EID> -p <PASSWORD>
38
36
```
39
37
40
-
You can alternatively specify the `--prompt-password` option instead of using `-p`, which will prompt the user for a password without echoing, much like sudo. This is more secure as your password won't be saved in your command line history.
38
+
You can alternatively specify the `--prompt-password`(or `-P`) option instead of using `-p`, which will prompt the user for a password without echoing, much like sudo. This is more secure as your password won't be saved in your command line history.
41
39
42
40
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`.
43
41
@@ -52,12 +50,9 @@ To see all of the available options, run `jmu-openconnect --help`.
52
50
## Dependencies
53
51
This script just requires openconnect and [selenium](https://pypi.org/project/selenium/). If you are having problems, check the [Selenium Python Documentation](https://selenium-python.readthedocs.io/installation.html#drivers0).
54
52
55
-
## Why is this all in one script?
56
-
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.
57
-
58
53
## DSID Cookie was not found
59
54
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:
60
55
61
56

62
57
63
-
If this is the case, just select the box to remove that sign in and retry the script after verifying that you are signed out of all browser sessions. If this is not the problem, try running the script with `jmu-openconnect --debug-auth-error` to see the error for a longer period of time.
58
+
If this is the case, just select the box to remove that sign in and press "Close Selected Sessions and Log in". After this, you will need to press the log out button in the upper right corner of the VPN website, and then you can retry the script. If this is not the problem, try running the script with `jmu-openconnect --debug-auth-error` to see the error for a longer period of time.
0 commit comments