Solved

How to use ServiceSecurityContext.Current in WCF

Posted on 2009-05-12
2
3,380 Views
Last Modified: 2012-05-06
Hi Experts ..

I have a WCF service self-hosted, I am trying to access ServiceSecurityContext.Current from within the operations of the WCF service, but it always NULL.

I am testing the WCF Service and I am trying to find a way to pass non-null ServiceSecurityContext.Current. any idea?

Thanks,
0
Comment
Question by:elkhawajah
2 Comments
 
LVL 22

Expert Comment

by:cookre
ID: 24370833
0
 
LVL 1

Accepted Solution

by:
elkhawajah earned 0 total points
ID: 24373115
I fixed it by editing the binding configuration (app.config):

 <wsHttpBinding>
          <binding name="securingWSHttpBinding"  >
            <security mode ="Message">
              <transport clientCredentialType="Windows" />
              <message establishSecurityContext="true" />
            </security>
          </binding>
      </wsHttpBinding>

Thanks,
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now