annotate 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
rev   line source
19
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
1 using System.Security.Principal;
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
2 using System.Web;
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
3 using AltNetHispano.Agendas.Domain;
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
4
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
5 namespace Agendas.Web
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
6 {
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
7 public class HttpContextIdentityProvider : ISeguridad
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
8 {
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
9 public IPrincipal GetPrincipal()
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
10 {
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
11 return HttpContext.Current.User;
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
12 }
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
13 }
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
14 }