Ask Your Question

Http Client : Post using access token

asked 2017-09-18 11:17:17 -0500

Vivian Y gravatar image

I have one use case , where i am sending post request using access token. I checked on the http client properties, but does not found any suit authentication to use.

Should the access token been implemented in header? or i should use the authentication configuration provided by streamsets?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-09-18 13:16:47 -0500

jeff gravatar image

It depends on the specific API. If it's expecting the authentication token to be provided in a header, you can configure that in the HTTP origin. If it's expecting another authentication mechanism (ex: username/password for basic auth), then that can be configured in the origin using the Authentication Type field and subsequent options that appear depending on your selection.

edit flag offensive delete link more


You are right, putting in the token as header with content-type = 'application/json' make it works. Thanks

Vivian Y gravatar imageVivian Y ( 2017-09-19 01:08:19 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-09-18 11:17:17 -0500

Seen: 499 times

Last updated: Sep 18 '17