PhantomJS oAuth website watchdog with Slack and CloudWatch features
This system is a watchdog for oAuth authentication that will report back on the command line, in Slack and through CloudFront.
Copy the two configuration files and edit accordingly:
$ cp config.js.template config.js
$ cp watchdog-run.ini.template watchdog-run.ini
Create a log directory that will be used to hold all log files. This log directory will configured in watchdog-run.ini:
Here are some of the values you'll need to set in config.js:
-
USERNAME and PASSWORD - these will be used to log into the site
-
start_url - this is where the system will first go, and should forward to the authentication through oAuth
-
login values - the site is checked for the correct URL, and you'll need to get the IDs in the form for the login username, password and button
-
ending values - this should be set to the URL of the ending page
Here are some of the values to be set in watchdog-run.ini:
-
reporting URL - a protected site with the reports created by this program
-
location of PhantomJS (download a version of PhantomJS)
-
optional Slack configuration
-
optional CloudWatch configuration
./watchdog-run.py