SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to have some additional data sent to each call to my membership provider. For example SPClaimsUtility.AuthenticateFormsUser takes a URI, a username and a password. The username and password are passed through to the Security Token Service (over WCF), and ultimately to my MembershipProvider implementation. I need to pass some additional context information to my MembershipProvider. One idea is to add a header to the OperationContext outgoing message headers and then inspect the incoming message headers in my Membership Provider. The problem is that there is not OperationContext available for me to send the headers before the call to AuthenticateFormsUser. Any help is appreciated!

share|improve this question
I also have a similar requirement. Please let me know if you got answer to this. Also could you please explain how it is possible using "OperationContext". Thanks – user3624 Jun 6 '11 at 11:36
I have almost the same scenario where I want to user some sort of Custom data for my role provider. Actually, I need a Customer Number to specifically fetch User Roles based on that customer No. If you managed to send any kind of Custom Data to Custom providers, Please Share. – user3880 Jun 25 '11 at 1:25
What kind of context info are we talking about? Is it contextual to the site or to the user? For the user there's always the option of adding additional claims to the token. – Jasper Oct 19 '12 at 12:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.