An OAuth2 API built using Bone MVC Framework and the Extraordinary League's OAuth2 Server
An OAuth2 server built using Bone MVC Framework and the League of Extraordinary Package's OAuth2 Server lib.
composer create-project delboy1978uk/oauth2-api
Ensure your vhost is configured to run on a secure SSL port 443 connection.
Create a database with utf8mb4_unicode_ci
Go into the config folder, add db connection credentials for Bone MVC to use.
Also, edit migrant-cfg.php, and put connection details in there too.
make sure vendor/bin is in your $PATH environment variables. Run:
This will create several tables used by the OAuth2 library.
See instructions here: http://oauth2.thephpleague.com/installation/#generating-public-and-private-keys
Copy the keys to the data/keys/ directory.
There is a sample public and private key for quick setup on development machines. Just remove the .sample extension.
You can test your API is available by calling /ping
Instructions will appear once I've built this!
We'll have a CLI tool soon too! Stay tuned!