authentication - IIS module and WCF -
I have written an IIS module (base IHttpModule) which does some custom (openAuth) authentication before my WCF REST service. I have expanded the generic principal to track my user with an identity, and set the reference field to my new principal.
application.context.user = principal
However, when I get the reference in WCF (the next step below the pipeline), the user appears as "default" as the uncertified WindowsPrincipal (Genetic Principal that I do not set)
I see about making many things on the net
- This work (aspNetCompatibilityEnabled = "true" for "service", with environment, with OperationConnecte Playing etc.) ... but I have not tried anything.
- Is there a way to do this work (or am I barking the wrong tree here).
- What would be the legal way to do this, or "WCF" more custom certification to handle it?
thanks
You must set your principal in WCF Identification during the authorization phase requires a custom authority policy. I suggest you read more information. I have not tried to do this with custom HTML modules and REST, but I have successfully done this with default authentication schemes