Print Page | Close Window

DevForce and RIA side by side

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2656
Printed Date: 29-Jul-2026 at 8:30pm


Topic: DevForce and RIA side by side
Posted By: ozlatko
Subject: DevForce and RIA side by side
Date Posted: 09-May-2011 at 8:32am
Hello.
 
Our Silverlight application uses multiple RIA services (multiple WCF RIA Services Class Libraries).
Now, we have investigated DevForce and it perfectly fits into a new module we would like to add into the application.
We have managed to run DevForce side by side with existing RIA services. Our question is if DevForce could use existing IPrincipal that we have from RIA authentication, and if yes how. If no, please suggest the most straightforward way to authenticate the same user into the DevForce.
 
Thanks in advance for your time.
Zlatko
 



Replies:
Posted By: DenisK
Date Posted: 09-May-2011 at 5:31pm
Hi ozlatko;

DevForce has a class called AspAuthenticatingLoginManager that integrates with ASP.NET authentication. Please see the following DRC (DevForce Resource Center) page for more info.

http://drc.ideablade.com/xwiki/bin/view/Documentation/security-aspnet - http://drc.ideablade.com/xwiki/bin/view/Documentation/security-aspnet

So to answer your question, yes it is possible to use an existing RIA (ASP.NET) authentication with DevForce. Here's how.

1. Set useAspNetSecurityServices flag to true on the "web.config" or the server's config.

2. Set aspNetCompatibilityEnabled flag to true on the "web.config" or the server's config.

3. "You can also call EntityManager.Login with a null argument if your application accepts either persistent authentication tickets or the user has already logged in as part of the larger application."

Hope this helps.


Posted By: ozlatko
Date Posted: 10-May-2011 at 3:05am
Thank you Denis,
 
It works like a charm :)



Print Page | Close Window