view Agendas/trunk/src/Agendas.Web/HttpContextIdentityProvider.asax.cs @ 19:74eb4577d447

HttpContext identity provider Requerimiento de autenticación para registrar un nuevo evento o modificar uno existente
author nelo@MTEySS.neluz.int
date Mon, 14 Mar 2011 00:35:43 -0300
parents
children
line wrap: on
line source

using System.Security.Principal;
using System.Web;
using AltNetHispano.Agendas.Domain;

namespace Agendas.Web
{
	public class HttpContextIdentityProvider : ISeguridad
	{
		public IPrincipal GetPrincipal()
		{
			return HttpContext.Current.User;
		}
	}
}