Auto Login for WEB Parts in Non-SharePoint Website and More

I'd like to share a configuration available for default ASP.NET page, which is delivered together with ProjectWise Web Server.

For example: In order to Auto login into ProjectWiseServerV8i.bentley.com server Datasource using SSO you need to modify the Default.aspx to look like the following:

 <td rowspan="3" class="partBody" style='vertical-align: width: 25%'>
<pw:Navigation ID="navigation" ConnectionId="default" Title="Navigation" Height="700px" runat="server"
ProviderID="Bentley.ECOM.ProjectWiseProvider" Location="ProjectWiseServerV8i.bentley.com:Datasource" ConnectionInfo="">
</td>

There are several properties which can be changed to modify the default behavior of ProjectWise web parts in the default ASP.NET page.

Common properties for all web parts and LoginForm:

Note: automatic authentication works when credentials are specified for web parts. Specifying credentials for LoginForm will only show these values as default.

  • ConnectionId - identifies a set of controls which share same session and events. May be any alphanumerical value.
    This property must be specified for all controls that need to be connected together.
  • Location - specifies repository name to use for automatic authentication. For ProjectWise, this setting should contain fully qualified domain name (FQDN).
    This property should be specified only for the first control that shares the same ConnectionId. Required for automatic authentication.
  • ConnectionInfo - specifies the default credentials to be used when someone connects to a page. For ProjectWise logins this has format "username:;password:". To use SSO authentication automatically, set this property to an empty string - ConnectionInfo="".
    This property should be specified only for the first control that shares the same ConnectionId. Required for automatic authentication.

Common properties for all web parts:

  • RootPath - specifies default root folder to display for all web parts using same ConnectionId. ProjectWise path can be specified by prefixing it with "DMSFolder\". For example, "DMSFolder\MicroStation V8i", where "MicroStation V8i" is a name of a folder in ProjectWise datasource hierarchy.
    This property should be specified only for the first control that shares the same ConnectionId.

LoginForm properties:

  • AllowAuthentication - if set to false, this instructs LoginForm control to not render Login/Logout buttons. This is useful in custom authentication scenarios when authentication is executed manually, but data entry form is required.
  • AllowProviderChange - this property may be used in integration scenarios with other ECPlugin implementations.
  • AllowRepositoryChange - if set to false, LoginForm will not allow you to change Location.

ContentControl/PropertiesControl web part properties:

  • DisplayType - specifies the primary view for web part. Only FlexibleList, PropertyPane or Spatial are supported by ProjectWise Web Server.

PropertiesControl web part properties:

  • UseSessionKey - true or false; specifies whether the web part shows properties of currently displayed folder or shows them on demand (selecting Properties menu item). Default is false.

Search web part properties:

  • SearchMode - specifies the default mode of Search web part. Available modes are General and Advanced. Default is General.
  • LimitToRootPath - Specifies whether search results are limited to folders under RootPath. Has no effect if RootPath property is not specified for controls with same ConnectionId. Default is false.

JP