Specifying the authentication type for a data source in a document specification
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
For more information about how user names and passwords are stored, see Security considerations for IBM® Rational Publishing Engine.
Procedure
What to do next
Creating oslcServiceProviders.xml file for OAuth-OSLC authentication
About this task
- Environment variables in your operating system
- Java properties in your Java virtual machine (JVM)
- Flags in your runtime environment. See one of the following topics for more information about configuring flags for WebSphere® Application Server, Apache Tomcat, or the client applications
Creating the oslcServiceProviders.xml file outside the default RPE_HOME/config directory supports team collaboration environments. The oslcServiceProviders.xml file can be reused by multiple users when placing the file in a shared location, and set the com.ibm.rational.rpe.config.oslcServiceProviders property to point to the shared location.
Procedure
- Create a copy of the sample in the Rational Publishing Engine installation directory: RPE_HOME/config/oslcServiceProviders-sample.xml
- In a text editor, open your copy of the oslcServiceProviders.xml file.
- In the title tags, provide a name for the data source provider.
- In the description tags, provide a description or notes for the data source provider.
- In the base_url tags, provide the base URL to the data source. Example: https://server:port/oslcCatalog
- 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
- In the consumer_key tags, provide the consumer key from the data source.
- In the secret tags, provide the secret value from the data source.
- Save the oslcServiceProviders.xml file to a location outside of the Rational Publishing Engine installation directory.