[jira] [Commented] (CALCITE-6135) BEARER authentication support

2024-10-24 Thread Istvan Toth (Jira)


[ 
https://issues.apache.org/jira/browse/CALCITE-6135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17892669#comment-17892669
 ] 

Istvan Toth commented on CALCITE-6135:
--

I've been working with httpclient lately.

IIRC SPNEGO support hasn't been really removed, it just needs some additional 
setup to re-enable it,

so upgrading to 5.3 or 5.4 which has native bearer support looks possible, and 
we don't need to duplicate that code in Avatica.

> BEARER authentication support
> -
>
> Key: CALCITE-6135
> URL: https://issues.apache.org/jira/browse/CALCITE-6135
> Project: Calcite
>  Issue Type: New Feature
>  Components: avatica
>Reporter: Aron Attila Meszaros
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 1h
>  Remaining Estimate: 0h
>
> Add support for Bearer authentication scheme (RFC 6750). 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CALCITE-6135) BEARER authentication support

2023-11-29 Thread Aron Attila Meszaros (Jira)


[ 
https://issues.apache.org/jira/browse/CALCITE-6135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17791025#comment-17791025
 ] 

Aron Attila Meszaros commented on CALCITE-6135:
---

[~stoty] Thank you for the feedback.
I've added a new class for handling tokens with longer expiration 
(SingleBearerTokenProvider)

Also worth mentioningthat Httpclient 5.3 is going to support bearer auth 
natively 
([https://github.com/apache/httpcomponents-client/commit/95e8abbda8d6af34c62c131ce0fad867d8ed0fcb)|https://github.com/apache/httpcomponents-client/commit/95e8abbda8d6af34c62c131ce0fad867d8ed0fcb).].
 I've tried to align the implementation as much as possible, so the upgrade 
shouldn't be too complicated.

> BEARER authentication support
> -
>
> Key: CALCITE-6135
> URL: https://issues.apache.org/jira/browse/CALCITE-6135
> Project: Calcite
>  Issue Type: New Feature
>  Components: avatica
>Reporter: Aron Attila Meszaros
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> Add support for Bearer authentication scheme (RFC 6750). 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CALCITE-6135) BEARER authentication support

2023-11-27 Thread Istvan Toth (Jira)


[ 
https://issues.apache.org/jira/browse/CALCITE-6135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17790140#comment-17790140
 ] 

Istvan Toth commented on CALCITE-6135:
--

IMO Avatica should have an option to specify the token directly in the 
connection URL as a string.

This wouldn't work with short lifetime tokens, but would be ok for long lived 
ones.

It may also be worth adding an option to specify the class name of a token 
provide implmenetation, and perhaps parameters for it, 
so that Avatica could be used to connect to OAUTH or similar. (when the 
additional classes are provided on the classpath)

> BEARER authentication support
> -
>
> Key: CALCITE-6135
> URL: https://issues.apache.org/jira/browse/CALCITE-6135
> Project: Calcite
>  Issue Type: New Feature
>  Components: avatica
>Reporter: Aron Attila Meszaros
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> Add support for Bearer authentication scheme (RFC 6750). 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)