trusch opened a new pull request #41: add support for bearer token 
authentication.
URL: https://github.com/apache/calcite-avatica-go/pull/41
 
 
   **What**
   
   Add support for bearer tokens for authentication.
   
   * parse `token=xxxxxx` from DSN
   * introduce new auth type `token`
   * set `Authorization: Bearer $TOKEN` when auth type is `token` and the token 
is specified in http client
   * slightly cleaned up the if/else statements regarding auth management
   
   **Why**
   
   We need to supply an authorization header in order to access our setup. This 
may be usefull for others as well, since it would enable us to place  avatica 
behind some kind of oauth proxy.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to