Click here to Skip to main content
11,565,352 members (39,039 online)
Click here to Skip to main content
Add your own
alternative version

Custom Authentication provider by implementing IHttpModule, IPrincipal and IIdentity

, 2 Nov 2003 266.3K 9.2K 158
An article on writing Custom Authentication provider in ASP.NET
customauthentication_demo.zip
CustomAuthenticationDemo
bin
CustomAuthenticationDemo.csproj.webinfo
CustomAuthenticationDemo.vsdisco
Global.asax
_vti_cnf
_vti_pvt
_vti_script
_vti_txt
customauthentication_src.zip
CustomSecurity
bin
Debug
CustomSecurity.csproj.user
obj
Debug
temp
TempPE
<%@ Page language="c#" Codebehind="Login.aspx.cs" AutoEventWireup="false" Inherits="CustomAuthenticationDemo.Login" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Login</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<LINK href="style.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body>
		<form id="Login" method="post" runat="server">
			<table width="100%">
				<tr valign="center" height="300">
					<td valign="center">
						<table border="1" cellpadding="0" bordercolor="peru" bgcolor="khaki" align="center" width="50%">
							<tr>
								<td colspan="2">
									&nbsp;Use&nbsp;<b><i>superuser</i></b> for the Administrator role else type 
									anything</td>
							</tr>
							<tr>
								<td align="right">User Name:</td>
								<td>
									<asp:TextBox id="username" runat="server"></asp:TextBox></td>
							</tr>
							<tr>
								<td align="right">Password:</td>
								<td>
									<asp:TextBox id="password" runat="server" TextMode="Password"></asp:TextBox></td>
							</tr>
							<tr>
								<td align="right">&nbsp;</td>
								<td><asp:Button id="Button1" runat="server" Text="Go"></asp:Button>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

I Piscean
Web Developer
United States United States
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150624.2 | Last Updated 3 Nov 2003
Article Copyright 2003 by I Piscean
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid