【问题标题】:Does Sitecore 8 allow to customize the role manager table?Sitecore 8 是否允许自定义角色管理器表?
【发布时间】:2015-05-15 23:17:35
【问题描述】:

我有一个外部数据库中的角色列表,可以作为 RESTful 服务公开。 Sitecore 是否允许编写 C# 代码,以便角色管理器可以获取和显示角色列表,而不是对这些角色进行硬编码?

如果有,该怎么做?

谢谢,

【问题讨论】:

    标签: sitecore customization role


    【解决方案1】:

    Sitecore 使用标准的 .NET 成员资格模型,因此您可以编写自己的自定义成员资格提供程序,并且应该能够从您的服务中提取角色。

    这些步骤通常涉及以下内容(来自linked SO post):

     1. Adding a connection string to connectionstrings.config 
     2. Adding membership/role provider definitions to the system.web section of web.config
     3. Activating switchers
     4. Creating a new domain for the users/roles from custom provider
     5. Adding domain/provider mappings
    

    一些链接:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-10-23
      • 1970-01-01
      • 2011-02-13
      • 1970-01-01
      • 1970-01-01
      • 2014-07-06
      • 1970-01-01
      • 2021-10-28
      相关资源
      最近更新 更多