mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-22 19:14:33 -07:00
feat(auth): Add option for metadata server application default credentials without project override (#12948)
This commit is contained in:
@@ -298,7 +298,7 @@ describe('loggers', () => {
|
||||
const event = new UserPromptEvent(
|
||||
11,
|
||||
'prompt-id-9',
|
||||
AuthType.CLOUD_SHELL,
|
||||
AuthType.COMPUTE_ADC,
|
||||
'test-prompt',
|
||||
);
|
||||
|
||||
@@ -315,7 +315,7 @@ describe('loggers', () => {
|
||||
interactive: false,
|
||||
prompt_length: 11,
|
||||
prompt_id: 'prompt-id-9',
|
||||
auth_type: 'cloud-shell',
|
||||
auth_type: 'compute-default-credentials',
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
@@ -886,7 +886,7 @@ export function getConventionAttributes(event: {
|
||||
function getGenAiProvider(authType?: string): GenAiProviderName {
|
||||
switch (authType) {
|
||||
case AuthType.USE_VERTEX_AI:
|
||||
case AuthType.CLOUD_SHELL:
|
||||
case AuthType.COMPUTE_ADC:
|
||||
case AuthType.LOGIN_WITH_GOOGLE:
|
||||
return GenAiProviderName.GCP_VERTEX_AI;
|
||||
case AuthType.USE_GEMINI:
|
||||
|
||||
Reference in New Issue
Block a user