[英]Is it possible to create a DNN User without creating the membership information?
I have a custom authentication provider to handle the username and passwords. 我有一个自定义的身份验证提供程序来处理用户名和密码。 I can create the actual DNN user account without a problem.
我可以毫无问题地创建实际的DNN用户帐户。 What I don't want to do is have to repeat or add additional membership information to the aspnet_membership table that DNN uses.
我不想做的是必须向DNN使用的aspnet_membership表重复或添加其他成员信息。 ]
]
I don't want DNN to update fields such as LastActivityDate and the like on the membership tables. 我不希望DNN更新成员资格表上的字段,例如LastActivityDate等。 I just want to use my authentication provider and a DNN user to manage roles and access within DNN.
我只想使用身份验证提供程序和DNN用户来管理DNN中的角色和访问。
Clarification: 澄清:
What I'm really wanting to do is use the DNN UserAuthentication table and a user in the DNN Users table but not have any aspnet_User or aspnet_Membership information associated with it. 我真正想做的是使用DNN UserAuthentication表和DNN Users表中的用户,但没有任何与之关联的aspnet_User或aspnet_Membership信息。 The Authentication is provided by a separate system - think Twitter or Live ID - I don't want DNN to have any passwords.
身份验证由单独的系统提供-想想Twitter或Live ID-我不希望DNN拥有任何密码。 Is that possible?
那可能吗?
If you create your own provider and replace the ASP.NET Membership provider, there would be nothing writing to those tables, so you will be fine. 如果您创建自己的提供程序并替换ASP.NET Membership提供程序,则不会在这些表中写入任何内容,因此可以。
Updated Per Clarification 更新的澄清度
Not directly, but you could do various things to fake out the system if you will, by setting default passwords for the user accounts or similar when you actually go through and create the user. 不是直接的,但是您可以做各种事情来伪造系统,方法是在实际创建用户时设置用户帐户或类似帐户的默认密码。
If you want, e-mail me and I can point you in the right direction. 如果需要,请给我发送电子邮件,我可以为您指明正确的方向。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.