summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/OAuth2/OAuth2TestBase.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-02-24 09:02:58 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2012-02-24 09:02:58 -0800
commit98f555915c230a8af154984fb7d29f58a5027acc (patch)
treed6303fe488eb02f2fe5d4eb5d0a4db7f8b4ec148 /src/DotNetOpenAuth.Test/OAuth2/OAuth2TestBase.cs
parentb06334b3cd7fa616c5a53ced828b890c1380744a (diff)
downloadDotNetOpenAuth-98f555915c230a8af154984fb7d29f58a5027acc.zip
DotNetOpenAuth-98f555915c230a8af154984fb7d29f58a5027acc.tar.gz
DotNetOpenAuth-98f555915c230a8af154984fb7d29f58a5027acc.tar.bz2
Adds support for the resource owner password credential grant.
Fixes #72
Diffstat (limited to 'src/DotNetOpenAuth.Test/OAuth2/OAuth2TestBase.cs')
-rw-r--r--src/DotNetOpenAuth.Test/OAuth2/OAuth2TestBase.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Test/OAuth2/OAuth2TestBase.cs b/src/DotNetOpenAuth.Test/OAuth2/OAuth2TestBase.cs
index ee35b24..1b5c329 100644
--- a/src/DotNetOpenAuth.Test/OAuth2/OAuth2TestBase.cs
+++ b/src/DotNetOpenAuth.Test/OAuth2/OAuth2TestBase.cs
@@ -43,6 +43,7 @@ namespace DotNetOpenAuth.Test.OAuth2 {
authHostMock.Setup(m => m.GetClient(ClientId)).Returns(ClientDescription);
authHostMock.SetupGet(m => m.CryptoKeyStore).Returns(cryptoStore);
authHostMock.Setup(m => m.IsAuthorizationValid(It.Is<IAuthorizationDescription>(d => d.ClientIdentifier == ClientId && d.User == ResourceOwnerUsername))).Returns(true);
+ authHostMock.Setup(m => m.IsResourceOwnerCredentialValid(ResourceOwnerUsername, ResourceOwnerPassword)).Returns(true);
return authHostMock;
}
}