Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Checking for login in WCF service

Posted on 2010-09-04
1
Medium Priority
?
718 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

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

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

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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

885 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