Oracle® Fusion Middleware Administrator's Guide for Oracle WebCenter Ensemble 10g Release 3 (10.3.0.1.0) E14114-01 |
|
![]() Previous |
![]() Next |
This chapter describes how to configure Oracle WebCenter Ensemble resources. It is divided into the following sections:
About Oracle WebCenter Ensemble Resources, describes what an Oracle WebCenter Ensemble resource is.
Registering a Resource, describes how to create a basic Oracle WebCenter Ensemble resource.
Advanced Resource Configuration, describes additional configurations of Oracle WebCenter Ensemble resources, including URL rewriting, resource roles, the Oracle WebCenter Interaction login token, and authentication.
Migrating Resources, describes how to export and import Oracle WebCenter Ensemble resources and their associated pagelets.
Working with Web Injectors, describes how to create web injectors, configure injection patters, and apply web injectors to resources.
Oracle WebCenter Ensemble resources are web applications registered in Oracle WebCenter Ensemble. A registered resource maps an internal URL, accessible by Oracle WebCenter Ensemble, to an external URL, accessible by end users. Any web application can be registered as a resource.
Registering a web application as an Oracle WebCenter Ensemble resource allows Oracle WebCenter Ensemble to do the following:
Proxy internal web applications to external addresses.
Manage authentication, both at the proxy level (Oracle WebCenter Ensemble controls access to resources using Oracle WebCenter Ensemble policies and roles) and at the resource level (Oracle WebCenter Ensemble provides credentials to proxied web applications).
Transform proxied web applications, including URL-rewriting and the use of Oracle WebCenter Ensemble and Oracle WebCenter Interaction adaptive tags.
Customize the user experience through custom login, logout, interstitial, and error pages.
You register a resource in Oracle WebCenter Ensemble using the Ensemble Console. The simplest Oracle WebCenter Ensemble resource has three configured properties:
Name.
Internal URL prefix, which is the URL of the application to be proxied.
External URL prefix, which is the URL that end users will use to access the application.
Once configured, all URLs starting with the Internal URL prefix are accessible via the External URL prefix. For example, if the Internal URL prefix is:
http://internalServer/foo
and the External URL prefix is:
http://externalServer/bar
the external path:
http://externalServer/bar/index.jsp
will map to:
http://internalServer/foo/index.jsp
and
http://externalServer/bar/baz/index.jsp
will map to:
http://internalServer/foo/baz/index.jsp
To register a simple resource in Oracle WebCenter Ensemble:
Launch the Ensemble Console.
Click the APPLICATIONS tab.
Click the Resources sub-tab.
To create a new resource, click Create new.
On the General page, in the Name box, type the name of the resource.
On the Connections page, in the Internal URL prefix box, type the URL to the internal web application to be proxied. For example, http://internalServer/foo/
.
In the External URL prefixes box, type the URL to be used to access the resource. This URL must be on the Ensemble Proxy server. You may specify a fully-qualified URL or a path relative to the Ensemble Proxy server. For example, http://externalServer/bar/
or just /bar/
.
Note: A fully-qualified external URL prefix must include the same port used by the Ensemble Proxy server unless the Use Proxy Port option is checked, in which case any specified port will be changed to an asterisk and Oracle WebCenter Ensemble will assume that the proxy's port is in the external URL. |
Click Save.
This section describes advanced configuration options for Oracle WebCenter Ensemble resources. It is divided into the following sub-sections:
When you enable URL rewriting, the Ensemble Proxy rewrites URLs in the proxied application that begin with the internal URL prefix so that they point to the external URL prefix. Oracle WebCenter Ensemble enables URL rewriting by default.
You should disable URL rewriting when the internal URL prefix and external URL prefix are identical. When this occurs, the user's DNS must resolve the URL to the Ensemble Proxy server, and the Ensemble Proxy server's DNS must resolve the URL to the internal resource. Because DNS only resolves IP and not port, both servers must listen to the same port.
To disable URL rewriting:
Launch the Ensemble Console.
Click the APPLICATIONS tab.
Click the Resources sub-tab.
Click the resource you want to edit.
On the General page, uncheck the box next to Enable URL Rewriting.
Click Save.
You can configure Oracle WebCenter Ensemble to send role information to proxied applications. You define the roles available for Oracle WebCenter Ensemble to send to the proxied application within the resource configuration. Policies determine which of these roles Oracle WebCenter Ensemble sends for a given user.
For details on policies and how they map to roles, see Chapter 6, "Policies and Rules."
Oracle WebCenter Ensemble sends roles in the HTTP header and are accessed by the proxied application using the Oracle WebCenter Interaction Development Kit (IDK) proxy API. For details on using the Oracle WebCenter Interaction Development Kit (IDK) proxy API, see the Oracle WebCenter Interaction Development Kit (IDK) documentation on the Oracle Technology Network at http://download.oracle.com/docs/cd/E13158_01/alui/idk/docs103/index.html
.
To configure roles to send to a proxied application:
Launch the Ensemble Console.
Click the APPLICATIONS tab.
Click the Resources sub-tab.
Click the resource you want to edit.
On the Roles page, type the names of the role or roles. Click Add to create additional roles.
Click Save.
The roles entered on the Roles page are the values that Oracle WebCenter Ensemble can send to the proxied application, based on what policy or policies are associated with the user.
Proxy Authentication describes how users log into Oracle WebCenter Ensemble resources. Oracle WebCenter Ensemble can facilitate authentication using a variety of methods, including basic authentication, HTML form-based authentication, and integration with third-party SSO products.
For details on Proxy Authentication, see Chapter 4, "Proxy Authentication."
Credential mapping allows Oracle WebCenter Ensemble to automatically supply credentials to proxied applications. The credentials can be a static set used for all users, credentials specific to the user and stored in the user's Oracle WebCenter Interaction user profile, or credentials used once by the user and captured and stored by Oracle WebCenter Ensemble in the Credential Vault. The Credential Vault allows users to authenticate once and then be logged in automatically by Oracle WebCenter Ensemble in future accesses to the proxied resource.
For details on credential mapping, see Chapter 5, "Credential Mapping."
The AquaLogic Interaction login token allows the Oracle WebCenter Ensemble resource to access the AquaLogic Interaction IPortletContext object. By default, the AquaLogic Interaction login token is not passed to the proxied resource.
To pass the login token to the proxied resource:
Launch the Ensemble Console.
Click the APPLICATIONS tab.
Click the Resources sub-tab.
Click the resource you want to edit.
On the CSP page, select Send ALI login token.
Click Save.
Ensemble Migration allows you to export and import Oracle WebCenter Ensemble resources and their associated pagelets. The exported resource configuration is stored in an XML file, which you can then import into another installation of Oracle WebCenter Ensemble.
To export a resource and its associated objects:
Launch the Ensemble Console.
Click the Administration tab.
Click the Migration sub-tab.
Click the Export tab.
Launch the resource picker by clicking Add Resource.
Select the resources you want to export. Click Add selected items.
Confirm the resources to be exported and click OK.
Click Export.
The File Download dialog box appears.
Click Save.
The Save As dialog box appears.
Navigate to the location on the local machine to which you want to save the file.
If desired, rename the file to something other than the default of ensemble_migration.xml.
Click Save.
The migration file is saved to the local machine. You can now import the migration file to any Oracle WebCenter Ensemble installation. now located on the local machine in the chosen location, and can be imported to any Ensemble installation.
To import a resource from an existing migration package:
Launch the Ensemble Console.
Click the Administration tab.
Click the Migration sub-tab.
Click the Import tab.
Type the full path to the migration package in the Import this file box.
Choose how you want to deal with duplicate resources by selecting Rename imported resource or Overwrite existing resource.
Click Prepare Import.
Depending on the content of the migration package, you might be prompted to update values for specific object properties. Follow the instructions on the screen.
Click Import.
On success, the Ensemble Console displays a list of imported objects and any autofixes that were completed during the import process.
A web injector inserts content into a specified location in the proxied resource page. The content may be any text, including HTML, CSS, JavaScript, and pagelet declarations.
To use a web injector with a resource, you must first create the web injector and then, from the resource configuration, apply the web injector to that resource.
Click the Applications tab.
Click the Web Injectors sub-tab.
Under the web injectors view, click Create New.
On the General tab, type a name and description.
On the Details tab, configure one or more injection patterns. For details, see Configuring Injection Patterns.
An Injection Pattern describes what the content is and where it is to be injected. An Injection Pattern can either be based on an existing web injector, or defined as a new pattern:
To base the Injection Pattern on an existing web injector, click Add Existing Injector.
To create a new pattern, click Define New Pattern.
The following table describes the configuration options for a new Injection Pattern:
Table 3-1 Injection Pattern Configuration Options
Field | Description |
---|---|
What to Inject |
Type the content to be injected into the What to Inject box. Content may be any text, including HTML, CSS, JavaScript, and pagelet declarations. To automatically populate the What to Inject box with a pagelet declaration, select a pagelet from the Insert pagelet declaration for drop-down list and click Insert. |
Where to inject |
Define where in the resource's output the injection occurs by selecting one of the following:
Note: Even when Apply to underlying pagelets is selected, the pagelet declaration is a candidate for matching. If you have selected In place of and your text matches part of the pagelet declaration, your injected content will replace that part of the pagelet declaration. This might cause the pagelet to not be displayed or yield other undesired results. |
Apply only to Content Types |
To restrict the injector to specific kinds of content, type a comma separated list of MIME types in the Apply only to Content Types box. For example, text/html restricts the injector to HTML content, while text/css only restricts the injector to CSS content. |
To apply a web injector to a resource:
Launch the Ensemble Console.
Click the Applications tab.
Click the Resources sub-tab.
Click the name of the resource to which you want to apply a web injector.
Click the Web Injectors tab.
From the drop-down list, select the name of the web injector to apply to the resource.
If desired, make the web injector applicable to a subset of the resource by typing a URL pattern into the URL Filter box. If the box is empty or contains only a /, the web injector is applied to the entire resource. If anything else is typed into the box, only URLs within the resource that begin with what is in the box will have the web injector applied.
To apply more than one web injector to the resource, click Add and repeat steps 6 and 7 for each web injector.