Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 518
user27052 Avatar asked Dec 30 '08 06:12

user27052


2 Answers

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.

like image 200
Cellfish Avatar answered Nov 01 '22 17:11

Cellfish


You are trying to read the http header.

OperationContext.Current.OutgoingMessageProperties
or
OperationContext.Current.IncomingMessageProperties
like image 42
Ray Lu Avatar answered Nov 01 '22 17:11

Ray Lu