Download the PHP package matt-czerner/oauth2-bundle without Composer
On this page you can find all versions of the php package matt-czerner/oauth2-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download matt-czerner/oauth2-bundle
More information about matt-czerner/oauth2-bundle
Files in matt-czerner/oauth2-bundle
Package oauth2-bundle
Short Description Symfony bundle which provides OAuth 2.0 authorization/resource server capabilities.
License MIT
Homepage https://www.trikoder.net/
Informations about the package oauth2-bundle
Trikoder OAuth 2 Bundle
Symfony bundle which provides OAuth 2.0 authorization/resource server capabilities. The authorization and resource server actors are implemented using the thephpleague/oauth2-server library.
Important notes
This bundle provides the "glue" between thephpleague/oauth2-server library and Symfony. It implements thephpleague/oauth2-server library in a way specified by its official documentation. For implementation into Symfony project, please see Symfony security documentation.
Status
This package is currently in the active development.
Features
- API endpoint for client authorization and token issuing
- Configurable client and token persistance (includes Doctrine support)
- Integration with Symfony's Security layer
Requirements
- PHP 7.2 or greater
- Symfony 4.4 or Symfony 5.x
Installation
-
Require the bundle and a PSR 7/17 implementation with Composer:
If your project is managed using Symfony Flex, the rest of the steps are not required. Just follow the post-installation instructions instead! :tada:
NOTE: This bundle requires a PSR 7/17 implementation to operate. We recommend that you use nyholm/psr7. Check out this document if you wish to use a different implementation.
-
Create the bundle configuration file under
config/packages/trikoder_oauth2.yaml
. Here is a reference configuration file: -
Enable the bundle in
config/bundles.php
by adding it to the array: -
Update the database so bundle entities can be persisted using Doctrine:
- Import the routes inside your
config/routes.yaml
file:
You can verify that everything is working by issuing a POST
request to the /token
endpoint.
❮ NOTE ❯ It is recommended to control the access to the authorization endpoint
so that only logged in users can approve authorization requests.
You should review your security.yml
file. Here is a sample configuration:
Configuration
- Basic setup
- Controlling token scopes
- Password grant handling
- Implementing custom grant type
Contributing
Please see CONTRIBUTING for details.
Versioning
This project adheres to Semantic Versioning 2.0.0. Randomly breaking public APIs is not an option.
However, starting with version 4, we only promise to follow SemVer on structural elements marked with the @api tag.
Changes
All the package releases are recorded in the CHANGELOG file.
Reporting issues
Use the issue tracker to report any issues you might have.
License
See the LICENSE file for license rights and limitations (MIT).
All versions of oauth2-bundle with dependencies
doctrine/doctrine-bundle Version ^1.8|^2.0
doctrine/orm Version ^2.7
league/oauth2-server Version 8.3.5
psr/http-factory Version ^1.0
sensio/framework-extra-bundle Version ^5.5|^6.2
symfony/framework-bundle Version ^4.4|^5.0|^6.0
symfony/psr-http-message-bridge Version ^2.0
symfony/security-bundle Version ^4.4|^5.0|^6.0