summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth/OAuthWrap/Protocol.cs
blob: 59d77c132f15d95849aa46ec9a0db76deb648b88 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// <auto-generated/> // disable StyleCop on this file
//-----------------------------------------------------------------------
// <copyright file="Protocol.cs" company="Andrew Arnott">
//     Copyright (c) Andrew Arnott. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace DotNetOpenAuth.OAuthWrap {
	using System;

	/// <summary>
	/// Protocol constants for OAuth WRAP.
	/// </summary>
	internal class Protocol {
		/// <summary>
		/// The default (latest) version of the OAuth WRAP protocol.
		/// </summary>
		internal static readonly Version DefaultVersion = V10;

		/// <summary>
		/// The initial (1.0) version of OAuth WRAP.
		/// </summary>
		internal static readonly Version V10 = new Version(1, 0);

		/// <summary>
		/// The HTTP authorization scheme "SimpleAPIAuth";
		/// </summary>
		internal const string HttpAuthorizationScheme = "SimpleAPIAuth";

		/// <summary>
		/// The "sa_consumer_state" string.
		/// </summary>
		internal const string sa_consumer_state = "sa_consumer_state";

		/// <summary>
		/// The "sa_callback" string.
		/// </summary>
		internal const string sa_callback = "sa_callback";

		/// <summary>
		/// The "sa_consumer_key" string.
		/// </summary>
		internal const string sa_consumer_key = "sa_consumer_key";

		/// <summary>
		/// The "sa_consumer_secret" string.
		/// </summary>
		internal const string sa_consumer_secret = "sa_consumer_secret";

		/// <summary>
		/// The "sa_delegation_code" string.
		/// </summary>
		internal const string sa_delegation_code = "sa_delegation_code";

		/// <summary>
		/// The "sa_error_reason" string.
		/// </summary>
		internal const string sa_error_reason = "sa_error_reason";

		/// <summary>
		/// The "user_denied" string.
		/// </summary>
		internal const string sa_error_reason_denied = "user_denied";

		/// <summary>
		/// The "sa_token" string.
		/// </summary>
		internal const string sa_token = "sa_token";

		/// <summary>
		/// The "sa_token_expires_in" string.
		/// </summary>
		internal const string sa_token_expires_in = "sa_token_expires_in";

		/// <summary>
		/// The "expired_delegation_code" string.
		/// </summary>
		internal const string expired_delegation_code = "expired_delegation_code";

		/// <summary>
		/// The "sa_username" string.
		/// </summary>
		internal const string sa_username = "sa_username";

		/// <summary>
		/// The "sa_password" string.
		/// </summary>
		internal const string sa_password = "sa_password";

		/// <summary>
		/// The "sa_name" string.
		/// </summary>
		internal const string sa_name = "sa_name";

		/// <summary>
		/// The "sa_SAML" string.
		/// </summary>
		internal const string sa_saml = "sa_SAML";

		/// <summary>
		/// The "sa_SWT" string.
		/// </summary>
		internal const string sa_swt = "sa_SWT";
	}
}