A secure implementation of OAuth2 using vanilla ASP.NET C#. Requires no third-party libraries or assemblies.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 lines
836 B

<form action="login.aspx" onsubmit="deleteAllCookies();">
<input type="submit" value="Delete Cookies" />
</form>
<% } %>
<hr />
<%
string path = @"C:\certs\";
if (hasWriteAccessToFolder(path))
{
Response.Write("<div class='good'>Access to " + path + " appears to be okay, but " +
"check permissions if certificate caching doesn't work.</div>");
}
else
{
Response.Write("<div class='bad'>Access to " + path + " is not verified. Check permissions on that folder!</div>");
}
%>
<hr />
<div class="footer">
This sample application is &copy; A Better Geek. While the source code is freely available for use in your applications,<br />
please <b>do not distribute this sample application</b>. Instead, please
<a href="http://blog.abettergeek.com/?p=529">link to the original source</a>.
</div>