SharePoint custom Web Parts let you access multiple ColdFusion applications from the SharePoint server using Single Sign-On (SSO). After signing in, users can access multiple secure ColdFusion applications by accessing ColdFusion services from multiple Web Parts.
To make a ColdFusion application available from SharePoint, use the CFSharepoint SSO WebPart template. This template is a customized version of PageViewer WebPart. It enables you to pass SSO credentials to the ColdFusion application. Download this template from the Adobe website or copy it from the ColdFusion 9 DVD.
Remember these points:
- Web Parts support only the native single sign-on solution; other pluggable single sign-on services are not supported.
- Only single sign-on credentials are passed to the ColdFusion application. The ColdFusion application must have the necessary logic to retrieve the credentials and login to the application.
Deploy the CF9SSOWebPart.wsp Web Part for SharePoint Portal Server 2007
To configure single sign-on for SharePoint Server 2007, deploy the CF9SSOWebPart.wsp file to the SharePoint server.
- Copy the CF9SSOWebPart.wsp file to the BIN folder within the Web Server extensions. It is normally located at Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN in the SharePoint server.
- To deploy the solution to SharePoint, use the command prompt to navigate to Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN and enter the following commands, as required.
To delete the solution if it is already present:
STSADM.EXE -o deletesolution -name CF9SSOWebPart.wsp -override
To add the solution to SharePoint:
STSADM.EXE -o addsolution -f CF9SSOWebPart.wsp
To deploy the solution to the configured website by specifying the URL:
STSADM.EXE -o deploysolution -name CF9SSOWebPart.wsp -url
-local -allowGacDeployment To deploy the solution to all the configured websites:
STSADM.EXE -o deploysolution -name CF9SSOWebPart.wsp -local -allowGacDeployment
Import the CF9SSOWebPart.wsp Web Part into a Web Part Page
- Navigate to the web page on the SharePoint server where you want the Web Part to be accessible.
- In the Web Part page, click Site Actions > Site Settings.
- In the Site Settings page, click Galleries > Web Parts.
- In the Web Part gallery, click Upload in the toolbar pane.
- Select the CF9SSOWebPart.wsp Web Part.
- Enter the following details in the toolbar pane.
- URL of the ColdFusion application to access
- The form field name as the User ID
- The form field name as the password
- Name of the SSO application where the credentials are configured
Once the Web Part is deployed, it takes the credentials from the SharePoint Single Sign-On database (based on the application name entered in the Tools Pane). These credentials are transferred to the ColdFusion application through the URL (provided in the Tools Pane) in a FORM containing the specified form fields.
Using cfsharepoint
Sharepoint integration with ColdFusion helps you dynamically manage user lists, views, and groups; work with images and document workspaces; and use search effectively. The cfsharepoint tag lets you create new lists, retrieve list items, and update list items on the SharePoint server.
The following example shows how to create a picture library list called “getpics”.
< action ="create new folder" login= "#login#" name="collection1" params="#{strListName=" strparentfolder=""> myimage = filereadbinary(expandpath("Bird.jpg")); //convert the image into byte array to pass as input for "upload" action. baseimage = filereadbinary(expandpath("bird.jpg")); //convert the image into byte array to pass as input for "upload" action.
To check and ensure that all the updates are made, you can retrieve the list items using code like the following:
SUCCESS
Access ColdFusion from SharePoint using custom Web Parts
You can access ColdFusion applications from within SharePoint using custom Web Parts. You can create a custom Web Part using the Page Viewer Web Part template that is shipped, by default, with SharePoint services 2.0 and 3.0, and Microsoft Office SharePoint Portal Server 2003 or 2007.
- From the SharePoint Server page, click Modify Shared Page.
- Select Add Web
Ref : www.adobe.com
Have you gotten this to work? We got it installed, but aren't getting prompted for credentials.
ReplyDelete