Skip to content

Commit

Permalink
Merge pull request #6 from kkasznicki/main
Browse files Browse the repository at this point in the history
Inject the Resource Owner Details URL through the constructor
  • Loading branch information
greew authored Oct 15, 2024
2 parents 38192e5 + dc4fc9a commit beab4bb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Provider/Azure.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit beab4bb

Please sign in to comment.