Asp.Net Web服务的基于表单的身份验证 [英] Form based Authentication for Asp.Net webservices

查看:98
本文介绍了Asp.Net Web服务的基于表单的身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我已经创建了一个名为WebService1的Web服务,并且已经发布了它.为了使用Web服务,我创建了一个ConsumeService1.aspx表单
我想对该Web服务进行身份验证.我也创建了一个用户(项目-> ASP.NET配置->安全选项卡->用户->登录ID,密码和电子邮件ID).
Q1.此后的下一步是什么?
Q2.需要在< authentication>中编写哪些代码? & <授权> web.config文件中的标签?
Q3.是否需要创建一个Form(Login.aspx)来提供Userid&密码?

谢谢
Rajesh

Hi all, i have created a webservice named WebService1 and i published it. To consume the webservice i have created a form ConsumeService1.aspx
I want to put authentication to this webservice. Also i have created a user(project-->ASP.NET configuration-->Security tab-->Users-->Login id,Password & Emailid).
Q1. What is the next step after this?
Q2. What code need to write in <authentication> & <authorization> tags in web.config file?
Q3. Is it required to create a Form(Login.aspx) to give Userid & Password?

Thanks
Rajesh

推荐答案

您可以在此应用程序中检查以下链接,他们创建了Web服务,并通过login.aspx对Web服务调用进行身份验证.

使用MTOM Web服务和.NET 2.0批量发送文件 [
You can check the below link in this application they have created the Webservice and through login.aspx they are authenticating the webservice call.

Sending Files in Chunks with MTOM Web Services and .NET 2.0[^]



您想要下面给出的链接

ASP.NET 2.0中的表单身份验证 [如何使用C#.NET在ASP.NET应用程序中实现基于表单的身份验证 [
Hi
You would like the links given below

Forms Authentication in ASP.NET 2.0[^]

OR

How To Implement Forms-Based Authentication in Your ASP.NET Application by Using C#.NET[^]

Thanks.


这篇关于Asp.Net Web服务的基于表单的身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆