加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

webservices

发布时间:2020-12-16 21:49:25 所属栏目:安全 来源:网络整理
导读:CREATE WEB SERVICE Validate_User TYPE 'raw' AUTHORIZATION ON USER "public" AS select 'OK' from Dummy; I'm not familiar with ASP.Net MembershipProvider,but an alternative would be to create an SA web service with AUTHORIZATION ON and then a
CREATE WEB SERVICE Validate_User
  TYPE 'raw' 
  AUTHORIZATION ON
  USER "public"
  AS select 'OK' from Dummy;

I'm not familiar with ASP.Net MembershipProvider,but an alternative would be to create an SA web service with AUTHORIZATION ON and then attempt do a web service call to the SA web service providing the user ID/PWD to verify that the credentials were correct.

E.g.

CREATE WEB SERVICE Validate_User
  TYPE 'raw' 
  AUTHORIZATION ON
  USER "public"
  AS select 'OK' from Dummy;

Then start the SQL Anywhere server using "-xs http" switch

Then send a request to?http://username:password@yourhost.com/Validate_User?(or equivalent using Ado.Net). If the credentials are correct,you will get an "OK" response back. If not,you will get an error back.

Of course,you should use HTTPS so that the credentials are transferred securely and therefore you should add "SECURE ON" to the web service definition. (Exercise left to the reader - see "-xs https" server switch in the docs :-).


调用存储过程来展现josn

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读