The
offline mode gives mobile users greater control over security. It allows you to
work on an application in secure mode without being connected to the
VGRepository.
Requirements
To
use the offline mode you must have version 2.8 of Visual-Guard.
Scenario
The user connects to the
application with the offline mode activated. Visual-Guard will
automatically save the role or roles that the user has selected in the
OfflineStore
When Visual-Guard detects
that the VGRepository is no longer available and that the offline mode is
activated, it will load the security settings from the saved copy found in
the OfflineStore,
When Visual-Guard detects
that the VGRepository is available again, it will synchronize the Event
Viewer.
Usage
To
use the offline mode, you must generate the Visual-Guard configuration files
and modify the OfflineStore property
Implementation
Connect to a VGRepository,
Select an Application,
Select the action
"regenerate the VG configuration file", (a window will open),
Select "User" or
"Machine" for the Offline property,
Generate the new
configuration files for your application,
Launch your application
with the accessible repository,
Sign in as a user and
select a role or roles,
Close your application.
Using the application
Using the application
Launch your application,
Sign in as the same user,
Your application will open
(without being connected to the repository),
Close your application.
Synchronizing the application with the VGRepository
Connect your computer to
the network (a connection to the VGRepository will be made automatically)
Launch your application,
Sign in as any user,
Visual-Guard will synchronize the Event Viewers.
Interacting with applications in offline mode
The applications being managed in offline mode may use the following
VGSecurityRuntime events:
CheckForOnlineStatus:
Allows the repository detection method to be overridden.
AcceptOfflineMode: Allows
rejection of the offline mode even if it has been activated.
UnableToSaveOffline: This
event is launched when there has been a problem saving user data for
offline mode. The following errors start this event:
The OfflineStore is
currently being used by the same application,
The OfflineStore is
full,
There is a connection
problem while saving user data.
Warnings
When
Visual-Guard assemblies change, VGLogEntries are lost upon synchronization. To
avoid this loss, you must connect to the VGRepository before changing
assemblies.
Using
the offline mode for ASP applications is not recommended.
Restrictions:
Offline mode cannot be used
with the Visual-Guard API
Offline mode is not
supported with the console,
It is not possible to
change a person's Credentials.
Glossary:
OfflineStore Property:
None: offline mode is not
active,
User: data will be saved in
the current Windows user's profile,