forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIOAuthTokens.cs
More file actions
41 lines (38 loc) · 1.38 KB
/
IOAuthTokens.cs
File metadata and controls
41 lines (38 loc) · 1.38 KB
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
34
35
36
37
38
39
40
41
using System.Collections.Generic;
namespace ServiceStack.ServiceInterface.Auth
{
public interface IOAuthTokens
{
string Provider { get; set; }
string UserId { get; set; }
string UserName { get; set; }
string DisplayName { get; set; }
string FirstName { get; set; }
string LastName { get; set; }
string Email { get; set; }
string AccessToken { get; set; }
string AccessTokenSecret { get; set; }
string RequestToken { get; set; }
string RequestTokenSecret { get; set; }
Dictionary<string, string> Items { get; set; }
}
public class OAuthTokens : IOAuthTokens
{
public OAuthTokens()
{
this.Items = new Dictionary<string, string>();
}
public string Provider { get; set; }
public string UserId { get; set; }
public string UserName { get; set; }
public string DisplayName { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
public string AccessToken { get; set; }
public string AccessTokenSecret { get; set; }
public string RequestToken { get; set; }
public string RequestTokenSecret { get; set; }
public Dictionary<string, string> Items { get; set; }
}
}