PHP Legacy App
This repository contains a PHP legacy application with home rolled authentication. It's not very secure, any account with a password of 'password' is logged in.
Prerequisites
- A modern PHP
- FusionAuth installed and setup. See https://fusionauth.io/docs/v1/tech/5-minute-setup-guide (do the first six steps).
- Set the callback url to be
http://localhost:8000/oauth-callback.php.
- Set the callback url to be
- This repo
Setup
- Clone this repo and change directory into it.
- Run
composer install. - Update the values in
config.php. - Start a webserver:
php -S 0.0.0.0:8000. This should not be used for production.
To use
- Go to
http://localhost:8000and login. - Any user registered in FusionAuth will work.