|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Client Certifcate Info in Web ServiceHow Do I go about accessing the Client Certifcate info in .NET for a web
service? All I can seem to find for an object containing this info is: HttpClientCertificate cert = Request.ClientCertificate; however, Request is not found...i'm guessing this is for an ASP.NET app vs an ASP.NET Web Service. Just need to verify the user so I can grant a limited access to the system so they can't access/alter another companys info. Thanks. You should be able to do HttpContext.Current.Request in your web service.
Joe K. -- Show quoteHide quoteJoe Kaplan-MS MVP Directory Services Programming Co-author of "The .NET Developer's Guide to Directory Services Programming" http://www.directoryprogramming.net -- "DaveR" <Da***@discussions.microsoft.com> wrote in message news:B92F369D-903B-4B9E-A668-992AEC56391A@microsoft.com... > How Do I go about accessing the Client Certifcate info in .NET for a web > service? All I can seem to find for an object containing this info is: > > HttpClientCertificate cert = Request.ClientCertificate; > > however, Request is not found...i'm guessing this is for an ASP.NET app vs > an ASP.NET Web Service. > > Just need to verify the user so I can grant a limited access to the system > so they can't access/alter another companys info. Thanks. Hi,
the Request is part of the current HttpContext. get a reference to that first: HttpContext ctx = HttpContext.Current; HttpClientCertificate cert = ctx.Request.ClientCertificate; I also did a screencast recently about this very topic - maybe thats interesting to you: http://go.microsoft.com/?linkid=5151512 dominick Show quoteHide quote > How Do I go about accessing the Client Certifcate info in .NET for a > web service? All I can seem to find for an object containing this info > is: > > HttpClientCertificate cert = Request.ClientCertificate; > > however, Request is not found...i'm guessing this is for an ASP.NET > app vs an ASP.NET Web Service. > > Just need to verify the user so I can grant a limited access to the > system so they can't access/alter another companys info. Thanks. >
Digitally sign files from within a web application
how to grant the application the required permission? SIMple SSL question ?? PGP - recommendations Storing a private key Use of Unrestricted flag ??? Authentication method ?? Problem authenticating against renamed Active Directory account Determine who created a file account shutdown notice |
|||||||||||||||||||||||