summaryrefslogtreecommitdiffstats
path: root/samples/OpenIdProviderMvc/Models/User.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-04-23 09:01:13 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-04-23 09:01:13 -0700
commita46f18685f6ab0b843a9de63bf0172ad22808033 (patch)
tree08dfd9ee709549327c108fa4883182725777a7dc /samples/OpenIdProviderMvc/Models/User.cs
parent7323ea7a7b17e6fc0c6636f4c5784d5bfe2179e9 (diff)
downloadDotNetOpenAuth-a46f18685f6ab0b843a9de63bf0172ad22808033.zip
DotNetOpenAuth-a46f18685f6ab0b843a9de63bf0172ad22808033.tar.gz
DotNetOpenAuth-a46f18685f6ab0b843a9de63bf0172ad22808033.tar.bz2
Shorted anonymous identifier hash length, reworked the OP MVC sample to support both anonymous and identifying identifiers.
Diffstat (limited to 'samples/OpenIdProviderMvc/Models/User.cs')
-rw-r--r--samples/OpenIdProviderMvc/Models/User.cs14
1 files changed, 6 insertions, 8 deletions
diff --git a/samples/OpenIdProviderMvc/Models/User.cs b/samples/OpenIdProviderMvc/Models/User.cs
index 4c9093c..443c004 100644
--- a/samples/OpenIdProviderMvc/Models/User.cs
+++ b/samples/OpenIdProviderMvc/Models/User.cs
@@ -5,17 +5,15 @@
using System.Text.RegularExpressions;
using System.Web;
using System.Web.Routing;
+ using OpenIdProviderMvc.Code;
internal class User {
- internal static Uri ClaimedIdentifierBaseUri {
- get {
- string appPath = HttpContext.Current.Request.ApplicationPath.ToLowerInvariant();
- if (!appPath.EndsWith("/")) {
- appPath += "/";
- }
+ internal static Uri PpidClaimedIdentifierBaseUri {
+ get { return Util.GetAppPathRootedUri("anon?id="); }
+ }
- return new Uri(HttpContext.Current.Request.Url, appPath + "user/");
- }
+ internal static Uri ClaimedIdentifierBaseUri {
+ get { return Util.GetAppPathRootedUri("user/"); }
}
internal static Uri GetClaimedIdentifierForUser(string username) {