开发者

ASP.NET Membership Provider detached from a site

I'm making a webservice that开发者_StackOverflow社区 acts as user authentication module. You can add roles, users, update them and see if a user can connect to given username / password, if it's logged and so on.

Various applications would connect to the webservice in order to centralize user management.

I'm thinking of using ASP.NET's own Membership Provider classes (and ASPNETDB) as it seems to have most of what i'm looking for.

My problem is that most of the configurations have to be done in web.config (like the connection string to ASPNETDB, addictional user properies etc). Being a webservice, I do not need the configurations to access the webserice, I want to do all the operations (authentication, administration) programmatically.

Is this possible? How? Thanks


Sounds like you need to roll your own Membership/Role Providers. See this article for an example.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜