You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 96868f8
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/sim/lib/credentials/google-workload-identity.server.ts
+16-13Lines changed: 16 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -943,20 +943,23 @@ export async function resolveGoogleWorkloadIdentityToken(
943
943
)
944
944
}
945
945
}else{
946
-
if(input.impersonateEmail){
947
-
throwdelegable
948
-
? unsupportedUse(
949
-
'google_keyless_delegation',
950
-
'this keyless Google credential has no domain-wide delegation for this service',
951
-
'This keyless Google credential has no domain-wide delegation for this service, so it cannot act as a Workspace user. Clear the Impersonated Account, reconnect the credential to delegate this service, or use a JSON key credential instead'
952
-
)
953
-
: unsupportedUse(
954
-
'google_keyless_delegation_unavailable',
955
-
'keyless Google credentials cannot act as a Workspace user for this service',
956
-
'A keyless Google credential cannot act as a Workspace user for this service. Clear the Impersonated Account, or use a JSON key credential instead'
// Clearing the Impersonated Account helps only where keyless works without it.
948
+
if(input.impersonateEmail&&delegable){
949
+
throwunsupportedUse(
950
+
'google_keyless_delegation',
951
+
'this keyless Google credential has no domain-wide delegation for this service',
952
+
'This keyless Google credential has no domain-wide delegation for this service, so it cannot act as a Workspace user. Clear the Impersonated Account, reconnect the credential to delegate this service, or use a JSON key credential instead'
953
+
)
954
+
}
955
+
if(input.impersonateEmail&&cloudService){
956
+
throwunsupportedUse(
957
+
'google_keyless_delegation_unavailable',
958
+
'keyless Google credentials cannot act as a Workspace user for this service',
959
+
'A keyless Google credential cannot act as a Workspace user for this service. Clear the Impersonated Account, or use a JSON key credential instead'
0 commit comments