Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C#] Authenticating with a Flight Server instance #45248

Open
AlexRutledge1 opened this issue Jan 13, 2025 · 1 comment
Open

[C#] Authenticating with a Flight Server instance #45248

AlexRutledge1 opened this issue Jan 13, 2025 · 1 comment
Labels
Component: C# Type: usage Issue is a user question

Comments

@AlexRutledge1
Copy link

Describe the usage question you have. Please include as many useful details as possible.

In the C# package is there a mechanism available for authenticating similar to the client.authenticate(ClientAuthHandler) that is available in pyarrow? I am able to perform a handshake in the C# package with client.Handshake() and see that the authentication mechanism successfully fires on the server but I'm unsure of how to attach authentication metadata to GetInfo or GetStream calls.

Any help would be much appreciated, thanks.

Component(s)

C#

@AlexRutledge1 AlexRutledge1 added the Type: usage Issue is a user question label Jan 13, 2025
@amoeba
Copy link
Member

amoeba commented Jan 14, 2025

Hi @AlexRutledge1. I'm not familiar with the C# implementation but I took a look. For the C# Flight implementation, it seems the idea was to delegate auth to AspNetCore rather than build it into the transport like was done for Python/C++. I gleaned this from our Implementation Status page. I don't think that means adding an API similar to Python/C++ wouldn't be welcome but I think doing auth with AspNetCore is your only option.

I'm also not familiar with AspNetCore but I found an example, https://github.com/apache/arrow/blob/main/csharp/examples/FlightAspServerExample/Program.cs, and it seems like you might be able to adapt that to include auth.

Does this help at all?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: C# Type: usage Issue is a user question
Projects
None yet
Development

No branches or pull requests

2 participants