随笔分类 -  Datasnap

使用TRoleAuth类对DataSnap服务端的接口授权
摘要:使用Troleauth类,一种类似注视的代码进行授权,也是最简单和方便的方式,实现如下:unit ServerMethodsUnit1;interfaceuses System.SysUtils, System.Classes, System.Json, Datasnap.DSServer, ... 阅读全文
posted @ 2015-04-08 20:55 delphi老中医 阅读(527) 评论(0) 推荐(0)
设置TDSAuthenticationManager属性对DataSnap服务端的接口授权
摘要:先实现TDSAuthenticationManager的OnUserAuthticate事件对客户端认证:procedure TServerContainer1.DSAuthenticationManager1UserAuthenticate( Sender: TObject; const Pro... 阅读全文
posted @ 2015-04-08 20:40 delphi老中医 阅读(791) 评论(0) 推荐(0)
实现TDSAuthenticationManager的事件对DataSnap服务器的接口授权
摘要:我们只要实现DSAuthenticationManager1的OnuserAuthenticate和OnUserAuthorize事件,就可以对接口调用进行控制,事件如下:procedure TServerContainer1.DSAuthenticationManager1UserAuthenti... 阅读全文
posted @ 2015-04-07 23:52 delphi老中医 阅读(1007) 评论(0) 推荐(0)
DataSnap服务端的接口认证
摘要:在服务端只要实现DSAuthenticationManager1组件的OnuserAuthenticate事件,我们就可以完成客户端接入接口的认证,他的事件如下:procedure TServerContainer1.DSAuthenticationManager1UserAuthenticate(... 阅读全文
posted @ 2015-04-07 23:12 delphi老中医 阅读(792) 评论(0) 推荐(0)