sourav-mazumder / Data-Science-Extensions

71 stars 63 forks source link

Does the published jar in releases include oathToken support? #12

Open capitanou opened 3 years ago

capitanou commented 3 years ago

Deployed the jar in releases but when using the oathToken header option Authentication is still failing.

Here's example params

prmsSoda = { 'url' : sodauri, 'input' : 'sodainputtbl', 'method' : 'GET', 'readTimeout' : '10000', 'connectionTimeout' : '2000', 'partitions' : '2', 'oauthToken' : token }

Could you publish a new jar file?

Also, could you build for spark 2.12?

sourav-mazumder commented 3 years ago

@capitanou It does not supoort oauthToken as of now.

Not sure whether I wud be able to support Spark 2.12. But may directly go for Spark 3.0.

If u want u may fork and release a support Spark 2.12. I can help u validating the same.

capitanou commented 3 years ago

Thanks for the quick response. Sounds like the docs are slightly out of date as the README has a section below.

oauthToken : This can be used for bearer token based authorization. This is the value for the Authorization key passed in the HEADER. So you can pass Bearer <> as its value.

Abhisek Mandal committed on May 20, 2019: "added bearer token auth support; added json object payload support"

Was this update not completed?

Any guidance on creating a working build environment? Believe this goes a little beyond my experience and expertise