Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void start(Listener<RespT> responseListener, Metadata headers) {
new GrpcRequest(
method.getBareMethodName(),
headers.get(
AuthorizationGrpcMetadataProvider.JWT_AUTHORIZATION_HEADER_KEY)));
AuthorizationGrpcMetadataProvider.AUTHORIZATION_HEADER_KEY)));
super.start(responseListener, headers);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import io.temporal.serviceclient.GrpcMetadataProvider;

public class AuthorizationGrpcMetadataProvider implements GrpcMetadataProvider {
public static final Metadata.Key<String> JWT_AUTHORIZATION_HEADER_KEY =
public static final Metadata.Key<String> AUTHORIZATION_HEADER_KEY =
Metadata.Key.of("authorization", Metadata.ASCII_STRING_MARSHALLER);

private final AuthorizationTokenSupplier authorizationTokenSupplier;
Expand All @@ -36,7 +36,7 @@ protected AuthorizationGrpcMetadataProvider(
@Override
public Metadata getMetadata() {
Metadata metadata = new Metadata();
metadata.put(JWT_AUTHORIZATION_HEADER_KEY, authorizationTokenSupplier.supply());
metadata.put(AUTHORIZATION_HEADER_KEY, authorizationTokenSupplier.supply());
return metadata;
}
}