Click or drag to resize

VGSecurityManagerReplaceCurrentPrincipal Property

Gets or sets a value indicating if the principal of the current thread (CurrentPrincipal) must be replaced by the Visual Guard principal after an authentication.

Namespace:  Novalys.VisualGuard.Security
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2018.1.720.18 (2018.1.0720.18)
Syntax
public static bool ReplaceCurrentPrincipal { get; set; }

Property Value

Type: Boolean
true to replace the current principal of the thread, false otherwise.
Remarks
Setting this value will only be effective if you set it before using the Authenticate(String, String, VGAuthenticationMode) method. By default the value is true. If your application already uses CurrentPrincipal properties (with a WindowsPrincipal for example), you can set the value to false.
See Also