in

InfoPath Dev

Three ways to configure provider permissions in web.config

Downloads: 42 File Size: 68.5kB
Posted By: ErnestoM Views: 103
Date Added: 08-19-2008

There are three ways of entering providers in web.config. This document will provide a simple scenario which will illustrate the use of providers as they relate to QdEmailFlow.

Steps

1. Create two document types based on QdCatalogBase.xsn. Call these qForm1 and qForm2. In the Permissions tab make sure to check the Check Permissions checkbox before saving.
2. Modify web.config according to each one of the scenarios below. Save web.config.
3. Add two documents to each of these document types, one assigned to your user alias, one assigned to someone else. Note the DocID of each.
4. Remove yourself from all groups, such that you have NO permissions.
5. Open the documents by navigating to http://<servername>/QdabraWebService/Documents/<docID>/<docID>.xml in Internet Explorer. The user will be able to open the documents assigned to himself, due to the fact that QdEmailFlow will grant access.

Scenarios

  • Default: In this scenario, we simply add the document type name into web.config providers node. Because qForm2 is not listed for the provider, documents in this document type configuration will not be covered by these QdEmailFlow permissions:

<provider name="QdFlow" type="Qdabra.Dbxl.QdFlow.PermissionProvider, Qdabra.Dbxl.QdFlow" connectionString="Data Source=<sqlinstance>;Initial Catalog=<database>;Integrated Security=True">
<doctypes>
<doctype name="QdEmailFlow" />
<doctype name="qForm1" />
</doctypes>
</provider>

  • Exclusion: In this scenario, we will exclude qForm2 from the provider, and include all other document types.

<provider name="QdFlow" type="Qdabra.Dbxl.QdFlow.PermissionProvider, Qdabra.Dbxl.QdFlow" connectionString="Data Source=autonomy2\development;Initial Catalog=QdabraSamples-DBXL-TEST3;Integrated Security=True">
<doctypes exclusionRule="true">
<doctype name="qForm2" />
</doctypes>
</provider>

  • Inclusion: In this scenario, we will include QdEmailFlow and qForm1 in the provider, and therefore exclude all other document types.

<provider name="QdFlow" type="Qdabra.Dbxl.QdFlow.PermissionProvider, Qdabra.Dbxl.QdFlow" connectionString="Data Source=autonomy2\development;Initial Catalog=QdabraSamples-DBXL-TEST3;Integrated Security=True">
<doctypes exclusionRule="false">
<doctype name="QdEmailFlow" />
<doctype name="qForm1" />
</doctypes>
</provider>

Additional notes:

  • The Document Type names within the provider node are not case-sensitive.
  • Exclusion and inclusion providers are mutually exclusive.
  • Every <provider> node must have a valid connection string in order to work

Filed under: ,

Comments

No comments exist for this file.
Copyright © 2003-2007 Qdabra Software. All rights reserved.
View our Terms of Use.