From e1cbce1a5cb269c6613bc6d40f06145bd45099c0 Mon Sep 17 00:00:00 2001 From: Leo <39062083+lsirac@users.noreply.github.com> Date: Wed, 29 Sep 2021 09:09:55 -0700 Subject: [PATCH] fix: allow empty workforce_pool_user_project (#752) --- .../java/com/google/auth/oauth2/IdentityPoolCredentials.java | 1 - 1 file changed, 1 deletion(-) diff --git a/oauth2_http/java/com/google/auth/oauth2/IdentityPoolCredentials.java b/oauth2_http/java/com/google/auth/oauth2/IdentityPoolCredentials.java index 1257a575c..d13cd8545 100644 --- a/oauth2_http/java/com/google/auth/oauth2/IdentityPoolCredentials.java +++ b/oauth2_http/java/com/google/auth/oauth2/IdentityPoolCredentials.java @@ -284,7 +284,6 @@ public boolean isWorkforcePoolConfiguration() { Pattern workforceAudiencePattern = Pattern.compile("^//iam.googleapis.com/locations/.+/workforcePools/.+/providers/.+$"); return workforcePoolUserProject != null - && !workforcePoolUserProject.isEmpty() && workforceAudiencePattern.matcher(getAudience()).matches(); }