This commit is contained in:
aadamgough
2025-12-06 15:26:54 -08:00
parent addd05bb8e
commit 7671ec35e8
4 changed files with 4 additions and 52 deletions

View File

@@ -1,7 +1,6 @@
'use client'
import { Check } from 'lucide-react'
import { useState } from 'react'
import { Button, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader } from '@/components/emcn'
import { client } from '@/lib/auth/auth-client'
import { createLogger } from '@/lib/logs/console/logger'
@@ -13,7 +12,6 @@ import {
parseProvider,
} from '@/lib/oauth'
const logger = createLogger('OAuthRequiredModal')
export interface OAuthRequiredModalProps {
@@ -226,6 +224,9 @@ const SCOPE_DESCRIPTIONS: Record<string, string> = {
'webhooks:read': 'Read your Pipedrive webhooks',
'webhooks:full': 'Full access to manage your Pipedrive webhooks',
w_member_social: 'Access your LinkedIn profile',
// Box scopes
root_readwrite: 'Read and write all files and folders in your Box account',
root_readonly: 'Read all files and folders in your Box account',
// Shopify scopes (write_* implicitly includes read access)
write_products: 'Read and manage your Shopify products',
write_orders: 'Read and manage your Shopify orders',
@@ -392,4 +393,4 @@ export function OAuthRequiredModal({
</ModalContent>
</Modal>
)
}
}

View File

@@ -36,18 +36,6 @@ export const SnowflakeBlock: BlockConfig<SnowflakeResponse> = {
value: () => 'execute_query',
},
{
<<<<<<< HEAD
id: 'credential',
title: 'Snowflake Account',
type: 'oauth-input',
serviceId: 'snowflake',
requiredScopes: [],
placeholder: 'Select Snowflake account',
required: true,
},
{
=======
>>>>>>> 8de761181 (reformatted to PAT from oauth)
id: 'accountUrl',
title: 'Account URL',
type: 'short-input',

View File

@@ -230,8 +230,6 @@ export const env = createEnv({
ZOOM_CLIENT_SECRET: z.string().optional(), // Zoom OAuth client secret
WORDPRESS_CLIENT_ID: z.string().optional(), // WordPress.com OAuth client ID
WORDPRESS_CLIENT_SECRET: z.string().optional(), // WordPress.com OAuth client secret
SNOWFLAKE_CLIENT_ID: z.string().optional(), // Snowflake OAuth client ID
SNOWFLAKE_CLIENT_SECRET: z.string().optional(), // Snowflake OAuth client secret
// E2B Remote Code Execution
E2B_ENABLED: z.string().optional(), // Enable E2B remote code execution

View File

@@ -30,7 +30,6 @@ import {
SalesforceIcon,
ShopifyIcon,
SlackIcon,
SnowflakeIcon,
// SupabaseIcon,
TrelloIcon,
WealthboxIcon,
@@ -70,7 +69,6 @@ export type OAuthProvider =
| 'shopify'
| 'zoom'
| 'wordpress'
| 'snowflake'
| string
export type OAuthService =
@@ -111,7 +109,6 @@ export type OAuthService =
| 'shopify'
| 'zoom'
| 'wordpress'
| 'snowflake'
export interface OAuthProviderConfig {
id: OAuthProvider
@@ -834,23 +831,6 @@ export const OAUTH_PROVIDERS: Record<string, OAuthProviderConfig> = {
},
defaultService: 'salesforce',
},
snowflake: {
id: 'snowflake',
name: 'Snowflake',
icon: (props) => SnowflakeIcon(props),
services: {
snowflake: {
id: 'snowflake',
name: 'Snowflake',
description: 'Execute queries and manage data in your Snowflake data warehouse.',
providerId: 'snowflake',
icon: (props) => SnowflakeIcon(props),
baseProviderIcon: (props) => SnowflakeIcon(props),
scopes: [],
},
},
defaultService: 'snowflake',
},
zoom: {
id: 'zoom',
name: 'Zoom',
@@ -1436,21 +1416,6 @@ function getProviderAuthConfig(provider: string): ProviderAuthConfig {
supportsRefreshTokenRotation: false,
}
}
case 'snowflake': {
const { clientId, clientSecret } = getCredentials(
env.SNOWFLAKE_CLIENT_ID,
env.SNOWFLAKE_CLIENT_SECRET
)
// Note: For Snowflake, the tokenEndpoint is account-specific
// The actual URL will be constructed dynamically in refreshOAuthToken
return {
tokenEndpoint: 'https://placeholder.snowflakecomputing.com/oauth/token-request',
clientId,
clientSecret,
useBasicAuth: false,
supportsRefreshTokenRotation: true,
}
}
case 'shopify': {
// Shopify access tokens don't expire and don't support refresh tokens
// This configuration is provided for completeness but won't be used for token refresh