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
'Scopes must be provided in the oauth config for Google Credentials provider',
32
+
'Scopes must be provided in the oauth config for Google Credentials provider (or enable allow_unscoped_id_tokens_for_cloud_run to use ID tokens for Cloud Run endpoints)',
'Scopes must be provided in the oauth config for Google Credentials provider',
73
+
'Scopes must be provided in the oauth config for Google Credentials provider (or enable allow_unscoped_id_tokens_for_cloud_run to use ID tokens for Cloud Run endpoints)',
55
74
);
56
75
}
76
+
57
77
this.auth=newGoogleAuth({
58
-
scopes,
78
+
scopes: this.config?.oauth?.scopes,
59
79
});
60
80
}
61
81
@@ -81,6 +101,31 @@ export class GoogleCredentialProvider implements OAuthClientProvider {
81
101
this.cachedToken=undefined;
82
102
this.tokenExpiryTime=undefined;
83
103
104
+
// If allow_unscoped_id_tokens_for_cloud_run is configured, use ID tokens.
0 commit comments