Lynxwork CodeBeamer OSLC Server - Installation and Usage Guide
The Lynxwork CodeBeamer OSLC Server is provided as a standard Web Application Archive (.war) file. It can be deployed in any compatible servlet container, such as Apache Tomcat or Eclipse Jetty. It can also be packaged and executed within a Docker container.
This guide describes how to deploy the application:
- In a Docker container
- In an Apache Tomcat environment
The software distribution includes the following files:
| File | Purpose |
|---|---|
codebeamer.war |
The deployable web application archive |
lynxwork.lic |
The required license file |
tomcat-context-template.xml |
A template for Apache Tomcat deployment |
docker-compose-template.yml and Dockerfile |
A template for Docker-based deployment |
Preparations
Before starting, make sure you have:
{connector_base_url}— The base URL that points to the location where the CodeBeamer OSLC Server will be deployed.- For example,
https://codebeamer-connector.my-organisation.com/ - Ensure the HTTPS protocol is used with a trusted certificate.
- For example,
{codebeamer_viewer_url}— The base URL of your CodeBeamer site. Typically takes the formhttps://codebeamer.my-organisation.com/cb{codebeamer_api_url}— The base URL of CodeBeamer’s REST APIs. Typically takes the formhttps://codebeamer.my-organisation.com/cb/api
Setup OAuth 2 access to CodeBeamer with Entra ID
The CodeBeamer Connector accesses the CodeBeamer REST API using “OAuth 2.0 authorization”, on behalf of a signed-in user.
This assumes CodeBeamer is already configured with OpenID SSO with Entra ID. That configuration includes an application that represents CodeBeamer’s API (in CodeBeamer’s SSO configuration, the client of the second issuer, with "authType" : "ACCESSTOKEN"). We refer to its Application (client) ID as {codebeamer_api_client_id}, and to the scope it exposes as {codebeamerScope}. The scope typically takes the form api://{codebeamer_api_client_id}/codebeamerScope
The Connector gets its own application, registered in the same way as CodeBeamer’s. The following steps are what is needed in addition:
- Register an application that represents the CodeBeamer Connector in the Microsoft Entra admin center, by following these instructions. Notes:
- Under Configure platform settings, you are given a number of alternatives.
- Select the Web platform.
- As a Redirect URI, enter the URL
{connector_base_url}/oslc/oauth2/callback
- Under Add credentials, you are provided with 3 Options
- Adopt Option 2: Add a client secret.
- As explained in the instructions, make a record of the secret’s value, since it is never displayed again once you leave the page. We refer to this value as
{client_secret}
- Under Configure platform settings, you are given a number of alternatives.
- Select the created Application. In case you lost track:
- Go to the Microsoft Entra admin center
- Browse to Identity > Applications > App registrations
- Select the newly created Application.
- Select Overview, and make a record of the following parameters:
- Display name - We refer to this value as
{client_name} - Application (client) ID - We refer to this value as
{client_id} - Directory (tenant) ID - We refer to this value as
{tenant_id}
- Display name - We refer to this value as
- Grant the CodeBeamer Connector the minimal set of privileges it needs. The application relies on “delegated access”, where the Connector calls CodeBeamer on behalf of a signed-in user.
- Select API permissions > Add a permission > APIs my organization uses
- Search for and select CodeBeamer’s API application (
{codebeamer_api_client_id}) - Select Delegated permissions, then select
codebeamerScope - Select Add permissions, then Grant admin consent for your organisation
- Ensure users can access CodeBeamer’s REST API. In CodeBeamer, under System Admin > User Groups, the users’ group needs the permission Rest / Remote API – Access.
Alternative: Instead of registering a new application, the Connector can reuse CodeBeamer’s API application. Add the Redirect URI {connector_base_url}/oslc/oauth2/callback (Authentication > Add a platform > Web) and a client secret to that application, and use {codebeamer_api_client_id} as {client_id}. Step 4 is then not needed. This is simpler, but the Connector then shares that application’s credentials with CodeBeamer. A dedicated application has its own client secret that can be rotated or revoked independently, and its activity is visible separately in Entra ID’s sign-in logs.
Deploy within a Docker container
- Install Docker Engine from the Docker website.
- Create a deployment directory of your choice (e.g.
/opt/codebeamerconnectoron Linux, orC:\codebeamerconnectoron Windows) and copy the provided files into it:codebeamer.war- Dockerfile
docker-compose-template.yml
- Rename
docker-compose-template.ymltodocker-compose.ymlin that deployment directory. - Copy the license file into a suitable location. For example, copy it alongside
docker-compose.ymlmaking the setup self-contained. Update the corresponding volume mapping indocker-compose.yml:/opt/codebeamerconnector/lynxwork.lic:/var/lib/jetty/lynxwork.lic - Create an oauth subfolder in a suitable location. For example, alongside
docker-compose.yml. Update the corresponding volume mapping indocker-compose.yml:/opt/codebeamerconnector/oauth:/var/lib/jetty/oauth - Edit
docker-compose.ymland replace all remaining values enclosed in{}with the appropriate configuration values for your environment. - Run the Connector from the deployment directory: docker compose up -d
- Access the application at
{connector_base_url}.
Deploy in Apache Tomcat
- Install Java 21 JDK from Adoptium.
- Install Tomcat 10 from the Apache Tomcat website. We refer to the Tomcat installation directory as
<TOMCAT_HOME>. - Copy the
codebeamer.warfile to Tomcat’s webapps directory, typically located at<TOMCAT_HOME>/webapps/ - Copy the provided
lynxwork.liclicense file to<TOMCAT_HOME>/lynxwork.lic. - Create an oauth folder at
<TOMCAT_HOME>/oauth/. Ensure Tomcat has write permissions to this folder. - Copy and rename the provided
tomcat-context-template.xmlto<TOMCAT_HOME>/conf/Catalina/localhost/codebeamer.xml - Edit the copied context file and replace all values enclosed in
{}with the appropriate configuration values for your environment. - Restart Tomcat.
- Access the application at
{connector_base_url}
Configuring Consumer Applications
The CodeBeamer OSLC Server implements the OSLC standard. The Connector is currently designed to support the following resource types:
- Requirement -
http://open-services.net/ns/rm#Requirement - TestCase -
http://open-services.net/ns/qm#TestCase
Connecting to the server from an engineering application is typically done following OSLC’s discovery capabilities. Consult the manual of the consumer application for further configuration details.
- To configure SystemWeaver, refer to its “SystemWeaver OSLC Client Extension Installation and Usage Guide” instructions.
- To configure Siemens Polarion, apply Polarion 2512 and Polarion’s Linked Data applications overview.
Usage Guide
To create traceability links to CodeBeamer items, consult your consumer application’s manual for details.
- To connect from SystemWeaver, refer to its “SystemWeaver OSLC Client Extension Installation and Usage Guide” instructions.
- To connect from Siemens Polarion, apply Polarion 2512 and Polarion’s Add Linked Data Items to Work Items instructions.