从Web服务到asp.net Web应用程序验证用户 [英] Authenticate User from web service to asp.net web application

查看:64
本文介绍了从Web服务到asp.net Web应用程序验证用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我拥有必须创建Web服务的asp.net Web应用程序,通过此Web服务必须连接到Web应用程序

I Have asp.net web application for which have to create a web service , through this web service have to connect to web application

并验证用户和进程数据。

and authenticate user and process data.

推荐答案

Hello There,

Hello There,

创建Web服务并将凭证传递给webservice函数。在该功能中编写认证逻辑,与数据库通信以检查所提供的用户ID和密码是否存在,如果存在则返回usedId&如果不存在则返回
null value。

Create a web service and pass credential to webservice function. write authentication logic in that function which communicate with database to check the provided userid & password is exist or not, if exist then return usedId & if not exist return null value.

现在在Login按钮上调用此webservice函数单击并检查返回值是否为null然后用户进行身份验证&如果没有告诉用户重试另一个凭证

Now call this webservice function on Login button click and check if return value is not null then user authenticated & if not tell user to retry with another credentials

干杯

Dinesh


这篇关于从Web服务到asp.net Web应用程序验证用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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