简体   繁体   English

是否可以在不创建成员资格信息的情况下创建DNN用户?

[英]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.

相关问题 成员资格创建用户providerError - Membership create user providerError 简单成员资格:我可以在不引用webmatrix的情况下创建用户吗? - Simple Membership: can I create a user without referencing webmatrix? 如何通过成员身份创建用户,而无需在创建后登录到其帐户? - How do I create a user through membership without being logged into their account after creation? asp.net成员资格创建用户错误 - asp.net membership create user error 在另一个Membership.ApplicationName中创建用户 - Create user in another Membership.ApplicationName C# 创建用户控件而不创建新项目 - C# Create user control without creating new project 如何使用成员资格提供程序在Sitecore用户管理器中创建用户 - How to Create user in Sitecore User Manager using membership provider 是否可以在没有ASP.NET的情况下创建“用户帐户” Windows应用程序? - Is it possible to create a ‘user account’ windows application without ASP.NET? 是否可以在没有会员提供者的情况下使用登录状态控制? - Is it possible to use login status control without the membership provider? 在ASP.NET中,是否有一种方法可以在不将用户实际提交到成员资格数据库的情况下测试成员资格的创建? - In ASP.NET, is there a way to test membership creation without actually committing the user to the membership database?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM