rubiconinternational / passportrs
Laravel Passport provides OAuth2 server support to Laravel.
Requires
- php: >=5.6.4
- firebase/php-jwt: ~3.0|~4.0
- guzzlehttp/guzzle: ~6.0
- illuminate/auth: ~5.4
- illuminate/console: ~5.4
- illuminate/container: ~5.4
- illuminate/contracts: ~5.4
- illuminate/database: ~5.4
- illuminate/encryption: ~5.4
- illuminate/http: ~5.4
- illuminate/support: ~5.4
- league/oauth2-server: ^6.0
- phpseclib/phpseclib: ^2.0
- symfony/psr-http-message-bridge: ~1.0
- zendframework/zend-diactoros: ~1.0
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ~5.0
This package is auto-updated.
Last update: 2021-03-30 21:11:56 UTC
README
Installation
composer require rubiconinternational/passportrs
File Modifications Made for Relationships Support
- File Modified:
2016_06_01_000002_create_oauth_access_tokens_table.php
Modification Description: Add incremental primary key to table. Lines 17-18
**Modification Reason:**
For other projects middlware to associate other relational data and better data structure.
-
File Modified:
PersonalAccessTokenController.php
Modification Description: Updated store() method to build token Relationship before returning token. Lines 6, and 67-79
Modification Reason: Create token relationship to carry additional data and join
oauth_access_tokens
table torelationship
table. -
File Modified:
PersonalAccessTokens.vue
Modification Description: Added form fields, updated data() fields and store() function to handle fields, and added minor styling. Lines 9-19, 51-55, 76-87, 149-174, 254-256, and 327-329
api_client_id api_application_id api_token_type
Modification Description: For relational data.
-
Add custom logging call. This will not work on other systems.
Introduction
Laravel Passport is an OAuth2 server and API authentication package that is simple and enjoyable to use.
Official Documentation
Documentation for Passport can be found on the Laravel website.
License
Laravel Passport is open-sourced software licensed under the MIT license.