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.SecurityAssembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2016.0.105.16 (2016.0.105.16)
Syntax
C# |
---|
public static bool ReplaceCurrentPrincipal { get; set; } |
Visual Basic |
---|
Public Shared Property ReplaceCurrentPrincipal As Boolean Get Set |
Property Value
Type: Booleantrue 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.