From 9b23e02ff711de42e513aa55f768a4f1c67c0e41 Mon Sep 17 00:00:00 2001 From: atymic Date: Fri, 8 Oct 2021 09:21:59 +1100 Subject: [PATCH] fix: scope sep azure (#750) --- Provider.php | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/Provider.php b/Provider.php index ae9e1cb..c7d2ea1 100755 --- a/Provider.php +++ b/Provider.php @@ -20,6 +20,11 @@ class Provider extends AbstractProvider */ protected $graphUrl = 'https://graph.microsoft.com/v1.0/me'; + /** + * {@inheritdoc} + */ + protected $scopeSeparator = ' '; + /** * The scopes being requested. * @@ -83,14 +88,6 @@ protected function mapUserToObject(array $user) ]); } - /** - * {@inheritdoc} - */ - public static function additionalConfigKeys() - { - return ['tenant', 'logout_url', 'proxy']; - } - /** * Get the access token response for the given code. * @@ -116,4 +113,12 @@ protected function getBaseUrl(): string { return 'https://login.microsoftonline.com/'.$this->getConfig('tenant', 'common'); } + + /** + * {@inheritdoc} + */ + public static function additionalConfigKeys() + { + return ['tenant', 'logout_url', 'proxy']; + } }