Solved

Checking for login in WCF service

Posted on 2010-09-04
1
712 Views
Last Modified: 2012-05-10
Hi,

I have a Silverlight application that calls a WCF service to retrieve data from an SQL database. The selection from this database should be dependent on who is logged in to the site. How can I check for the users role in the WCF service? In a regular aps.net page I would do something like this:

        if (HttpContext.Current.User.IsInRole("admin"))
        {
            //Do something
        }

but that wouldn't work in the WCF service - right?

Best regards
RTSol
0
Comment
Question by:RTSol
1 Comment
 

Accepted Solution

by:
RTSol earned 0 total points
ID: 33637613
Hi,

Ok - I realize that I need to use Ria services.

Bestr regards
RTSol
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
WCF Memory Issue 4 68
WSD and Laserjet P2035n and Windows 7 20 307
Web Service example 9 139
C# how to get my interface working? 5 87
This tutorial will show you how to add an attribute to an XML (http://en.wikipedia.org/wiki/XML) stream returned from a Windows Communication Foundation (http://en.wikipedia.org/wiki/Windows_Communication_Foundation) (WCF) Web Service.  Some knowled…
Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now