views:

741

answers:

2

How can I read Authorization header information from a REST based WCF service?

+3  A: 

You are trying to read the http header.

OperationContext.Current.OutgoingMessageProperties
or
OperationContext.Current.IncomingMessageProperties
codemeit
A: 

Actually since you ask for a REST based WCF service I think you should use

WebOperationContext.Current.IncomingRequest.Headers

in order to get the HTTP headers in the request.

Cellfish