Package

Socialiteproviders Microsoft Graph

Microsoft Graph OAuth2 Provider for Laravel Socialite

Package

socialiteproviders/microsoft-graph

View on GitHub →

Graph

composer require socialiteproviders/microsoft-graph

Installation & Basic Usage

Please see the Base Installation Guide, then follow the provider specific instructions below.

Add configuration to config/services.php

'graph' => [    
  'client_id' => env('GRAPH_CLIENT_ID'),  
  'client_secret' => env('GRAPH_CLIENT_SECRET'),  
  'redirect' => env('GRAPH_REDIRECT_URI') 
],

Add provider event listener

Configure the package's listener to listen for SocialiteWasCalled events.

Add the event to your listen[] array in app/Providers/EventServiceProvider. See the Base Installation Guide for detailed instructions.

protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        \SocialiteProviders\Graph\GraphExtendSocialite::class.'@handle',
    ],
];

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('graph')->redirect();

Socialiteproviders Microsoft Graph Related Articles

Laravel Microsoft Graph image

Laravel Microsoft Graph

Read article
Install Microsoft SQL Drivers for PHP 7 in Docker image

Install Microsoft SQL Drivers for PHP 7 in Docker

Read article
Laravel Facebook Graph API image

Laravel Facebook Graph API

Read article
Generate awesome open graph images with Open Graphy image

Generate awesome open graph images with Open Graphy

Read article
Microsoft Announces that it will drop official support of PHP on Windows image

Microsoft Announces that it will drop official support of PHP on Windows

Read article
Microsoft Clarity Integration for Laravel image

Microsoft Clarity Integration for Laravel

Read article

NativePHP

The fastest way to build fully native apps for any platform (with AI or not)

NativePHP

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm

Let your users buy domains without leaving your app

If your Laravel app gives users a site, a storefront, or a workspace, they’ll eventually want their own domain. The name.com API lets them search, register, and connect one without leaving your product. It’s a clean REST API, so Laravel’s HTTP client is all you need.

Let your users buy domains without leaving your app

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum