Print Page | Close Window

Login screen written in html

Printed From: IdeaBlade
Category: Cocktail
Forum Name: Community Forum
Forum Discription: A professional application framework using Caliburn.Micro and DevForce
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3414
Printed Date: 02-Apr-2025 at 2:55am


Topic: Login screen written in html
Posted By: JohnBloom
Subject: Login screen written in html
Date Posted: 27-Apr-2012 at 6:29am
We have had a recent requirement that our login screen be written in html instead of silverlight. As part of my research I thought I would check to see if it is even possible for Cocktail to handle the login being outside of silverlight. We would like to use the same authentication for our silverlight product and another asp.net product.

I am hoping for nudge in the right direction and to know if it is even possible.


-------------
-John Bloom



Replies:
Posted By: mgood
Date Posted: 27-Apr-2012 at 12:21pm
Yep, that's entirely possible. You'll be doing your login through ASP.NET. See here for how to configure DevForce to use ASP.NET security.
 
http://drc.ideablade.com/xwiki/bin/view/Documentation/security-aspnet - http://drc.ideablade.com/xwiki/bin/view/Documentation/security-aspnet
 
You might also find the following helpful. I wrote this a while back and it probably needs to be updated.
 
http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-secure-infrastructure - http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-secure-infrastructure
 
Once the login is done and the Silverlight app fires up, you simply call LoginAsync on the AuthenticationService with null credentials. The out-of-the-box AspAuthenticatingLoginManager will grab the current user from the HttpContext.



Print Page | Close Window