blob: 53ca10f5bd5f6e6648dbc87f4b85bf631fb561e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
namespace WebFormsRelyingParty {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
public partial class AuthenticationToken {
public bool IsInfoCard {
get { return this.ClaimedIdentifier.StartsWith(UriPrefixForInfoCard); }
}
private static string UriPrefixForInfoCard {
get { return new Uri(HttpContext.Current.Request.Url, Global.ApplicationPath + "infocard/").AbsoluteUri; }
}
public static string SynthesizeClaimedIdentifierFromInfoCard(string uniqueId) {
string synthesizedClaimedId = UriPrefixForInfoCard + Uri.EscapeDataString(uniqueId);
return synthesizedClaimedId;
}
}
}
|