Skip to content

[C++][FlightRPC] Add support for using HTTP headers or query parameters in ServerAuthHandler #35373

@kou

Description

@kou

Describe the enhancement requested

arrow::flight::ServerAuthHandler::Authenticate() can't refer HTTP headers nor HTTP query parameters:

/// \brief Authenticate the client on initial connection. The server
/// can send and read responses from the client at any time.
virtual Status Authenticate(ServerAuthSender* outgoing, ServerAuthReader* incoming) = 0;

I want to receive database name via a HTTP header or a HTTP query parameter in https://github.com/apache/arrow-flight-sql-postgresql .

How about adding const CallHeaders& incoming_headers parameter (like for arrow::flight::ServerMiddlewareFactory::StartCall()) or something to arrow::flight::ServerAuthHandler::Authenticate()?

@lidavidm @cyb70289 What do you think about this feature request?

Component(s)

C++, FlightRPC

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions