Skip to content

Commit 1a03c96

Browse files
committed
Add required scope for WindowsLive resource owner
1 parent e23b7a8 commit 1a03c96

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

OAuth/ResourceOwner/WindowsLiveResourceOwner.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ protected function configureOptions(OptionsResolver $resolver)
4141
'authorization_url' => 'https://login.live.com/oauth20_authorize.srf',
4242
'access_token_url' => 'https://login.live.com/oauth20_token.srf',
4343
'infos_url' => 'https://apis.live.net/v5.0/me',
44+
45+
'scope' => 'wl.signin',
4446
));
4547
}
4648
}

Tests/OAuth/ResourceOwner/WindowsLiveResourceOwnerTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ class WindowsLiveResourceOwnerTest extends GenericOAuth2ResourceOwnerTest
2828
'realname' => 'name',
2929
);
3030

31+
protected $expectedUrls = array(
32+
'authorization_url' => 'http://user.auth/?test=2&response_type=code&client_id=clientid&scope=wl.signin&redirect_uri=http%3A%2F%2Fredirect.to%2F',
33+
'authorization_url_csrf' => 'http://user.auth/?test=2&response_type=code&client_id=clientid&scope=wl.signin&state=random&redirect_uri=http%3A%2F%2Fredirect.to%2F',
34+
);
35+
3136
protected function setUpResourceOwner($name, $httpUtils, array $options)
3237
{
3338
return new WindowsLiveResourceOwner($this->buzzClient, $httpUtils, $options, $name, $this->storage);

0 commit comments

Comments
 (0)