zhangjiashen commented on code in PR #14974:
URL: https://github.com/apache/gravitino/pull/14974#discussion_r4589623663
##########
core/src/main/java/org/apache/gravitino/Configs.java:
##########
@@ -321,6 +322,16 @@ private Configs() {}
ConfigConstants.NOT_BLANK_ERROR_MSG)
.createWithDefault(Lists.newArrayList("simple"));
+ public static final ConfigEntry<String> AUTHENTICATOR_TOKEN_HEADER =
+ new ConfigBuilder("gravitino.authenticator.tokenHeader")
Review Comment:
Thanks for the review. It isn't a new protocol, it is still interpreted by
a normal `Authenticator` (custom via `gravitino.authenticators`). The only
change is which header it is read from and make it configurable.
Specifically, `rpc-header-utoken-caller` header is used internally instead
of a generic `Authorization: Bearer ...` header, I have updated it to
authHeader and can you check if it makes more sense?
--
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]