Configuring Authentication for REST Services
Oracle Utilities Testing Accelerator provides the following REST services used to integrate with any compatible third-party application. Example: test management applications, Jenkins, etc.
Prerequisites
Flow Execution
Flow Set Execution
Flow Execution Analytics
Flow Set Execution Analytics
Flow Summary
Flow Set Summary
Flow/User Configuration Sets
Import Component/Flow/Flow Set/Library
All the REST services are secured by mandating an authentication token as one of the parameters. The application facilities the generation of these JWT tokens by exposing an endpoint, uta/token/generate-token. These tokens are generated using native JWT Support and once they are obtained, they need to be a part of any incoming requests to these rest services. Below is a sample command to generate an authentication token based on user credentials.
curl -X POST -k -F 'username=<login username>' -F 'password=<login password>' 'https:/
/<hostname>:<port>/uta/token/generate-token -H 'authorization: Basic
dXRhOnV0YXBhc3M= ' -H 'cache-control: no-cache' -H 'content-type: multipart/formdata'
 
Parameters
<login username>: Valid OUTA application user's username
<login password>: OUTA application user's password
<hostname>: OUTA Application host name
<port>: OUTA application port
 
Sample Response
{"token": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJsb2NhbGhvc3QiLCJzY29wZXMiOiJST0xFX0FkbWluaXN0cmF0b3IiLCJpYXQiOjE2MjAwMzQ1NjMsImV4cCI6MTYyMDA1MjU2M30.2SrKiZPslj6Ba2S8zqJm8YakjaFdZfhIhfuXcEsSE-Q"}
 
All the REST services are documented using Open API. The supported REST endpoints and their documentation can be found at: <respective application URL>/uta/v3/api-docs