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
5 changes: 5 additions & 0 deletions google-auth-library-java/credentials/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
java_library(
name = "credentials",
srcs = glob(["java/**/*.java"]),
Comment thread
chingor13 marked this conversation as resolved.
visibility = ["//visibility:public"],
)
20 changes: 20 additions & 0 deletions google-auth-library-java/oauth2_http/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
java_library(
name = "oauth2_http",
srcs = glob(["java/**/*.java"]),
Comment thread
chingor13 marked this conversation as resolved.
deps = [
"@com_google_guava_guava//jar",
"@com_google_guava_failureaccess//jar",
"//google-auth-library-java/credentials:credentials",
"@com_google_http_client_google_http_client//jar",
"@com_google_http_client_google_http_client_gson//jar",
"@com_google_api_api_common//jar",
"@com_google_code_gson_gson//jar",
"@com_google_errorprone_error_prone_annotations//jar",
"@com_google_code_findbugs_jsr305//jar",
"@com_google_auto_value_auto_value_annotations//jar",
"@com_google_auto_value_auto_value//jar",
"@org_slf4j_slf4j_api//jar",
],
plugins = ["@com_google_api_gax_java//:auto_value_plugin"],
visibility = ["//visibility:public"],
)
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,8 @@ Map<String, Object> createMetadataRequestHeaders(AwsCredentialSource awsCredenti
// Both flows work for IDMS v1 and v2. But if IDMSv2 is enabled, then if
// session token is not present, Unauthorized exception will be thrown.
if (awsCredentialSource.imdsv2SessionTokenUrl != null) {
Map<String, Object> tokenRequestHeaders =
new HashMap<String, Object>() {
{
put(AWS_IMDSV2_SESSION_TOKEN_TTL_HEADER, AWS_IMDSV2_SESSION_TOKEN_TTL);
}
};
Map<String, Object> tokenRequestHeaders = new HashMap<>();
tokenRequestHeaders.put(AWS_IMDSV2_SESSION_TOKEN_TTL_HEADER, AWS_IMDSV2_SESSION_TOKEN_TTL);

String imdsv2SessionToken =
retrieveResource(
Expand Down
4 changes: 2 additions & 2 deletions sdk-platform-java/gax-java/gax-grpc/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ _COMPILE_DEPS = [
"@com_google_code_findbugs_jsr305//jar",
"@com_google_code_gson_gson//jar",
"@org_threeten_threetenbp//jar",
"@com_google_auth_google_auth_library_oauth2_http//jar",
"@com_google_auth_google_auth_library_credentials//jar",
"@gapic_generator_java//google-auth-library-java/oauth2_http",
"@gapic_generator_java//google-auth-library-java/credentials",
"@com_google_api_grpc_proto_google_common_protos//jar",
"@com_google_api_api_common//jar",
"@com_google_auto_value_auto_value//jar",
Expand Down
4 changes: 2 additions & 2 deletions sdk-platform-java/gax-java/gax-httpjson/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ _COMPILE_DEPS = [
"@com_google_errorprone_error_prone_annotations//jar",
"@org_threeten_threetenbp//jar",
"@com_google_http_client_google_http_client//jar",
"@com_google_auth_google_auth_library_oauth2_http//jar",
"@com_google_auth_google_auth_library_credentials//jar",
"@gapic_generator_java//google-auth-library-java/oauth2_http",
"@gapic_generator_java//google-auth-library-java/credentials",
"@com_google_api_api_common//jar",
"@com_google_auto_value_auto_value//jar",
"@com_google_auto_value_auto_value_annotations//jar",
Expand Down
4 changes: 2 additions & 2 deletions sdk-platform-java/gax-java/gax/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ _COMPILE_DEPS = [
"@com_google_api_api_common//jar",
"@com_google_api_grpc_proto_google_common_protos//jar",
"@com_google_protobuf_java//jar",
"@com_google_auth_google_auth_library_credentials//jar",
"@com_google_auth_google_auth_library_oauth2_http//jar",
"@gapic_generator_java//google-auth-library-java/credentials",
"@gapic_generator_java//google-auth-library-java/oauth2_http",
"@com_google_auto_value_auto_value//jar",
"@com_google_auto_value_auto_value_annotations//jar",
"@com_google_code_findbugs_jsr305//jar",
Expand Down
Loading