Skip to content

Authorization header #284

Answered by Daniel-Svensson
dsoltesz asked this question in Q&A
Discussion options

You must be logged in to vote

The most straightforward way would be to create your own DomainClientFactory and overriding the CreateChannelFactory/CreateBinding method or similar in order to setup a WCF IClientMessageInspector which adds a header (by first retreiving a HttpRequestMessageProperty from the Message's Properties)

I found a similar WCF example (I think) in VB and quite long at http://ericphan.net/blog/2010/6/3/adding-custom-http-header-to-all-wcf-requests.html and on stackoverflow https://stackoverflow.com/a/7165593

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Daniel-Svensson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants