Loads the permission for an anonymous session associated to the specified windows identity
Namespace: Novalys.VisualGuard.SecurityAssembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2017.0.101.17 (2017.0.101.17)
Syntax
C# |
---|
public static void LoadAnomymousSecurity( WindowsIdentity identity ) |
Visual Basic |
---|
Public Shared Sub LoadAnomymousSecurity ( identity As WindowsIdentity ) |
Parameters
- identity
- Type: System.Security.Principal..::..WindowsIdentity
the identity for which an anonymous session is loaded.
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.
Exceptions
Exception | Condition |
---|---|
Novalys.VisualGuard.Security..::..VGAnonymousSessionNotAllowedException | The application does not allowed anonymous session or the role granted to the anonymous session is not valid. |
Novalys.VisualGuard.Security..::..VGConfigurationException | The 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. |