summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-05-29 18:20:59 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2012-05-29 18:20:59 -0700
commit676a7d731002ab76f6948d76e4a9df911932f9d1 (patch)
treec4b40765a7507fb67849f0e87762f3c2293884f1 /src
parent1c0bac40d9f9a8daf01e9b762d7aaceb94aa670a (diff)
downloadDotNetOpenAuth-676a7d731002ab76f6948d76e4a9df911932f9d1.zip
DotNetOpenAuth-676a7d731002ab76f6948d76e4a9df911932f9d1.tar.gz
DotNetOpenAuth-676a7d731002ab76f6948d76e4a9df911932f9d1.tar.bz2
Fixed failing ClientCredentialGrant unit test
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth.Test/OAuth2/WebServerClientAuthorizeTests.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Test/OAuth2/WebServerClientAuthorizeTests.cs b/src/DotNetOpenAuth.Test/OAuth2/WebServerClientAuthorizeTests.cs
index 4e75d91..f5d9b8c 100644
--- a/src/DotNetOpenAuth.Test/OAuth2/WebServerClientAuthorizeTests.cs
+++ b/src/DotNetOpenAuth.Test/OAuth2/WebServerClientAuthorizeTests.cs
@@ -81,6 +81,9 @@ namespace DotNetOpenAuth.Test.OAuth2 {
authServer.Setup(
a => a.IsAuthorizationValid(It.Is<IAuthorizationDescription>(d => d.User == null && d.ClientIdentifier == ClientId && MessagingUtilities.AreEquivalent(d.Scope, TestScopes))))
.Returns(true);
+ authServer.Setup(
+ a => a.TryAuthorizeClientCredentialsGrant(It.Is<IAccessTokenRequest>(d => d.ClientIdentifier == ClientId && MessagingUtilities.AreEquivalent(d.Scope, TestScopes))))
+ .Returns(true);
var coordinator = new OAuth2Coordinator<WebServerClient>(
AuthorizationServerDescription,
authServer.Object,