Skip to content

C ABI external auth callback: correlate request context #537

Backlog

Description

@cathleeny

The Go driver cannot propagate caller cancellation or request context values to external authentication callbacks because the C ABI callback has no per-request identity. A session-wide context pointer is unsafe: a detached cancel or an abandoned callback from one operation can overlap a later operation and authenticate with the later caller's values.

Provide a request-correlated context or identifier through the C ABI so drivers can associate callbacks with the initiating operation and preserve an uncancelled context for cancellation requests.

Related: databricks/databricks-sql-go#610 and #527.

This issue was written by Isaac.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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