Class SecurityConfigurationSection
Implemented as a thread-safe singleton class
Inheritance
Namespace: Mediachase.Commerce.Security.Configuration
Assembly: Mediachase.Commerce.dll
Version: 12.17.2Syntax
public class SecurityConfigurationSection : ConfigurationSection
Properties
ApplicationId
Unique identifier for application.
Declaration
[Obsolete("The concept of ApplicationID has been removed - ignore this property. Will remain at least until August 2018.")]
public Guid ApplicationId { get; }
Property Value
Type | Description |
---|---|
System.Guid | The application id. |
Cache
Config settings which define where caching is enabled and timeouts related to it.
Declaration
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 |
|
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 |
|
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. |