如何在ASP.Net中授权控制台应用程序 [英] How to authorise console application in ASP.Net
问题描述
嘿伙计们,我只是想知道是否有人在使用WCF验证Web应用程序中的控制台应用程序方面有任何经验。我尝试了很多解决方案,但它们似乎都要求用户使用.NET内置的Role和Membership类。问题是我的控制台应用程序没有用户名或密码,所以我不太清楚如何验证它。
这是我试过的(其他很多东西)
浏览WCF
我的应用程序中的登录页面是通过数据库验证的,而不是通过ASP的内置成员身份验证,因此我不知道如何在我的场景中完成上述工作。
即使WFC不是正确的解决方法,我也很乐意接受建议。
感谢您的帮助
我相信您必须自定义不同的服务提供商,这些链接可能对您有所帮助
使用WCF身份验证服务时自定义用户登录 [ ^ ]
使用Web的自定义MembershipProvider和RoleProvider实现服务 [ ^ ]
Hey guys, I'm just wondering if anyone has any experience in using WCF to authenticate a console application in a web application. I have tried many solutions but they all seem to require the user to use .NET's built in Role and Membership classes. The problem is my console application doesn't have a username or password so I'm not quite sure on how to authenticate it.
This is what I have tried (amounst many other things)
Walk through WCF
The login page in my application is authenticated through the database and not through ASP's built in membership so I don't know how to make the above work in my scenario.
Even if WFC is not the correct way to go about this I am very open to suggestions.
Thanks for the help
I believe you have to customize different service providers, these links may be helpful for you
Customize User Login When Using the WCF Authentication Service[^]
Custom MembershipProvider and RoleProvider Implementations that use Web Services[^]
这篇关于如何在ASP.Net中授权控制台应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!