Silverlight 如何在AuthenticationService中使用CustomData
身份验证服务的登录方法有四个参数,最后一个是字符串customDataSilverlight 如何在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域服务是如何使用它的 我不明白的
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);