ademes / oauth2-server
A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.
Requires
- php: >=5.4.0
- league/event: ~2.1
- symfony/http-foundation: ~2.4
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: 4.3.*
Replaces
- league/oauth2server: *
- lncd/oauth2: *
- dev-master
- 5.x-dev
- dev-develop / 5.0.x-dev
- 4.1.3
- 4.1.2
- 4.1.1
- 4.1.0
- 4.0.5
- 4.0.4
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 3.2.4
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2
- 3.1.2
- 3.1.1
- 3.1
- 3.0.1
- 3.0
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.4.2
- 0.4.1
- 0.4
- 0.3.5
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2
- dev-release/5.4.0
This package is not auto-updated.
Last update: 2024-12-21 19:58:07 UTC
README
Adapted from official oauth2-server
added new grant type social_network
PHP OAuth 2.0 Server by @alexbilbie
A standards compliant OAuth 2.0 authorization server and resource server written in PHP which makes working with OAuth 2.0 trivial. You can easily configure an OAuth 2.0 server to protect your API with access tokens, or allow clients to request new access tokens and refresh them.
It supports out of the box the following grants:
- Authorization code grant
- Client credentials grant
- Resource owner password credentials grant
- Refresh grant
You can also define your own grants.
In addition it supports the following token types:
- Bearer tokens
- MAC tokens
- JSON web tokens (coming soon)
You can also create you own tokens.
Requirements
The following versions of PHP are supported:
- PHP 5.4
- PHP 5.5
- PHP 5.6
- HHVM
Documentation
This library has full documentation, powered by Jekyll.
Contribute to this documentation in the gh-pages branch.
Changelog
Contributing
Please see CONTRIBUTING for details.
Integration
Support
Bugs and feature request are tracked on GitHub
Security
If you discover any security related issues, please email hello@alexbilbie.com instead of using the issue tracker.
License
This package is released under the MIT License. See the bundled LICENSE file for details.
Credits
This code is principally developed and maintained by Alex Bilbie.
Special thanks to:
The initial code was developed as part of the Linkey project which was funded by JISC under the Access and Identity Management programme.