Difference between revisions of "ASP.NET Shibboleth Debug"
From GFIPM Implementation Wiki
(Created page with "[http://code.msdn.microsoft.com/ASPNET-Diagnostic-page-to-9a029c20 Microsoft's Official Page]") |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [http://code.msdn.microsoft.com/ASPNET-Diagnostic-page-to-9a029c20 Microsoft's Official Page] | + | [http://code.msdn.microsoft.com/ASPNET-Diagnostic-page-to-9a029c20 Microsoft's Official Page] - This page includes some sample .NET code for printing out your environment, which is useful for figuring out how Shibboleth has encoded the GFIPM Attributes. A copy of the relavant code is included below in case the official Microsoft site stops working: |
+ | |||
+ | <code><pre> | ||
+ | <%@ Page Language="C#" AutoEventWireup="true" Trace="true" TraceMode="SortByCategory" %> | ||
+ | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
+ | <head runat="server"> | ||
+ | <title>ASP.NET Diagnostic Page</title> | ||
+ | </head> | ||
+ | <body> | ||
+ | <form id="form1" runat="server"> | ||
+ | |||
+ | <h2>Environment Variables</h2> | ||
+ | <pre> | ||
+ | <table> | ||
+ | <% | ||
+ | var variables = Environment.GetEnvironmentVariables(); | ||
+ | foreach (DictionaryEntry entry in variables) | ||
+ | { | ||
+ | Response.Write("<tr><td>"); | ||
+ | Response.Write(entry.Key); | ||
+ | Response.Write("</td><td>"); | ||
+ | Response.Write(entry.Value); | ||
+ | Response.Write("</td></tr>"); | ||
+ | } | ||
+ | %> | ||
+ | </table> | ||
+ | </pre> | ||
+ | |||
+ | <h2>Misc</h2> | ||
+ | <pre> | ||
+ | Response.Filter = <%= Request.Filter.ToString() %> | ||
+ | Request.ApplicationPath = <%= Request.ApplicationPath %> | ||
+ | Request.PhysicalApplicationPath = <%= Request.PhysicalApplicationPath %> | ||
+ | Request.PhysicalPath = <%= Request.PhysicalPath %> | ||
+ | Request.UrlReferrer = <%= Request.UrlReferrer %> | ||
+ | Request.UserLanguages = <%= string.Join(",", (Request.UserLanguages ?? new string[0])) %> | ||
+ | </pre> | ||
+ | |||
+ | </form> | ||
+ | </body> | ||
+ | </html> | ||
+ | </pre></code> |
Latest revision as of 20:50, 18 November 2013
Microsoft's Official Page - This page includes some sample .NET code for printing out your environment, which is useful for figuring out how Shibboleth has encoded the GFIPM Attributes. A copy of the relavant code is included below in case the official Microsoft site stops working:
<%@ Page Language="C#" AutoEventWireup="true" Trace="true" TraceMode="SortByCategory" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>ASP.NET Diagnostic Page</title>
</head>
<body>
<form id="form1" runat="server">
<h2>Environment Variables</h2>
<pre>
<table>
<%
var variables = Environment.GetEnvironmentVariables();
foreach (DictionaryEntry entry in variables)
{
Response.Write("<tr><td>");
Response.Write(entry.Key);
Response.Write("</td><td>");
Response.Write(entry.Value);
Response.Write("</td></tr>");
}
%>
</table>
</pre>
<h2>Misc</h2>
<pre>
Response.Filter = <%= Request.Filter.ToString() %>
Request.ApplicationPath = <%= Request.ApplicationPath %>
Request.PhysicalApplicationPath = <%= Request.PhysicalApplicationPath %>
Request.PhysicalPath = <%= Request.PhysicalPath %>
Request.UrlReferrer = <%= Request.UrlReferrer %>
Request.UserLanguages = <%= string.Join(",", (Request.UserLanguages ?? new string[0])) %>
</pre>
</form>
</body>
</html>