Skip to content
Microsoft Graph Provider for Laravel Socialite
Branch: master
Clone or download
Latest commit 4f2aaa2 Sep 5, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial Sep 4, 2019 Update readme Sep 5, 2019
composer.json Add backwards compatibility to Laravel 5.8 Sep 4, 2019

Microsoft Graph Provider for Laravel Socialite

Latest Stable Version Total Downloads License

This package extends Laravel Socialite to give a convenient method of authenticating via the Microsoft Graph OAuth2 provider.

Support for Laravel 6 + 5.8 and Socialite 4, using PHP 7.1.3+.


You can install the package via composer:

composer require harrygulliford/socialite-microsoft-graph

Then add the service to your config/services.php file:

'microsoft-graph' => [
    'client_id' => env('MS_GRAPH_KEY'),
    'client_secret' => env('MS_GRAPH_SECRET'),
    'tenant_id' => env('MS_GRAPH_TENANT_ID', 'common'),
    'redirect' => env('MS_GRAPH_REDIRECT_URL'),


You are able to use the provider in the same manner as a regular Socialite provider.

return Socialite::with('microsoft-graph')->redirect();

For more information, please refer to the Laravel Socialite documentation.


The MIT License (MIT). Please see the license file for more information.

You can’t perform that action at this time.