Skip to content

fix(flight): accept case-insensitive authorization schemes - #1071

Open
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/flight-auth-scheme-case
Open

fix(flight): accept case-insensitive authorization schemes#1071
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/flight-auth-scheme-case

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Problem

Flight authentication compared the Basic and Bearer authorization schemes case-sensitively, even though HTTP authentication scheme names are case-insensitive. Valid clients using forms such as bearer were rejected.

Change

Use strings.EqualFold for scheme matching in both Basic and Bearer authentication paths. Credential bytes remain untouched and case-sensitive.

Coverage

The regression test sends a lowercase Bearer scheme through the Flight server and verifies successful authentication.

Validation

go test ./arrow/flight

@fallintoplace
fallintoplace requested a review from zeroshade as a code owner July 30, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant