blob: 32de525bf1e1c51af265e4f2341c0d2a52548ec3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
//-----------------------------------------------------------------------
// <copyright file="OAuth2TestBase.cs" company="Outercurve Foundation">
// Copyright (c) Outercurve Foundation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.Test.OAuth2 {
using System;
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);
}
}
|