Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmyers/fuel-oauth2-server
A OAuth2 Server Package for Fuel
https://github.com/dmyers/fuel-oauth2-server
Last synced: 1 day ago
JSON representation
A OAuth2 Server Package for Fuel
- Host: GitHub
- URL: https://github.com/dmyers/fuel-oauth2-server
- Owner: dmyers
- License: mit
- Created: 2012-12-17T07:33:45.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-12-28T23:18:29.000Z (almost 11 years ago)
- Last Synced: 2023-03-14T08:20:23.998Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 156 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Fuel OAuth2 Server Package
A super simple OAuth2 Server package for Fuel.
## About
* Version: 1.0.0
* License: MIT License
* Author: Derek Myers## Installation
### Git Submodule
If you are installing this as a submodule (recommended) in your git repo root, run this command:
$ git submodule add git://github.com/dmyers/fuel-oauth2-server.git fuel/packages/oauth2server
Then you you need to initialize and update the submodule:
$ git submodule update --init --recursive fuel/packages/oauth2server/
### Download
Alternatively you can download it and extract it into `fuel/packages/oauth2server/`.
## Setup
### Run migrations
Run the migrations which will create the table structure in your database.
$ php oil r migrate --packages=oauth2server
## Usage
### Add a client
```php
$client_id = '123'; // min-length is 3 chars!
$client_secret = 'test';
$redirect_uri = 'http://fuelphp.com';$oauth = OAuth2Server::forge();
$oauth->addClient($client_id, $client_secret, $redirect_uri);
```## Updates
In order to keep the package up to date simply run:
$ git submodule update --recursive fuel/packages/oauth2server/