Skip to content

Instantly share code, notes, and snippets.

@DragonBe
DragonBe / azure-ad-connect.php
Last active November 20, 2023 11:24
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 = '';