Skip to content

Document extracting authentication from custom metadata - #422

Open
Adrastopoulos wants to merge 1 commit into
spring-projects:mainfrom
Adrastopoulos:gh-419
Open

Document extracting authentication from custom metadata#422
Adrastopoulos wants to merge 1 commit into
spring-projects:mainfrom
Adrastopoulos:gh-419

Conversation

@Adrastopoulos

@Adrastopoulos Adrastopoulos commented Jul 29, 2026

Copy link
Copy Markdown

Documents authenticationExtractor() with a worked example reading a non-Authorization metadata key, for credentials the built-in extractors don't cover.

Adds tests for the two composition behaviours that were previously uncovered: @Order controls extractor precedence, and the first non-null Authentication wins. Both are driven through the interceptor GrpcSecurity builds.

Fixes gh-419

GrpcSecurity accepts arbitrary GrpcAuthenticationExtractor instances,
but the reference docs only covered the built-in Authorization header
mechanisms, so credentials carried in other metadata entries had no
documented path. The composition rules were also untested: extractors
are sorted by @order and the first non-null Authentication wins.

Document authenticationExtractor() with a worked example and add tests
covering extractor ordering and first-non-null resolution.

Fixes spring-projectsgh-419

Signed-off-by: Gabriel Hall <gabriel.hall@cox.net>
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.

Document extracting authentication from custom metadata

1 participant