Skip to content

TobyMaxham/zhylon-oauth

Repository files navigation

Zhylon OAuth2 Provider for Laravel Socialite

Latest Version on Packagist Tests Total Downloads


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.

About

No description, website, or topics provided.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors

Languages