atrauzzi/oauth2-server

This package is abandoned and no longer maintained. No replacement package was suggested.

An Oauth2 server library designed to be easy to integrate.

dev-master 2016-01-14 13:02 UTC

This package is not auto-updated.

Last update: 2016-09-28 18:24:28 UTC


README

This is a refactoring of league/oauth2-server mostly to restructure it into something that is easier to understand and easier integrate with.

This library does not assume any framework and is designed to generate data that you hand back to the client via your preferred method to control requests.

Please note that this library does take a dependency on Symfony's HTTP foundation library to consistently model request data and really, the more popular PHP frameworks tend to be based on it.

Usage

Your main entrypoint for the library is the AuthorizationService::doFlow method. It's very easy to build an instance of this class, whether manually or via your preferred dependency injection container. Instances of the configuration class have a fluent interface that should allow you to quickly and easily piece together your desired setup.

Once you have an instance of AuthorizationService, call it from inside your controller or equivalent to get an array representing the result of the applicable oauth grant type.

Meta

Documentation is a WIP, please contact me with any requests for expanded details.

License

Oauth2 Server is free for anyone to use and modify. I accept no responsibility for what happens as a result of using this library and make no guarantees as to it's production readiness or availability.