Class ConfigSecurityManager
Provides security manager implementation that authenticates and authorizes users from configuration
Inheritance
System.Object
ConfigSecurityManager
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.dll
Syntax
public class ConfigSecurityManager : DaemonWithInstrumentation<IApplicationComponent>, IDaemon, IDaemonView, INamed, ILocalizedTimeProvider, IInstrumentable, IExternallyParameterized, ISecurityManagerImplementation, ISecurityManager, IApplicationComponent, IDisposable, IConfigurable
Constructors
ConfigSecurityManager(IApplicationComponent)
Constructs security manager that authenticates users listed in the supplied configuration section
Declaration
public ConfigSecurityManager(IApplicationComponent director)
Parameters
ConfigSecurityManager(IApplication)
Constructs security manager that authenticates users listed in application configuration
Declaration
public ConfigSecurityManager(IApplication app)
Parameters
Fields
CONFIG_DESCRIPTION_ATTR
Declaration
public const string CONFIG_DESCRIPTION_ATTR = "description"
Field Value
Type |
Description |
System.String |
|
CONFIG_ID_ATTR
Declaration
public const string CONFIG_ID_ATTR = "id"
Field Value
Type |
Description |
System.String |
|
CONFIG_PASSWORD_ATTR
Declaration
public const string CONFIG_PASSWORD_ATTR = "password"
Field Value
Type |
Description |
System.String |
|
CONFIG_PASSWORD_MANAGER_SECTION
Declaration
public const string CONFIG_PASSWORD_MANAGER_SECTION = "password-manager"
Field Value
Type |
Description |
System.String |
|
CONFIG_PERMISSION_SECTION
Declaration
public const string CONFIG_PERMISSION_SECTION = "permission"
Field Value
Type |
Description |
System.String |
|
CONFIG_RIGHTS_SECTION
Declaration
public const string CONFIG_RIGHTS_SECTION = "rights"
Field Value
Type |
Description |
System.String |
|
CONFIG_STATUS_ATTR
Declaration
public const string CONFIG_STATUS_ATTR = "status"
Field Value
Type |
Description |
System.String |
|
CONFIG_USER_SECTION
Declaration
public const string CONFIG_USER_SECTION = "user"
Field Value
Type |
Description |
System.String |
|
CONFIG_USERS_SECTION
Declaration
public const string CONFIG_USERS_SECTION = "users"
Field Value
Type |
Description |
System.String |
|
Properties
ComponentCommonName
Declaration
public override string ComponentCommonName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
ComponentLogTopic
Declaration
public override string ComponentLogTopic { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Config
Returns config node that this instance is configured from.
If null is returned then manager performs authentication from application configuration
Declaration
public IConfigSectionNode Config { get; }
Property Value
InstrumentationEnabled
Declaration
[Config(Default = false)]
[ExternalParameter(new string[]{"instrumentation", "pay"})]
public override bool InstrumentationEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Azos.Apps.DaemonWithInstrumentation<Azos.Apps.IApplicationComponent>.InstrumentationEnabled
PasswordManager
Declaration
public IPasswordManager PasswordManager { get; }
Property Value
SecurityLogLevel
Declaration
[ExternalParameter(new string[]{"log", "security"})]
public MessageType SecurityLogLevel { get; set; }
Property Value
SecurityLogMask
Declaration
[Config(Default = SecurityLogMask.Custom)]
[ExternalParameter(new string[]{"log", "security"})]
public SecurityLogMask SecurityLogMask { get; set; }
Property Value
Methods
Authenticate(AuthenticationToken)
Declaration
public User Authenticate(AuthenticationToken token)
Parameters
Returns
Authenticate(Credentials)
Declaration
public User Authenticate(Credentials credentials)
Parameters
Returns
Authenticate(User)
Declaration
public void Authenticate(User user)
Parameters
Type |
Name |
Description |
User |
user |
|
Authorize(User, Permission)
Declaration
public AccessLevel Authorize(User user, Permission permission)
Parameters
Returns
Declaration
protected override void DoConfigure(IConfigSectionNode node)
Parameters
Overrides
DoSignalStop()
Declaration
protected override void DoSignalStop()
Overrides
DoStart()
Declaration
protected override void DoStart()
Overrides
DoWaitForCompleteStop()
Declaration
protected override void DoWaitForCompleteStop()
Overrides
GetUserLogArchiveDimensions(IIdentityDescriptor)
Declaration
public IConfigSectionNode GetUserLogArchiveDimensions(IIdentityDescriptor identity)
Parameters
Returns
LogSecurityMessage(SecurityLogAction, Message, IIdentityDescriptor)
Declaration
public void LogSecurityMessage(SecurityLogAction action, Message msg, IIdentityDescriptor identity = null)
Parameters
Implements
System.IDisposable
Extension Methods