summaryrefslogtreecommitdiffstats
path: root/samples/OAuthServiceProvider/App_Code/TokenAuthorizationState.cs
diff options
context:
space:
mode:
Diffstat (limited to 'samples/OAuthServiceProvider/App_Code/TokenAuthorizationState.cs')
-rw-r--r--samples/OAuthServiceProvider/App_Code/TokenAuthorizationState.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/samples/OAuthServiceProvider/App_Code/TokenAuthorizationState.cs b/samples/OAuthServiceProvider/App_Code/TokenAuthorizationState.cs
new file mode 100644
index 0000000..8d3c8ac
--- /dev/null
+++ b/samples/OAuthServiceProvider/App_Code/TokenAuthorizationState.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+
+/// <summary>
+/// Various states an OAuth token can be in.
+/// </summary>
+public enum TokenAuthorizationState : int {
+ /// <summary>
+ /// An unauthorized request token.
+ /// </summary>
+ UnauthorizedRequestToken = 0,
+
+ /// <summary>
+ /// An authorized request token.
+ /// </summary>
+ AuthorizedRequestToken = 1,
+
+ /// <summary>
+ /// An authorized access token.
+ /// </summary>
+ AccessToken = 2,
+}