I am trying to create an application following, modular architecture, using Prism 4 & UnityContainer for DI. I am wondering how you would pass the currently logged in user around the system?
I thought nice and dirty would be to validate my user login credetials with a simple login form, hit my dataContext(EntityFramework 4) on application startup and store in applications' App.Xaml.cs using:
App.Current.Properties["CurrentUser"] = user;
But obviously my loaded modules do not have any knowledge of the application. Stuck...
Thanks if you can offer any help.
Got what appears to be a "proper" solution from the chaps over at CodePlex Prism discussions here http://compositewpf.codeplex.com/discussions/429579
Related
Hi,
My Questions are :
I just want to create Login Popup in DNN 7 according to my requirements and CSS.
Please suggest way for it .
also Which is better way ...to Customize existing Login & Forgot Password Pages or to Create New Pages for these.
Is there any Free utility or service to make DNN development Easy
(Searched for Nucleus but could not find helpful info)
Please Suggest and provide useful Links also ..Thanks !
So Stackoverflow is great for 1 question at a time, I will start with #1 and ask you to break it up into other questions for the rest.
Does it need to be a popup? If not, try just creating a custom Login page and put the Account Login module on that, then Skin it as you wish.
If it needs to be a custom popup, you can look at the popupskin.ascx file in your SKIN, you can customize the way the popups look by changing your Popup Skin. My free DNN skin has an example of that file https://multifunction.codeplex.com/SourceControl/latest#popupskin.ascx
I have used DotNetOpenAuth previously in an ASP.net website and it works fine. But now I wanted to create a Silverlight app. Unfortunately I can't reference DotNetOpenAuth.dll, since this is not compiled against the Silverlight CLR. Is there a solution to use open authentication from Silverlight?
DotNetOpenAuth currently has this as an open issue for the group. Here's the link for the post and here is the link for the tracked item. There is this control a third party created, however it appears to me like it is not very secure so use it at your own risk. I only mention it because it could be a potential band-aid depending on the needs of your project.
I'm registered to a site which uses a silverlight application that shows some personal information.
My goal is to be able to read some data from the silverlight application.
Is it possible?
I know that this could be done to a regular web page using curl.
but, what about silverlight application?
Does it store the information to a file or something like that?
Thanks
You can use White, a tool for automating windows applications, to get information out of a running Silverlight application. White is mainly used to perform functional testing of applications, but it should allow you to extract information from the application as well.
Look here for an example of White and Silverlight: http://www.codeplex.com/wikipage?ProjectName=white
I would like to implement basic login and authentication in my Silverlight application. I have a users table with username and password columns and ideally would like to:
create a login screen (can do)
validate the login (can do)
create a "session token" that times out after X hours
route certain pages based on user authenication
Im not quite sure of the best way of doing this, has anyone had any experience?
In my app so far, Im using the Silverlight navigation framework, if that makes a difference...
You might try setting up a Silverlight WCF/RIA application from the Wizard. The wizard will generate code to do most of the things that you mentioned. Digging into that will probably give you a good idea of how you want to do it, or you can modify the generated code to get what you want.
Is there a good way to get Facebook Connect onto a Silverlight page? All I really need is simple authorization/registration. I've looked into the facebook developer toolkit, but the documentation is more or less non-existent for Silverlight, and I didn't really get anywhere with it.
Is there a good tutorial or a working library for adding Facebook Connect into a Silverlight app? Or is the best way to run Silverlight in Windowwless mode with HTML overlayed on top?
Are you looking for something like that? http://apps.facebook.com/chatmotion/
Before developing this small test app i took a look at these samples: http://facebooktoolkit.codeplex.com/releases/view/39727
Make sure to download the newest source code of the Facebook Development Kit for .NET and build it yourself since the release version(January) didn't work for me correctly.
Let me know if you have any problems.
I've decided to use the WebBrowser control that was added in Silverlight 4 to accomplish this.