ClickHouse / clickhouse-java

ClickHouse Java Clients & JDBC Driver
https://clickhouse.com
Apache License 2.0
1.45k stars 535 forks source link

[client-v2] Bearer token authorization #1834

Open chernser opened 1 month ago

chernser commented 1 month ago

Description

There is a Bearer authorization (https://datatracker.ietf.org/doc/html/rfc6750) used in oauth2 and SAML security protocols. There are some cases when access to DB is organized thru proxy that keeps real credentials to a DB and authenticates each request. In such cases something like JWT is used what is one of uses cases for Bearer schema. So: