Solved

Checking for login in WCF service

Posted on 2010-09-04
1
711 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
While working on Silverlight and WCF application, I faced one issue where fault exception occurred at WCF operation contract is not getting propagated to Silverlight client. So after searching net I came to know that it was behavior by default for s…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 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

22 Experts available now in Live!

Get 1:1 Help Now