cloudera / impyla

Python DB API 2.0 client for Impala and Hive (HiveServer2 protocol)
Apache License 2.0
731 stars 248 forks source link

Add support for authentication via JWT token #463

Closed joemcdonnell closed 3 years ago

joemcdonnell commented 3 years ago

Impala recently added support for authentication via a JWT token in IMPALA-10489. This allows a user to authenticate with a separate trusted authentication service, obtain a JWT, and pass that JWT to Impala on the Authencation Bearer HTTP header.

This implements support for connecting with auth_mechanism=JWT, which requires a 'jwt' argument specifying the standard string encoding for the JWT. This is passed on the Authentication Bearer HTTP header on each message.

Fixes #462

Testing:

joemcdonnell commented 3 years ago

Thanks for the review!