tobymaxham / zhylon-oauth
Zhylon OAuth2 Provider for Laravel Socialite
Fund package maintenance!
TobyMaxham
Requires
- php: ^7.4 || ^8.0
- ext-json: *
- illuminate/support: ^8.0
- laravel/socialite: ^5
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.4
README
Installation
composer require tobymaxham/zhylon-oauth
Configuration & Basic Usage
As a registered MX-User or Team Member at Zhylon Systems, you can create an OAuth-Clients for your application.
Add configuration to config/services.php
'zhylon' => [ 'client_id' => env('ZHYLON_CLIENT_ID'), 'client_secret' => env('ZHYLON_CLIENT_SECRET'), 'redirect' => env('ZHYLON_REDIRECT_URI'), ],
If you need to configure another Zhylon-Server-Instance, you can also configure this instance by adding the following configuration:
'zhylon' => [ ... 'instance' => env('ZHYLON_INSTANCE_URI', 'https://zhylon.de'), ],
Usage
You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):
return Socialite::driver('zhylon')->redirect();
Returned User fields
id
name
email
profile_photo_url
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.