From dc4fc9a5c9424e6d30e8d7680de22770b649efd7 Mon Sep 17 00:00:00 2001 From: Karol Kasznicki Date: Wed, 10 Jul 2024 17:55:29 +0200 Subject: [PATCH] Added ability to inject the Resource Owner Details URL through the constructor, which is required to use library with Microsoft 365 GCC High: https://learn.microsoft.com/en-us/microsoft-365/enterprise/microsoft-365-u-s-government-gcc-high-endpoints?view=o365-worldwide --- src/Provider/Azure.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Provider/Azure.php b/src/Provider/Azure.php index 78c8b08..ef17112 100644 --- a/src/Provider/Azure.php +++ b/src/Provider/Azure.php @@ -31,19 +31,22 @@ class Azure extends AbstractProvider protected $urlAuthorize; /** @var string */ - protected $urlResourceOwnerDetails = 'https://graph.microsoft.com/v1.0/me'; + protected $urlResourceOwnerDetails; /** * @param array $options * @param array $collaborators * @param string $urlAuthorize Base url for authorization. + * @param string $urlResourceOwnerDetails */ public function __construct( array $options = [], array $collaborators = [], - string $urlAuthorize = 'https://login.microsoftonline.com' + string $urlAuthorize = 'https://login.microsoftonline.com', + string $urlResourceOwnerDetails = 'https://graph.microsoft.com/v1.0/me' ) { $this->urlAuthorize = $urlAuthorize; + $this->urlResourceOwnerDetails = $urlResourceOwnerDetails; parent::__construct($options, $collaborators); }