Skip to content

Commit

Permalink
Normalize all getAuthUrl and getTokenUrl methods (#1281)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmichot authored Nov 7, 2024
1 parent 8036d03 commit 76d5130
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ class Provider extends AbstractProvider

protected $scopeSeparator = ' ';

/**
* {@inheritdoc}
*/
protected function getAuthUrl($state)
protected function getAuthUrl($state): string
{
return
$this->buildAuthUrlFromBase(
Expand All @@ -60,11 +57,7 @@ protected function getAuthUrl($state)
);
}

/**
* {@inheritdoc}
* https://developer.microsoft.com/en-us/graph/docs/concepts/use_the_api.
*/
protected function getTokenUrl()
protected function getTokenUrl(): string
{
return sprintf('https://login.microsoftonline.com/%s/oauth2/v2.0/token', $this->getConfig('tenant', 'common'));
}
Expand Down

0 comments on commit 76d5130

Please sign in to comment.