Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 04, 2012 10:59 PM by sukumarraju
None
0 Points
2 Posts
Apr 03, 2012 06:00 PM|LINK
Hi All,
I am also facing same issue.
Attribute on function [PrincipalPermission(SecurityAction.Demand , Authenticated=true)]
and code in constructor of same class
Thread.CurrentPrincipal = new WindowsPrincipal(
WindowsIdentity.GetCurrent());
is working fine for basichttp.
But as soon as I go on https (using certificate by makecert command ) for WCF , I receive "Request fail" error
while if I try
[PrincipalPermission(
SecurityAction.Demand, Name = "CN=compaq-jzp37md0; e69e7e6b2134cf78862b0a60e1659916736f87c8")]
giving certificate name for https I receive "Access Denied" error...
Plz help.......
All-Star
16971 Points
2999 Posts
Apr 04, 2012 10:59 PM|LINK
nickboy007 [PrincipalPermission( SecurityAction.Demand, Name = "CN=compaq-jzp37md0; e69e7e6b2134cf78862b0a60e1659916736f87c8")]
PrincipalPermission attribute can be used for Roles/Users. Not for CN.
Refer
nickboy007
None
0 Points
2 Posts
PrinciplePermission with https
Apr 03, 2012 06:00 PM|LINK
Hi All,
I am also facing same issue.
Attribute on function [PrincipalPermission(SecurityAction.Demand , Authenticated=true)]
and code in constructor of same class
Thread.CurrentPrincipal = new WindowsPrincipal(
is working fine for basichttp.
But as soon as I go on https (using certificate by makecert command ) for WCF , I receive "Request fail" error
while if I try
[PrincipalPermission(
giving certificate name for https I receive "Access Denied" error...
Plz help.......
sukumarraju
All-Star
16971 Points
2999 Posts
Re: PrinciplePermission with https
Apr 04, 2012 10:59 PM|LINK
PrincipalPermission attribute can be used for Roles/Users. Not for CN.
Refer
Using Certificate-based Authentication and Protection with Windows Communication Foundation (WCF)
Application Architecture Guide 2.0
My Blog
Twitter