Skip to content

Commit

Permalink
Included the ability to inject the authorization URL through the cons…
Browse files Browse the repository at this point in the history
…tructor.
  • Loading branch information
jefersonralmeida committed Mar 8, 2024
1 parent 025c9ca commit 9eeaa39
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/Provider/Azure.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,22 @@ 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
*
Expand Down

0 comments on commit 9eeaa39

Please sign in to comment.