I have a scenario and I really need your help. I have a Silverlight Business Application which comes with a preconfigured essential Gui like Login, ApplicationName etc. I configured a database with aspnet_regsql.exe and started using this database with my application like registering user, authenticating users etc. But this is not the solution I am looking for. I have following problems which this template doesn’t fullfill.
- I have custom tables and a custom gui for creating users (of different types) which means I can’t go with asp.net’s tables (Is it so?)
- I want my authentication web service to be a wcf service and be served on a server which is supposed to serve other services.
- I want to create my own rules and I want to assign these roles to user’s based upon my own GUI.
- I want my WebContext to work with my wcf service and give me all the things it is currently giving in case of Silverlight Business Application Template, like isAthenticated, isLoggedIn, isLoggingIn etc.
How should I move on, any ideas? Thanks
Not really, you can use the original authentication service (deriving from AuthenticationBase if memory serves), but need to replace the role and membership providers in the web config, with your custom ones. That way you can use your own tables.
WCF Ria provides built in authentication, it’s a pretty good solution and – in my experience – works pretty well.
You can do that with custom role and membership providers, whatever you use is up to you.
The Authentication service from WCF Ria generates a WebContext object client-side. it contains the functionality you need.