Skip to content

Commit d98fa1b

Browse files
committed
source-airtable-native: comment out OAuth auth option
We're still working on setting up an OAuth app in Airtable for the native connector. When that app's ready, we can uncomment the OAuth2Credentials option and allow users to authenticate via OAuth.
1 parent 675602f commit d98fa1b

File tree

2 files changed

+5
-50
lines changed

2 files changed

+5
-50
lines changed

source-airtable-native/source_airtable_native/models.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ class AirtableResourceConfigWithSchedule(ResourceConfigWithSchedule):
8787

8888

8989
class EndpointConfig(BaseModel):
90-
credentials: OAuth2Credentials | AccessToken = Field(
90+
credentials: (
91+
AccessToken
92+
# Disable the OAuth authentication option until we have an OAuth app in Airtable set up.
93+
# | OAuth2Credentials
94+
) = Field(
9195
discriminator="credentials_title",
9296
title="Authentication",
9397
)

source-airtable-native/tests/snapshots/snapshots__spec__capture.stdout.json

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -22,66 +22,17 @@
2222
],
2323
"title": "AccessToken",
2424
"type": "object"
25-
},
26-
"RotatingOAuth2Credentials": {
27-
"properties": {
28-
"credentials_title": {
29-
"const": "OAuth Credentials",
30-
"default": "OAuth Credentials",
31-
"title": "Credentials Title",
32-
"type": "string"
33-
},
34-
"client_id": {
35-
"secret": true,
36-
"title": "Client Id",
37-
"type": "string"
38-
},
39-
"client_secret": {
40-
"secret": true,
41-
"title": "Client Secret",
42-
"type": "string"
43-
},
44-
"refresh_token": {
45-
"secret": true,
46-
"title": "Refresh Token",
47-
"type": "string"
48-
},
49-
"access_token": {
50-
"secret": true,
51-
"title": "Access Token",
52-
"type": "string"
53-
},
54-
"access_token_expires_at": {
55-
"format": "date-time",
56-
"title": "Access token expiration time.",
57-
"type": "string"
58-
}
59-
},
60-
"required": [
61-
"client_id",
62-
"client_secret",
63-
"refresh_token",
64-
"access_token",
65-
"access_token_expires_at"
66-
],
67-
"title": "OAuth",
68-
"type": "object",
69-
"x-oauth2-provider": "airtable"
7025
}
7126
},
7227
"properties": {
7328
"credentials": {
7429
"discriminator": {
7530
"mapping": {
76-
"OAuth Credentials": "#/$defs/RotatingOAuth2Credentials",
7731
"Private App Credentials": "#/$defs/AccessToken"
7832
},
7933
"propertyName": "credentials_title"
8034
},
8135
"oneOf": [
82-
{
83-
"$ref": "#/$defs/RotatingOAuth2Credentials"
84-
},
8536
{
8637
"$ref": "#/$defs/AccessToken"
8738
}

0 commit comments

Comments
 (0)