Re: WebPermission.Demand() is failing with membership condition - Strong Name
- From: Dominick Baier <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 26 Nov 2007 15:46:46 +0000 (UTC)
create a PermissionSet and add all the needed permissions to it.
PermissionSet ps = new PermissionSet();
ps.AddPermission (...);
the call Assert on the set
ps.Assert();
-----
Dominick Baier (http://www.leastprivilege.com)
Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)
ok, I made a mystake,
there is no point to call demand after assert, the assert "pass" the
application about the specific permission set.
If I want to add another permission sets like SocketPermission, I have
problem because you can do assert only to one permission set.
If I'm doing RevertAssert its not good also,
so maybe anyone know how to assert more than one permission set ???
Thanks
.
- Follow-Ups:
- References:
- Prev by Date: Re: Send custom IPrincipal object from client to WCF service - Possibl
- Next by Date: Re: Send custom IPrincipal object from client to WCF service - Pos
- Previous by thread: Re: WebPermission.Demand() is failing with membership condition - Strong Name
- Next by thread: Re: WebPermission.Demand() is failing with membership condition - Strong Name
- Index(es):
Relevant Pages
|
|