/simple-oauth2-client-example

A simple Oauth2 client using the PHP League's Oauth2-Client generic client.

Primary LanguageCSSApache License 2.0Apache-2.0

Simple Oauth2 Test Site

This simple Oauth2 Client was used to test a Laravel Passport Oauth2 server, although it could be used to test any generic Oauth2 service.

Build Pre-Requistes

  • Node JS
  • NPM
  • Composer
  • Webpack

Note that this uses webpack 2.X - and not webpack 1.X!

Optional build requirements:

  • Yarn

To Build

  • Install the node modules with 'npm install' or 'yarn install'
  • Install the composer modules with 'composer install'
  • Run webpack with 'webpack --progress'

Note you will need to make a directory 'cache' which should be writable by the web-server; this serves as Twig's cache directory.

To Use

Setup the relevant environment variables in your '.env' file - follow the example '.env.example'.

Then simply point your browser at 'index.php'.

References

Oauth2:

Modules / Tools used:

Build tools: