Click or drag to resize

VGAuthorizationStatus Enumeration

Defines all the authorization status

Namespace:  Novalys.VisualGuard.Security
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.1.831.19 (2019.1.0831.19)
Syntax
[FlagsAttribute]
public enum VGAuthorizationStatus
Members
  Member nameValueDescription
Failure1 The authorization fails.
UserNotFound2 The authorization fails. The user is not found in the repository
UserNotAuthorized4 The authorization fails. The user does not have any granted role for the application.
ProcessCanceled8 The authorization fails. The authorization process has been canceled by the user.
Success16 The authorization succeeds.
VersionNotCompatible32 The version of the permissions is not compatible with the application.
GroupSelectionInvalid64 The group selection mode doesn't match or not exists.
RoleSelectionInvalid128 The role selection mode doesn't match or not exists.
InProgress256 Is in Progress if GroupSelection or RoleSelection is Invalid.
Remarks
Since Status can be a combination (bit-flag) of enum values, you can't use the equality operator to compare them. To test if an authorization has failed, you must use this syntax:
if ((status & VGAuthorizationStatus.Failure) == VGAuthorizationStatus.Failure)
{
    // Authentication has failed
    if ((status & VGAuthorizationStatus.UserNotFound) == VGAuthorizationStatus.UserNotFound)
    {
        // The user is not found in the repository ...
    }
}
See Also