diff --git a/src/Provider/Azure.php b/src/Provider/Azure.php index 2cd8fa8..78c8b08 100644 --- a/src/Provider/Azure.php +++ b/src/Provider/Azure.php @@ -28,11 +28,25 @@ class Azure extends AbstractProvider * * @var string */ - protected $urlAuthorize = 'https://login.microsoftonline.com'; + protected $urlAuthorize; /** @var string */ protected $urlResourceOwnerDetails = 'https://graph.microsoft.com/v1.0/me'; + /** + * @param array $options + * @param array $collaborators + * @param string $urlAuthorize Base url for authorization. + */ + public function __construct( + array $options = [], + array $collaborators = [], + string $urlAuthorize = 'https://login.microsoftonline.com' + ) { + $this->urlAuthorize = $urlAuthorize; + parent::__construct($options, $collaborators); + } + /** * Get authorization url to begin OAuth flow *