Skip to content

Instantly share code, notes, and snippets.

@DragonBe
DragonBe / azure-ad-connect.php
Last active December 5, 2024 12:38
A simple PoC to access Azure AD for authentication
<?php
declare(strict_types=1);
use League\OAuth2\Client\Provider\GenericProvider;
use Microsoft\Graph\Graph;
use Microsoft\Graph\Model;
const APP_SESS_ID = 'AZPHPSID';
const OAUTH_APP_ID = '';