mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-09 23:12:10 +05:30
bf55ce1f73
Conflicts: .travis.yml CHANGELOG.md composer.json examples/relational/Storage/AccessTokenStorage.php examples/relational/api.php src/AbstractServer.php src/AuthorizationServer.php src/Entity/AuthCodeEntity.php src/Exception/InvalidGrantException.php src/Exception/InvalidRequestException.php src/Exception/InvalidScopeException.php src/Exception/OAuthException.php src/Exception/ServerErrorException.php src/Exception/UnsupportedGrantTypeException.php src/Exception/UnsupportedResponseTypeException.php src/Grant/AuthCodeGrant.php src/Grant/RefreshTokenGrant.php src/ResourceServer.php src/Storage/AccessTokenInterface.php src/Storage/AuthCodeInterface.php src/Storage/ClientInterface.php src/Storage/RefreshTokenInterface.php src/Storage/ScopeInterface.php src/Storage/SessionInterface.php src/TokenType/Bearer.php src/TokenType/MAC.php tests/unit/Grant/RefreshTokenGrantTest.php tests/unit/TokenType/MacTest.php
72 lines
3.3 KiB
Markdown
72 lines
3.3 KiB
Markdown
# PHP OAuth 2.0 Server
|
|
|
|
[![Latest Version](http://img.shields.io/packagist/v/league/oauth2-server.svg?style=flat-square)](https://github.com/thephpleague/oauth2-server/releases)
|
|
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
|
|
[![Build Status](https://img.shields.io/travis/thephpleague/oauth2-server/master.svg?style=flat-square)](https://travis-ci.org/thephpleague/oauth2-server)
|
|
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/thephpleague/oauth2-server.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/oauth2-server/code-structure)
|
|
[![Quality Score](https://img.shields.io/scrutinizer/g/thephpleague/oauth2-server.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/oauth2-server)
|
|
[![Total Downloads](https://img.shields.io/packagist/dt/league/oauth2-server.svg?style=flat-square)](https://packagist.org/packages/league/oauth2-server)
|
|
|
|
`league/oauth2-server` is a a standards compliant implementation of an [OAuth 2.0](https://tools.ietf.org/html/rfc6749) authorization 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
|
|
* Implicit grant
|
|
* Client credentials grant
|
|
* Resource owner password credentials grant
|
|
* Refresh grant
|
|
|
|
This library was created by Alex Bilbie. Find him on Twitter at [@alexbilbie](https://twitter.com/alexbilbie).
|
|
|
|
## Requirements
|
|
|
|
The following versions of PHP are supported:
|
|
|
|
* PHP 5.5 (>=5.5.9)
|
|
* PHP 5.6
|
|
* PHP 7.0
|
|
* HHVM
|
|
|
|
The `openssl` extension is also required.
|
|
|
|
## Documentation
|
|
|
|
The library documentation can be found at [https://oauth2.thephpleague.com](https://oauth2.thephpleague.com).
|
|
You can contribute to the documentation in the [gh-pages branch](https://github.com/thephpleague/oauth2-server/tree/gh-pages/).
|
|
|
|
## Changelog
|
|
|
|
[See the project releases page](https://github.com/thephpleague/oauth2-server/releases)
|
|
|
|
## Contributing
|
|
|
|
Please see [CONTRIBUTING.md](https://github.com/thephpleague/oauth2-server/blob/master/CONTRIBUTING.md) and [CONDUCT.md](https://github.com/thephpleague/oauth2-server/blob/master/CONDUCT.md) for details.
|
|
|
|
## Integration
|
|
|
|
- [CakePHP 3](https://github.com/uafrica/oauth-server)
|
|
- [Laravel](https://github.com/lucadegasperi/oauth2-server-laravel)
|
|
|
|
## Support
|
|
|
|
Bugs and feature request are tracked on [GitHub](https://github.com/thephpleague/oauth2-server/issues).
|
|
|
|
If you have any questions about OAuth _please_ open a ticket here; please **don't** email the address below.
|
|
|
|
## 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](https://github.com/thephpleague/oauth2-server/blob/master/LICENSE) file for details.
|
|
|
|
## Credits
|
|
|
|
This code is principally developed and maintained by [Alex Bilbie](https://twitter.com/alexbilbie).
|
|
|
|
Special thanks to [all of these awesome contributors](https://github.com/thephpleague/oauth2-server/contributors)
|
|
|
|
The initial code was developed as part of the [Linkey](http://linkey.blogs.lincoln.ac.uk) project which was funded by [JISC](http://jisc.ac.uk) under the Access and Identity Management programme.
|