feat(core): change user-facing auth type from oauth2 to oauth (#23639)

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Adam Weidman
2026-03-24 14:46:12 -04:00
committed by GitHub
parent 1c3d397782
commit 999ae7827d
3 changed files with 17 additions and 17 deletions
+3 -3
View File
@@ -63,7 +63,7 @@ interface FrontmatterLocalAgentDefinition
* Authentication configuration for remote agents in frontmatter format.
*/
interface FrontmatterAuthConfig {
type: 'apiKey' | 'http' | 'google-credentials' | 'oauth2';
type: 'apiKey' | 'http' | 'google-credentials' | 'oauth';
// API Key
key?: string;
name?: string;
@@ -205,7 +205,7 @@ const googleCredentialsAuthSchema = z.object({
*/
const oauth2AuthSchema = z.object({
...baseAuthFields,
type: z.literal('oauth2'),
type: z.literal('oauth'),
client_id: z.string().optional(),
client_secret: z.string().optional(),
scopes: z.array(z.string()).optional(),
@@ -471,7 +471,7 @@ function convertFrontmatterAuthToConfig(
}
}
case 'oauth2':
case 'oauth':
return {
...base,
type: 'oauth2',