diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-02-20 22:18:31 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-02-20 22:18:31 -0800 |
commit | 335402d6dda7a96acab14e7263ef16e06e637d12 (patch) | |
tree | 1f108e239c21dcdc99469d113224afde4ae3cade /src/DotNetOpenAuth.Test/OAuth2/OAuth2TestBase.cs | |
parent | 234cf20e86b0ed1d65bca4a61eabb3277e8562c5 (diff) | |
download | DotNetOpenAuth-335402d6dda7a96acab14e7263ef16e06e637d12.zip DotNetOpenAuth-335402d6dda7a96acab14e7263ef16e06e637d12.tar.gz DotNetOpenAuth-335402d6dda7a96acab14e7263ef16e06e637d12.tar.bz2 |
Added scaffolding for OAuth2 unit tests and added the first test for client authorization.
Diffstat (limited to 'src/DotNetOpenAuth.Test/OAuth2/OAuth2TestBase.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/OAuth2/OAuth2TestBase.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Test/OAuth2/OAuth2TestBase.cs b/src/DotNetOpenAuth.Test/OAuth2/OAuth2TestBase.cs index 49fc40b..32de525 100644 --- a/src/DotNetOpenAuth.Test/OAuth2/OAuth2TestBase.cs +++ b/src/DotNetOpenAuth.Test/OAuth2/OAuth2TestBase.cs @@ -9,7 +9,25 @@ namespace DotNetOpenAuth.Test.OAuth2 { using System.Collections.Generic; using System.Linq; using System.Text; + using DotNetOpenAuth.OAuth2; public class OAuth2TestBase : TestBase { + protected internal const string ClientId = "TestClientId"; + + protected internal const string ClientSecret = "TestClientSecret"; + + protected const string Username = "TestUser"; + + protected static readonly Uri ClientCallback = new Uri("http://client/callback"); + + protected static readonly AuthorizationServerDescription AuthorizationServerDescription = new AuthorizationServerDescription { + AuthorizationEndpoint = new Uri("https://authserver/authorize"), + TokenEndpoint = new Uri("https://authserver/token"), + }; + + protected static readonly IClientDescription ClientDescription = new ClientDescription( + ClientSecret, + ClientCallback, + ClientType.Confidential); } } |