zhangjiashen opened a new pull request, #14974:
URL: https://github.com/apache/gravitino/pull/14974

   ### What changes were proposed in this pull request?
   
   Add `gravitino.authenticator.tokenHeader`. `AuthenticationFilter` now reads
   the credential from the header named by `ServerAuthenticator.tokenHeader()`
   instead of the hard-coded `Authorization` header.
   
   ### Why are the changes needed?
   
   Different headers may be needed to carry the credential. Making the header
   configurable avoids code changes for each deployment.
   
   Fixes #14973
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. A new server property, `gravitino.authenticator.tokenHeader`, is added
   and documented in `docs/gravitino-server-config.md`. It defaults to
   `Authorization`, so existing deployments are unaffected.
   
   ### How was this patch tested?
   
   Added `TestServerAuthenticatorTokenHeader`: default value, custom value,
   blank value rejected, and the filter authenticating a request that carries
   only the custom header. `TestAuthenticationFilter` still passes.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to