无法让自定义会员提供商与 Sitecore 6 配合使用

发布于 2024-08-07 23:53:30 字数 265 浏览 1 评论 0原文

我按照 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我一向站在原地 2024-08-14 23:53:30

我认为您可能想要做的是设置 defaultProvider="sitecore" 然后在名为 sitecore 的提供程序上将 realProviderName 更改为名称您的定制提供商的。如果您想将某个域(即 extranet)存放在不同的成员资格数据库中,则可以使用切换器。

我发现 Sitecore 在其文档中给出了示例因为这确实有效。

I think what you probably want to do is set the defaultProvider="sitecore" then on the provider named sitecore change the realProviderName 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文