rubiconinternational / passportr
Laravel Passport provides OAuth2 server support to Laravel. This also has relationships
Requires
- php: >=5.6.4
- firebase/php-jwt: ~3.0|~4.0
- guzzlehttp/guzzle: ~6.0
- illuminate/auth: ~6.0
- illuminate/console: ~6.0
- illuminate/container: ~6.0
- illuminate/contracts: ~6.0
- illuminate/database: ~6.0
- illuminate/encryption: ~6.0
- illuminate/http: ~6.0
- illuminate/support: ~6.0
- 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: ~6.0
This package is auto-updated.
Last update: 2024-10-29 03:22:57 UTC
README
Installation
composer require rubiconinternational/passportr
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.