Mercurial > altnet-hispano
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Agendas/trunk/src/Agendas.Web/HttpContextIdentityProvider.asax.cs Mon Mar 14 00:35:43 2011 -0300 @@ -0,0 +1,14 @@ +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; + } + } +} \ No newline at end of file