Skip to content

Instantly share code, notes, and snippets.

@Deracination
Deracination / azure-ad-connect.php
Created January 12, 2023 00:23 — forked from DragonBe/azure-ad-connect.php
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 = '';