summaryrefslogtreecommitdiffstats
path: root/projecttemplates/WebFormsRelyingParty/Code/Utilities.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-11-15 15:30:38 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2009-11-15 15:30:38 -0800
commit588bc035f93607b4179df9f7f42175c08e6cf7b5 (patch)
tree965802693892616db01cf6997f060dda44518697 /projecttemplates/WebFormsRelyingParty/Code/Utilities.cs
parent888abd61a54576ff244533693df77f174f03c2bb (diff)
parent2ff3e125a7db35ce459b89add580aedf7d2bd7d4 (diff)
downloadDotNetOpenAuth-588bc035f93607b4179df9f7f42175c08e6cf7b5.zip
DotNetOpenAuth-588bc035f93607b4179df9f7f42175c08e6cf7b5.tar.gz
DotNetOpenAuth-588bc035f93607b4179df9f7f42175c08e6cf7b5.tar.bz2
Merged working branch that splits the RP project template into two projects: a web project and a class library.
Merge branch 'projecttemplateLib'
Diffstat (limited to 'projecttemplates/WebFormsRelyingParty/Code/Utilities.cs')
-rw-r--r--projecttemplates/WebFormsRelyingParty/Code/Utilities.cs14
1 files changed, 0 insertions, 14 deletions
diff --git a/projecttemplates/WebFormsRelyingParty/Code/Utilities.cs b/projecttemplates/WebFormsRelyingParty/Code/Utilities.cs
index 25d293e..43c5236 100644
--- a/projecttemplates/WebFormsRelyingParty/Code/Utilities.cs
+++ b/projecttemplates/WebFormsRelyingParty/Code/Utilities.cs
@@ -15,20 +15,6 @@ namespace WebFormsRelyingParty.Code {
private const string CsrfCookieName = "CsrfCookie";
private static readonly RandomNumberGenerator CryptoRandomDataGenerator = new RNGCryptoServiceProvider();
- /// <summary>
- /// Gets the full URI of the web application root. Guaranteed to end in a slash.
- /// </summary>
- public static Uri ApplicationRoot {
- get {
- string appRoot = HttpContext.Current.Request.ApplicationPath;
- if (!appRoot.EndsWith("/", StringComparison.Ordinal)) {
- appRoot += "/";
- }
-
- return new Uri(HttpContext.Current.Request.Url, appRoot);
- }
- }
-
public static string SetCsrfCookie() {
// Generate an unpredictable secret that goes to the user agent and must come back
// with authorization to guarantee the user interacted with this page rather than