indigophox commented on PR #34817: URL: https://github.com/apache/arrow/pull/34817#issuecomment-1817121971
> As a https://github.com/apache/arrow-flight-sql-postgresql developer, I want to create a new session only when authentication is succeeded. Can we use this feature for this use case? Not 100% clear if you want to trigger session creation on successful auth (it is "normally" triggered on DoAction/SetSessionOptions calls but with a lot of flexibility), or gate allowing a client to explicitly trigger session creation on their AuthNZ status, but both of these should be trivially feasible. You may end up needing a shim around the RPC handlers (we have similar for similar reasons) to relate the call-local middleware instances (IIRC they can't look one another up?), at which point either of them could be authoritative in taking action to deliberately create or allow creation of a session (depending on your meaning above). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org