What's on this page

Manage Client Credentials

The following guide details how to configure Client Credentials in Telco Network Cloud Orchestration (TNC-O) on a deployed system. These credentials are required to make API requests from external API clients and integrated systems. To assist in maintaining a secure system it is recommended that each external client have its own set of credentials.

Pre-requisites

To complete this guide you will need:

Add client credentials

Client credentials can be created using the credentials REST API. This API is protected, so authentication is required to access it. You may use the default admin client or any existing client which ultimately has the SECADMIN privilege to perform these actions (typically LmClient, see Default Client Credentials) to do this.

To create a new set of credentials, send a POST request to https://<your-lm-api-host>:<your-lm-api-port>/api/credentials with the following JSON fields:

Example payload:

{
    "clientId": "NewClient",
    "clientSecret": "thisisthesecret",
    "authorisedGrantTypes": [
        "client_credentials",
    ],
    "accessTokenValidity": 300,
    "roles": [
        "SLMAdmin"
    ]
}

Updating Client Credentials

You may update client credentials with a similar request to a create, but instead the payload must be sent in a PUT request to: https://<your-lm-api-host>:<your-lm-api-port>/api/credentials/<client-id>

UI login timeout values

Login sessions to the TNC-O UI have the following behaviour which is are governed by the token validity parameters set for the NimrodClient:

In order to modify front-end timeout values, the UI client credentials (NimrodClient) must be updated, adjusting the values of accessTokenValidity and refreshTokenValidity