diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-06-15 18:06:07 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-06-15 18:06:07 -0700 |
commit | 42ec238847675f5943468fc6fc22b0e0bbf43f1c (patch) | |
tree | bd49c66b90aab83f49c5acbff86788ad5b6b3de2 /samples | |
parent | e93faf90701f5bd7376535b32b92f059552b17b5 (diff) | |
download | DotNetOpenAuth-42ec238847675f5943468fc6fc22b0e0bbf43f1c.zip DotNetOpenAuth-42ec238847675f5943468fc6fc22b0e0bbf43f1c.tar.gz DotNetOpenAuth-42ec238847675f5943468fc6fc22b0e0bbf43f1c.tar.bz2 |
Added request token TTL checking.
Resolves Trac ticket #54.
Diffstat (limited to 'samples')
-rw-r--r-- | samples/OAuthServiceProvider/App_Code/DataClasses.dbml | 6 | ||||
-rw-r--r-- | samples/OAuthServiceProvider/App_Code/OAuthToken.cs | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/samples/OAuthServiceProvider/App_Code/DataClasses.dbml b/samples/OAuthServiceProvider/App_Code/DataClasses.dbml index 78518c2..651de9f 100644 --- a/samples/OAuthServiceProvider/App_Code/DataClasses.dbml +++ b/samples/OAuthServiceProvider/App_Code/DataClasses.dbml @@ -25,9 +25,9 @@ <Column Name="ConsumerId" Type="System.Int32" DbType="Int NOT NULL IDENTITY" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" /> <Column Name="ConsumerKey" Type="System.String" DbType="NVarChar(50) NOT NULL" CanBeNull="false" /> <Column Name="ConsumerSecret" Type="System.String" DbType="NVarChar(50) NOT NULL" CanBeNull="false" /> - <Column Member="Callback" Type="System.String" CanBeNull="true" /> - <Column Member="VerificationCodeFormat" Type="DotNetOpenAuth.OAuth.VerificationCodeFormat" CanBeNull="false" /> - <Column Member="VerificationCodeLength" Type="System.Int32" CanBeNull="false" /> + <Column Name="Callback" Type="System.String" CanBeNull="true" /> + <Column Name="VerificationCodeFormat" Type="DotNetOpenAuth.OAuth.VerificationCodeFormat" CanBeNull="false" /> + <Column Name="VerificationCodeLength" Type="System.Int32" CanBeNull="false" /> <Association Name="OAuthConsumer_OAuthToken" Member="OAuthTokens" ThisKey="ConsumerId" OtherKey="ConsumerId" Type="OAuthToken" /> </Type> </Table> diff --git a/samples/OAuthServiceProvider/App_Code/OAuthToken.cs b/samples/OAuthServiceProvider/App_Code/OAuthToken.cs index 445e88c..ec9b31e 100644 --- a/samples/OAuthServiceProvider/App_Code/OAuthToken.cs +++ b/samples/OAuthServiceProvider/App_Code/OAuthToken.cs @@ -21,6 +21,10 @@ public partial class OAuthToken : IServiceProviderRequestToken { get { return this.OAuthConsumer.ConsumerKey; } } + DateTime IServiceProviderRequestToken.CreatedOn { + get { return this.IssueDate; } + } + Uri IServiceProviderRequestToken.Callback { get { return new Uri(this.RequestTokenCallback); } set { this.RequestTokenCallback = value.AbsoluteUri; } |