Skip to content

Trino Gateway should support http-client configurations specific to authentication modules (e.g. OAuth2) #759

@AndyJiang99

Description

@AndyJiang99

Similar to how in Trino, HTTP client properties can be specified to enable HTTP client properties for authentication HTTP interactions, Trino Gateway should also support this functionality to enable proxying for different authentications.

The following properties can be used after adding the specific prefix to the property. For example, for [OAuth 2.0 authentication](https://trino.io/docs/current/security/oauth2.html), you can enable HTTP for interactions with the external OAuth 2.0 provider by adding the prefix oauth2-jwk to the http-client.connect-timeout property, and increasing the connection timeout to ten seconds by setting the value to 10:

oauth2-jwk.http-client.connect-timeout=10s
The following prefixes are supported:

oauth2-jwk for [OAuth 2.0 authentication](https://trino.io/docs/current/security/oauth2.html)

jwk for [JWT authentication](https://trino.io/docs/current/security/jwt.html)

exchange to configure data transfer between Trino nodes in addition to [Exchange properties](https://trino.io/docs/current/admin/properties-exchange.html)

from https://trino.io/docs/current/admin/properties-http-client.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions