开发者

Stand-alone Silverlight Web Application that need Authentication

I am writing a stand-alone Silverlight Web Application that has the ability for users to log-in.

I also wrote a WCF server that has a service method that gets a username + password and returns true/false if the user exists in the database and t开发者_C百科he password is correct.

Because this web application is stand alone ==> I can't use the build in ASP.NET Authentication.

Is there some way to deal with this log-in in some easy way (maybe to use some exist classes)?

Is there some existing class that can enable the 'Stay signed in'?

(I'm not using RIA Services in my code)

Thanks for any help.


If you need to authenticate on a server that does not support ASP.NET you need another server side programming platform to create the required functionality that will run on the server. It could be any kind of Server side script, ranging from PHP to Node.js depending on what is available on the server.

This will probably mean that you will have to rewrite the client a bit as these platforms will use different serialization (JSON) and web service protocols (REST)

EDIT

Now that the question is clear (the Membership and Role database is not available) you have several options:

  1. Try to get the database installed (easiest)

  2. Use a file-based database (E.g., SQLServer Compact) that can be deployed along with your application (harder because you will have to setup the standard filling of the database, but this might help)

  3. Write a custom Membership and Role provider that authenticates against a different and available store such as Active Directory (hardest)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜