diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-04-03 06:10:25 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-04-03 07:42:26 -0700 |
commit | 36485a484848e60138796dd4fd6814cce60375a7 (patch) | |
tree | 8f3a7fc2921716e476d151edd1132d2651879dd5 /samples/OpenIdProviderWebForms/Code | |
parent | b6860a7c11e39a29aa2f5758eca7f076a4d7ebe9 (diff) | |
download | DotNetOpenAuth-36485a484848e60138796dd4fd6814cce60375a7.zip DotNetOpenAuth-36485a484848e60138796dd4fd6814cce60375a7.tar.gz DotNetOpenAuth-36485a484848e60138796dd4fd6814cce60375a7.tar.bz2 |
Fixed OP sample's assumption that it isn't working in a virtual directory.
Diffstat (limited to 'samples/OpenIdProviderWebForms/Code')
-rw-r--r-- | samples/OpenIdProviderWebForms/Code/Util.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/OpenIdProviderWebForms/Code/Util.cs b/samples/OpenIdProviderWebForms/Code/Util.cs index 5cec951..6493e67 100644 --- a/samples/OpenIdProviderWebForms/Code/Util.cs +++ b/samples/OpenIdProviderWebForms/Code/Util.cs @@ -28,7 +28,7 @@ namespace OpenIdProviderWebForms.Code { // be sure to normalize case the way the user's identity page does. username = username.Substring(0, 1).ToUpperInvariant() + username.Substring(1).ToLowerInvariant(); - return new Uri(HttpContext.Current.Request.Url, "/user/" + username); + return new Uri(HttpContext.Current.Request.Url, HttpContext.Current.Response.ApplyAppPathModifier("~/user/" + username)); } internal static void ProcessAuthenticationChallenge(IAuthenticationRequest idrequest) { |