all groups > dotnet security > july 2006 >
You're in the

dotnet security

group:

Client Certifcate Info in Web Service


Client Certifcate Info in Web Service DaveR
7/27/2006 12:21:02 PM
dotnet security: 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
Re: Client Certifcate Info in Web Service Joe Kaplan (MVP - ADSI)
7/27/2006 2:34:33 PM
You should be able to do HttpContext.Current.Request in your web service.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
[quoted text, click to view]

Re: Client Certifcate Info in Web Service Dominick Baier
7/27/2006 7:39:10 PM
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

[quoted text, click to view]

AddThis Social Bookmark Button