Specifying the authentication type for a data source in a document specification

When a data source requires authentication, each authentication type that is supported by Rational® Publishing Engine (Form, Basic, OAuth, or OAuth-OSLC) is tested until the correct type is found. You can circumvent the testing process by designating an authentication type.

When you specify the authentication type, Rational Publishing Engine ensures that the correct protocol is used first and unnecessary requests are not performed. You might see a significant performance improvement in document generation time if your data source requires Basic, OAuth, or OAuth-OSLC authentication or if you are using a complex template that requires many requests from the data source. If no authentication type is specified, each type is tested.

About this task

Complete this task to improve the performance of generating HTML, XSL-FO, and Legacy PDF documents.

For more information about how user names and passwords are stored, see Security considerations for IBM® Rational Publishing Engine.

Procedure

  1. Open the Launcher application.
  2. Create a document specification.
  3. Configure a data source.
  4. Select the data source. The Properties view opens.
  5. In the authentication field, enter the authentication type that applies to your data source. You can enter one of the following case-sensitive authentication types:
    • Form
    • Basic
    • OAuth
    • OAuth-OSLC
  6. If necessary, enter the credentials to authenticate with the data source including the user name and password.
  7. Save the document specification.

What to do next

Update the authentication properties in existing document specifications.

Creating oslcServiceProviders.xml file for OAuth-OSLC authentication

If you are using a Generic XML, REST v1, or REST v2 data source that requires OAuth-OSLC authentication, you must first create a oslcServiceProviders.xml to store the base_url, consumer_key, and secret property values.

Procedure

  1. Create a copy of the sample in the Rational Publishing Engine installation directory: %RPE_HOME%/config/oslcServiceProviders-sample.xml
  2. In the title tags, provide a name for the data source provider.
  3. In the description tags, provide a description or notes for the data source provider.
  4. In the base_url tags, provide the base URL to the data source. Example: https://server:port/oslcCatalog
  5. In the pattern tags, provide the URL pattern of the data source. When you have a list of data sources specified in the oslcServiceProviders.xml file, the pattern is used to identify which data source details match the data source requirements. Example: https://server:port/contextroot
  6. In the consumer_key tags, provide the consumer key from the data source.
  7. In the secret tags, provide the secret value from the data source.
  8. Save the oslcServiceProviders.xml file to a location outside of the Rational Publishing Engine installation directory.

What to do next

Specify the location of the oslcServiceProviders.xml with the -Dcom.ibm.rational.rpe.config.oslcServiceProviders flag and the authentication credentials with the -Dcom.ibm.rational.rpe.config.oslcServiceProviders.pwd and -Dcom.ibm.rational.rpe.config.oslcServiceProviders.usr flags.

See one of the following topics for more information about configuring flags for WebSphere® Application Server, Apache Tomcat, or the client applications.


Feedback