无法让自定义会员提供商与 Sitecore 6 配合使用
我按照 Sitecore 提供的会员提供商文档中的说明进行操作,但无法让我的会员提供商正常工作。
具体来说,在 web.config 中,我更改了 sitecore 提供程序上的“realProviderName”属性以指向我的提供程序。然而,这并没有起到任何作用。
我意识到“defaultProvider”属性被设置为“switcher”提供程序,因此我将其更改为直接指向我的提供程序,并且它有效,但我不确定这样做是否会在其他地方引起问题。 ?
以前有人这样做过吗
I followed the directions in the Membership Providers document provided by Sitecore, but I was unable to get my membership provider to work correctly.
Specifically, in the web.config, I changed the "realProviderName" attribute on the sitecore provider to point to my provider. However, this didn't do anything.
I realized that the "defaultProvider" attribute was set to the "switcher" provider, so I changed that to point directly at my provider, and it worked, but I'm not sure if I'm causing problems elsewhere by doing this...
Has anyone done this before?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您可能想要做的是设置
defaultProvider="sitecore"
然后在名为sitecore
的提供程序上将realProviderName
更改为名称您的定制提供商的。如果您想将某个域(即extranet
)存放在不同的成员资格数据库中,则可以使用切换器。我发现 Sitecore 在其文档中给出了示例因为这确实有效。
I think what you probably want to do is set the
defaultProvider="sitecore"
then on the provider namedsitecore
change therealProviderName
to be the name of your custom provider. The switcher is used if you want to house a certain domain (i.e.extranet
) in a different membership database.I found that the example Sitecore gives in their docs for this does indeed work.