New Posts New Posts RSS Feed: DevForce and RIA side by side
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

DevForce and RIA side by side

 Post Reply Post Reply
Author
ozlatko View Drop Down
Newbie
Newbie


Joined: 09-May-2011
Posts: 2
Post Options Post Options   Quote ozlatko Quote  Post ReplyReply Direct Link To This Post Topic: DevForce and RIA side by side
    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
 
Back to Top
DenisK View Drop Down
IdeaBlade
IdeaBlade


Joined: 25-Aug-2010
Posts: 708
Post Options Post Options   Quote DenisK Quote  Post ReplyReply Direct Link To This Post 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.


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.


Edited by DenisK - 09-May-2011 at 5:42pm
Back to Top
ozlatko View Drop Down
Newbie
Newbie


Joined: 09-May-2011
Posts: 2
Post Options Post Options   Quote ozlatko Quote  Post ReplyReply Direct Link To This Post Posted: 10-May-2011 at 3:05am
Thank you Denis,
 
It works like a charm :)
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down