Auth Error using Datacom REST API 2.0.03-201 swagger
search cancel

Auth Error using Datacom REST API 2.0.03-201 swagger

book

Article ID: 410375

calendar_today

Updated On:

Products

Datacom

Issue/Introduction

Trying to use the Authorize button: 

     

of the Datacom System REST API 2.0.03-201 swagger, a generic error message (Auth Err   An unexpected error during log in) message is returned:


Then, for any endpoint executed from the swagger, a code 401 is returned.

The same endpoint is successfully executed when using the direct URL, e.g.:
 http://localhost:nnnnn/api/v1/datasources

Environment

Datacom System REST API on USS

Cause

SSL is not enabled.

Resolution

Two possible solutions:

  • Enable SSL
  • Add the below option (marked in yellow and red) to the config/application_datacom.yml file and restart the REST API:
    dbapi.auth.passtickets.enabled: false            
    management.cloudfoundry.enabled: false          
    sdk.feature.security.token.endpoints.token: false