summaryrefslogtreecommitdiffstats
path: root/projecttemplates/RelyingPartyLogic/Model.ClientAuthorization.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-07-14 08:56:41 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2010-07-14 08:56:41 -0700
commit1882f59229ee85cf2b9cf66cfd2ada1cc27520f7 (patch)
tree2dafe590afca5ef8f48a0735c0562c2f80a18993 /projecttemplates/RelyingPartyLogic/Model.ClientAuthorization.cs
parentc57069113ce391d0e2b40d2b7b14aa693511db70 (diff)
downloadDotNetOpenAuth-1882f59229ee85cf2b9cf66cfd2ada1cc27520f7.zip
DotNetOpenAuth-1882f59229ee85cf2b9cf66cfd2ada1cc27520f7.tar.gz
DotNetOpenAuth-1882f59229ee85cf2b9cf66cfd2ada1cc27520f7.tar.bz2
Refactoring database to support OAuth 2.0
Diffstat (limited to 'projecttemplates/RelyingPartyLogic/Model.ClientAuthorization.cs')
-rw-r--r--projecttemplates/RelyingPartyLogic/Model.ClientAuthorization.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/projecttemplates/RelyingPartyLogic/Model.ClientAuthorization.cs b/projecttemplates/RelyingPartyLogic/Model.ClientAuthorization.cs
new file mode 100644
index 0000000..3d7646a
--- /dev/null
+++ b/projecttemplates/RelyingPartyLogic/Model.ClientAuthorization.cs
@@ -0,0 +1,26 @@
+//-----------------------------------------------------------------------
+// <copyright file="Model.ClientAuthorization.cs" company="Andrew Arnott">
+// Copyright (c) Andrew Arnott. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
+
+namespace RelyingPartyLogic {
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Web;
+ using DotNetOpenAuth.OAuth.ChannelElements;
+
+ public partial class ClientAuthorization {
+ /// <summary>
+ /// Initializes a new instance of the <see cref="IssuedToken"/> class.
+ /// </summary>
+ public ClientAuthorization() {
+ this.CreatedOnUtc = DateTime.UtcNow;
+ }
+
+ partial void OnCreatedOnUtcChanging(DateTime value) {
+ Utilities.VerifyThrowNotLocalTime(value);
+ }
+ }
+}