Skip to content

IImpersonationManager interface

namespace: Serenity.Extensions   assembly: Serenity.Extensions

Decides whether a user can impersonate another one, from its options, the checks that always apply, and the IImpersonationPolicys. Pro registers one with AddImpersonation.

public interface IImpersonationManager

Members

name description
IsEnabled { get; } Whether impersonation is turned on, e.g. by the "Impersonation:Enabled" setting.
GetDenial(…) Gets why the impersonator can't impersonate the target, localized, or null when the impersonator can.

See Also