c# - Getting the IsAuthenticated status on WCF Data Services within the client -


i have wcf data service authenticates user custom basic authentication. used tutorial on msdn blogs odata , authentication – part 6 – custom basic authentication. after authenticating user against database, service sets

var principal = new genericprincipal( new genericidentity("user") ); httpcontext.current.user = principal; 

within service can access principals auth status via

httpcontext.current.request.isauthenticated 

is there chance isauthenticated status on wpf client?

basic authentication performed every request. client doesn't keep state related authentication (except pre-authentication skips 401 handshake). if service requires authentication know authenticated if call wcf-data service succeeds. if not authenticated receive exception.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -