2017 © Pedro Peláez
 

library oauth2-api

An OAuth2 API built using Bone MVC Framework and the Extraordinary League's OAuth2 Server

image

delboy1978uk/oauth2-api

An OAuth2 API built using Bone MVC Framework and the Extraordinary League's OAuth2 Server

  • Thursday, July 19, 2018
  • by delboy1978uk
  • Repository
  • 2 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

OAuth2 API

Build Status Code Coverage Scrutinizer Code Quality
, (*1)

An OAuth2 server built using Bone MVC Framework and the League of Extraordinary Package's OAuth2 Server lib., (*2)

Installation

composer create-project delboy1978uk/oauth2-api

Apache setup

Ensure your vhost is configured to run on a secure SSL port 443 connection., (*3)

Configure database credentials

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.
, (*4)

Run database migrations

make sure vendor/bin is in your $PATH environment variables. Run:, (*5)

migrant migrate

This will create several tables used by the OAuth2 library., (*6)

Set up Private & Public keys

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., (*7)

Test API Endpoint

You can test your API is available by calling /ping, (*8)

{"pong":"2017-03-21 13:44:49"}

Registering a Client

Instructions will appear once I've built this!, (*9)

Command Line Tool

We'll have a CLI tool soon too! Stay tuned!, (*10)

The Versions