[Mono-list] WCF - ServiceSecurityContext

augustwest ctxdeaneo at yahoo.com
Thu Feb 24 12:48:21 EST 2011


We have limited clients so my sample is probably not optimal but the basic
authentication http header is pretty standard ("Basic username:password"). 
Try this in your AfterRecieveRequest -

object propObj;

OperationContext.Current.IncomingMessageProperties.TryGetValue(HttpRequestMessageProperty.Name,
out propObj);

HttpRequestMessageProperty reqProp = (HttpRequestMessageProperty)propObj;
string headerAuth = reqProp.Headers["Authorization"];
-- 
View this message in context: http://mono.1490590.n4.nabble.com/WCF-ServiceSecurityContext-tp3307343p3323065.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list