Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/silverlight/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Silverlight 如何在AuthenticationService中使用CustomData_Silverlight_Forms Authentication_Wcf Ria Services - Fatal编程技术网

Silverlight 如何在AuthenticationService中使用CustomData

Silverlight 如何在AuthenticationService中使用CustomData,silverlight,forms-authentication,wcf-ria-services,Silverlight,Forms Authentication,Wcf Ria Services,身份验证服务的登录方法有四个参数,最后一个是字符串customData public T Login(string userName, string password, bool isPersistent, string customData); 我想知道如何使用这个customData参数。我看不出它是如何提供给成员资格提供者的(因为MembershipProviderValidateUser只接受用户名和密码),也看不到AuthenticationBase域服务是如何使用它的 我不明白的

身份验证服务的登录方法有四个参数,最后一个是字符串customData

 public T Login(string userName, string password, bool isPersistent, string customData);
我想知道如何使用这个customData参数。我看不出它是如何提供给成员资格提供者的(因为MembershipProviderValidateUser只接受用户名和密码),也看不到AuthenticationBase域服务是如何使用它的

我不明白的是这份文件中的陈述

customData:可选的特定于实现的数据。它没有被人使用 这个基类

如果基类未使用它,那么既然Login方法不是虚拟的,那么派生类如何使用它呢


作为登录过程的一部分,我需要传递额外的身份验证数据,我希望服务器端会有一些可扩展点,使使用customData成为可能。

AuthenticationBase实现IAAuthentication接口,这就是定义登录方法的地方。如果您创建自己的DomainService,直接实现IAAuthentication,而不是继承AuthenticationBase,则可以使用customData

 public T Login(string userName, string password, bool isPersistent, string customData);