Click or drag to resize

VGSecurityManagerIsAnonymousSessionSupported Method

Indicates whether an anonymous sessions are supported by the current application.

Namespace:  Novalys.VisualGuard.Security
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.1.831.19 (2019.1.0831.19)
Syntax
public static bool IsAnonymousSessionSupported()

Return Value

Type: Boolean
true if an anonymous role is defined for the application, false otherwise.
Exceptions
ExceptionCondition
VGConfigurationExceptionThe configuration file is not valid

or

A problem occurs during the connection to the repository.

or

The version of the repository or the version of the permissions is not supported by the application.
Remarks
The application supports the anonymous session when a role is specified as anonymous role for your applcation and the option anonymousSessionSupported of your Visual Guard configuration file is equal to true.

To define an anonymous role, you must be connected to the repository with the Visual Guard console and modify the property Anonymous Role of your application.

After modifying this property, you have to regenerate the Visual Guard configuration file of your application or edit it to modify the option anonymousSessionSupported.

See Also