File tree Expand file tree Collapse file tree 2 files changed +5
-50
lines changed
Expand file tree Collapse file tree 2 files changed +5
-50
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,11 @@ class AirtableResourceConfigWithSchedule(ResourceConfigWithSchedule):
8787
8888
8989class 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 )
Original file line number Diff line number Diff line change 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 }
You can’t perform that action at this time.
0 commit comments