Skip to content

Commit f753b81

Browse files
atrakhConvex, Inc.
authored andcommitted
Allow client_id for token-based auth (#39302)
GitOrigin-RevId: d4f4746dca79e541363ff3efbfd1ed6812bdf626
1 parent 0a9108c commit f753b81

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

npm-packages/dashboard/dashboard-openapi.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2818,6 +2818,12 @@
28182818
"creationTime"
28192819
],
28202820
"properties": {
2821+
"appClientId": {
2822+
"type": [
2823+
"string",
2824+
"null"
2825+
]
2826+
},
28212827
"appName": {
28222828
"$ref": "#/components/schemas/AppName"
28232829
},
@@ -3144,6 +3150,16 @@
31443150
}
31453151
]
31463152
},
3153+
"oauthApp": {
3154+
"oneOf": [
3155+
{
3156+
"type": "null"
3157+
},
3158+
{
3159+
"$ref": "#/components/schemas/OauthAppMetadata"
3160+
}
3161+
]
3162+
},
31473163
"permissions": {
31483164
"type": [
31493165
"array",
@@ -4176,6 +4192,22 @@
41764192
}
41774193
}
41784194
},
4195+
"OauthAppMetadata": {
4196+
"type": "object",
4197+
"required": [
4198+
"clientId",
4199+
"clientSecret"
4200+
],
4201+
"properties": {
4202+
"clientId": {
4203+
"type": "string"
4204+
},
4205+
"clientSecret": {
4206+
"type": "string"
4207+
}
4208+
},
4209+
"additionalProperties": false
4210+
},
41794211
"OauthAppResponse": {
41804212
"type": "object",
41814213
"required": [

npm-packages/dashboard/src/generatedApi.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,6 +1613,7 @@ export interface components {
16131613
/** @description Encrypted admin key */
16141614
AdminKey: string;
16151615
AppAccessTokenResponse: {
1616+
appClientId?: string | null;
16161617
appName: components["schemas"]["AppName"];
16171618
/** Format: int64 */
16181619
creationTime: number;
@@ -1681,6 +1682,7 @@ export interface components {
16811682
authnToken: string;
16821683
deploymentId?: null | components["schemas"]["DeploymentId"];
16831684
deviceName?: null | components["schemas"]["DeviceName"];
1685+
oauthApp?: null | components["schemas"]["OauthAppMetadata"];
16841686
permissions?: string[] | null;
16851687
projectId?: null | components["schemas"]["ProjectId"];
16861688
teamId?: null | components["schemas"]["TeamId"];
@@ -1942,6 +1944,10 @@ export interface components {
19421944
id: components["schemas"]["MemberId"];
19431945
name?: string | null;
19441946
};
1947+
OauthAppMetadata: {
1948+
clientId: string;
1949+
clientSecret: string;
1950+
};
19451951
OauthAppResponse: {
19461952
appName: components["schemas"]["AppName"];
19471953
clientId: string;
@@ -2313,6 +2319,7 @@ export type MemberEmailId = components['schemas']['MemberEmailId'];
23132319
export type MemberEmailResponse = components['schemas']['MemberEmailResponse'];
23142320
export type MemberId = components['schemas']['MemberId'];
23152321
export type MemberResponse = components['schemas']['MemberResponse'];
2322+
export type OauthAppMetadata = components['schemas']['OauthAppMetadata'];
23162323
export type OauthAppResponse = components['schemas']['OauthAppResponse'];
23172324
export type OptIn = components['schemas']['OptIn'];
23182325
export type OptInToAccept = components['schemas']['OptInToAccept'];

0 commit comments

Comments
 (0)