summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth/OAuthWrap/Protocol.cs
blob: 4adf78cf9bbf40b556e842dd6ce33a511cb8ec96 (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
106
107
108
109
110
111
112
113
114
115
// <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 "WRAP";
		/// </summary>
		internal const string HttpAuthorizationScheme = "WRAP";

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

		/// <summary>
		/// The "wrap_SWT" string.
		/// </summary>
		internal const string wrap_swt = "wrap_SWT";
	}
}