Visual Guard Class Library Documentation

How to integrate Visual Guard in SharePoint

To integrate Visual Guard in your sharepoint web site you have to:

 

Modify the authentication type in Centrale Sharepoint Administration Console

                Membership provider name

            Provider

 

Integrate Visual Guard in the adminstration console of Sharepoint

Modify the web.config file of the Central Sharepoint Administration Console

<membership defaultProvider="VGMemberShipProvider">
	<providers>
		<add 
		  name="VGMemberShipProvider"
		  type="Novalys.VisualGuard.Security.WebForm.VGMemberShipProvider, Novalys.VisualGuard.Security.WebForm" 
		/>
	</providers>
</membership>
<roleManager defaultProvider="VGRoleProvider" enabled="true">
	<providers>
		<add 
		  name="VGRoleProvider"
		  type="Novalys.VisualGuard.Security.WebForm.VGRoleProvider, Novalys.VisualGuard.Security.WebForm"
		/>
	</providers>
</roleManager>
<add type= "Novalys.VisualGuard.Security.WebForm.VGHttpModule, Novalys.VisualGuard.Security.WebForm" name="VGModule" />

 

Referencing Visual Guard assemblies

In order to use Visual Guard, you must add references to Visual Guard assemblies:

 

Description of Visual Guard assemblies:

 

Give authorisation to the role "Administrator"

this step is use to give authorisation to the administrator to acces to "Operations" and "Application management" in the administration console of Sharepoint.

The administration page of the console are in "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\ADMIN ".

  1. Open: "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\ADMIN\web.config"
  2. Add the instruction bellow in the section "<system.web>":
<authorization>
<allow roles="Administrator"/>
</authorization>

important.png The role "Administrator" has to be created in Visual Guard.

 

Integrate Visual Guard in the Sharepoint web site

Modify the web.config file of the Central Sharepoint Administration Console

<membership defaultProvider="VGMemberShipProvider">
	<providers>
		<add 
		  name="VGMemberShipProvider"
		  type="Novalys.VisualGuard.Security.WebForm.VGMemberShipProvider, Novalys.VisualGuard.Security.WebForm" 
		/>
	</providers>
</membership>
<roleManager defaultProvider="VGRoleProvider" enabled="true">
	<providers>
		<add 
		  name="VGRoleProvider"
		  type="Novalys.VisualGuard.Security.WebForm.VGRoleProvider, Novalys.VisualGuard.Security.WebForm"
		/>
	</providers>
</roleManager>
<add type= "Novalys.VisualGuard.Security.WebForm.VGHttpModule, Novalys.VisualGuard.Security.WebForm" name="VGModule" />

 

Referencing Visual Guard assemblies

In order to use Visual Guard, you must add references to Visual Guard assemblies:

 

Description of Visual Guard assemblies:

 

Configure Visual Guard

Declaration of Sharepoint applications in Visual Guard

 

 

SharePoint Administrattion Console

SharePoint Web site

Application Type

ASP.Net Web Site or Service (.Net 2.0 or Higher)

Runtime integration

The visual Guard runtime is already integrated in the application

Application Path

C:\inetpub\wwwroot\wss\VirtualDirectories\31670

C:\inetpub\wwwroot\wss\VirtualDirectories\80

Advanced Option

Select options you want

 

Create "Administrator" Role

  1. Select the application in the Visuyal Guard administration console,
  2. Create the  role "Administrator"
  3. Grant this role to the administraor user.

 

Create permissions

Sample:  when you suppress an application in sharepoint you can authorise to suppress the content database too. In our sample we want to suppress this option to the user with the role "Application administrator".

  1. Create the role "Application administor" in Visual Guard in application "Sharepoint administration console",
  2. Add this role in the file: C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\ADMIN\web.config
  3. In visual Guard console in the property "Other assemblies" add the assembly: C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\CONFIG\ADMINBIN\Microsoft.SharePoint.ApplicationPages.Administration.dll. This assembly is used to securise the aspx pages of adminstration console of Sharepoint.
  4. Create a permission,
  5. Create a property action,
  6. Select the page "Microsoft.SharePoint.ApplicationPages / DeleteWebApplicationPage ",
  7. Select the control: "RadDeleteContent",
  8. Put the property "Visible= False",
  9. Validate.

 

 

See Also

Debugging Visual Guard Security Actions
How to apply security in your application
How Visual Guard secures an application
How to generate or edit the Visual Guard configuration files

How to integrate Visual Guard in WCF applications