# wp-oauth plugin for wordpress. This plugin automatically logs in or registers users by authenticating with the CWS Platform via OAuth 2.0. Inspired by hectavex ( Perry Butler @ https://github.com/perrybutler/WP-OAuth ) ## Installing New Composer Packages If you install new composer packages you have to use php7.0 or you may have errors building. ### Installing php7.0 and running composer on linux Getting php7.0 available for download: `sudo add-apt-repository ppa:ondrej/php` Installing php7.0 dependencies: `sudo apt-get install -y php7.0 php7.0-fpm php7.0-cli php7.0-common php7.0-mbstring php7.0-gd php7.0-intl php7.0-xml php7.0-mysql php7.0-mcrypt php7.0-zip` Running composer using php7.0: `php7.0 /usr/local/bin/composer` ## Running Tests This test will fail if you are running a php version higher than 7.0 on your machine. If you are using php7.1 or greater you can use the following command to run phpunit `php7.0 ./vendor/bin/phpunit`