summaryrefslogtreecommitdiffstats
path: root/projecttemplates/RelyingPartyLogic/Model.AuthenticationToken.cs
diff options
context:
space:
mode:
Diffstat (limited to 'projecttemplates/RelyingPartyLogic/Model.AuthenticationToken.cs')
-rw-r--r--projecttemplates/RelyingPartyLogic/Model.AuthenticationToken.cs38
1 files changed, 0 insertions, 38 deletions
diff --git a/projecttemplates/RelyingPartyLogic/Model.AuthenticationToken.cs b/projecttemplates/RelyingPartyLogic/Model.AuthenticationToken.cs
deleted file mode 100644
index d6564da..0000000
--- a/projecttemplates/RelyingPartyLogic/Model.AuthenticationToken.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-namespace RelyingPartyLogic {
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
-
- public partial class AuthenticationToken {
- /// <summary>
- /// Initializes a new instance of the <see cref="AuthenticationToken"/> class.
- /// </summary>
- public AuthenticationToken() {
- this.CreatedOnUtc = DateTime.UtcNow;
- this.LastUsedUtc = DateTime.UtcNow;
- this.UsageCount = 1;
- }
-
- public bool IsInfoCard {
- get { return this.ClaimedIdentifier.StartsWith(UriPrefixForInfoCard); }
- }
-
- private static string UriPrefixForInfoCard {
- get { return new Uri(Utilities.ApplicationRoot, "infocard/").AbsoluteUri; }
- }
-
- public static string SynthesizeClaimedIdentifierFromInfoCard(string uniqueId) {
- string synthesizedClaimedId = UriPrefixForInfoCard + Uri.EscapeDataString(uniqueId);
- return synthesizedClaimedId;
- }
-
- partial void OnLastUsedUtcChanging(DateTime value) {
- Utilities.VerifyThrowNotLocalTime(value);
- }
-
- partial void OnCreatedOnUtcChanging(DateTime value) {
- Utilities.VerifyThrowNotLocalTime(value);
- }
- }
-}