London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Class SecurityConfigurationSection

Implemented as a thread-safe singleton class

Inheritance
System.Object
SecurityConfigurationSection
Namespace: Mediachase.Commerce.Security.Configuration
Assembly: Mediachase.Commerce.dll
Version: 13.30.0
Syntax
public class SecurityConfigurationSection : ConfigurationSection

Properties

Cache

Config settings which define where caching is enabled and timeouts related to it.

Declaration
[Obsolete("This setting is no longer used, Use SecurityOptions instead. Will remain at least until July 2021")]
public SecurityCacheElement Cache { get; }
Property Value
Type Description
SecurityCacheElement

The cache.

Connection

Gets the connection.

Declaration
public SecurityConnectionElement Connection { get; }
Property Value
Type Description
SecurityConnectionElement

The connection.

DefaultProviderName

Gets the default security provider.

Declaration
public string DefaultProviderName { get; }
Property Value
Type Description
System.String

The default provider.

EnablePermissions

Gets a value indicating whether to enable permission checks in Commerce Manager.

Declaration
public bool EnablePermissions { get; }
Property Value
Type Description
System.Boolean

true if enable permission checks; otherwise, false.

EnableSecurityScope

Gets a value indicating whether to enable security scope for supporting per-organization permissions. No longer used.

Declaration
[Obsolete("This setting is no longer used. Will remain at least until January 2019")]
public bool EnableSecurityScope { get; }
Property Value
Type Description
System.Boolean

true if enable security scope; otherwise, false.

Instance

Singleton instance

Declaration
public static SecurityConfigurationSection Instance { get; }
Property Value
Type Description
SecurityConfigurationSection

The instance.

Providers

Gets the collection of security providers.

Declaration
public SecurityProviderElementCollection Providers { get; }
Property Value
Type Description
SecurityProviderElementCollection

The providers.

Roles

Maps roles in Commerce Manager (the name) to a custom string (the value) for UI purposes. This setting is no longer used.

Declaration
[Obsolete("This setting is no longer used. Will remain at least until January 2019")]
public RoleElementCollection Roles { get; }
Property Value
Type Description
RoleElementCollection

SingleSignOn

Enable SSO for Commerce Manager. This setting is no longer used.

Declaration
[Obsolete("This setting is no longer used, for SSO support, see information about ASP.NET Identity. Will remain at least until January 2019")]
public SingleSignOnConfiguration SingleSignOn { get; }
Property Value
Type Description
SingleSignOnConfiguration

Methods

GetRole(String)

Returns roles mapped to the key (name)

Declaration
[Obsolete("This method is no longer used. Will remain at least until January 2019")]
public RoleDefinitionElement GetRole(string key)
Parameters
Type Name Description
System.String key

The key.

Returns
Type Description
RoleDefinitionElement

The corresponding RoleDefinition if it exists; otherwise null.