Skip to main content
Solved

Authentication issue with Control Hub API credentials


Hi, when trying to run a pipeline with the “Start Job” origin the pipeline fails and the log shows:

com.streamsets.pipeline.lib.ControlHubApiError: Control Hub security token expired or invalid: {"ISSUES":[{"code":"SSO_01","message":"User not authenticated"}]}

 

The credentials I used are newly generated credentials and the stage is configured as can be seen in the screen shot with the credential id and token. Why are these credentials rejected by the Control hub?

 

 

If I use the exact same credentials in a call to CURL I get a perfectly fine response showing my user details

(request like:

 curl -X GET https://na01.hub.streamsets.com/security/rest/v1/currentUser -H "Content-Type:application/json" -H "X-Requested-By:curl" -H "X-SS-REST-CALL:true" -H "X-SS-App-Component-Id: $cred_id" -H "X-SS-App-Auth-Token: $cred_token" -i

)

Any ideas?

 

Best answer by saleempothiwala

@pedromanuel,

The only thing I can think of is the setting for Control Hub URL. Make sure that use the correct URL like https://na01.hub.streamsets.com/ as I can see in your curl command.

View original
Did this topic help you find an answer to your question?

2 replies

saleempothiwala
Headliner
Forum|alt.badge.img

@pedromanuel,

The only thing I can think of is the setting for Control Hub URL. Make sure that use the correct URL like https://na01.hub.streamsets.com/ as I can see in your curl command.


  • Author
  • Opening Band
  • 12 replies
  • August 30, 2022

Hi @saleempothiwala , thank you, this solved it. Forgot to set the actual URL, just went with the default one which obviously did not work. Cheers!


Reply