Skip to content

Commit 6662bf4

Browse files
authored
Feat: Support for Token Vault (#1162)
2 parents 8b40ea3 + 4f1e51b commit 6662bf4

2 files changed

Lines changed: 46 additions & 4 deletions

File tree

src/management/__generated/models/index.ts

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ export interface Client {
110110
*/
111111
client_secret: string;
112112
/**
113-
* Type of client used to determine which settings are applicable. Can be `spa`, `native`, `non_interactive`, or `regular_web`.
113+
* The type of application this client represents
114114
*
115115
*/
116-
app_type: string;
116+
app_type: ClientAppTypeEnum;
117117
/**
118118
* URL of the logo to display for this client. Recommended size is 150x150 pixels.
119119
*
@@ -292,6 +292,35 @@ export interface Client {
292292
token_quota: TokenQuota;
293293
}
294294

295+
export const ClientAppTypeEnum = {
296+
native: 'native',
297+
spa: 'spa',
298+
regular_web: 'regular_web',
299+
non_interactive: 'non_interactive',
300+
resource_server: 'resource_server',
301+
express_configuration: 'express_configuration',
302+
rms: 'rms',
303+
box: 'box',
304+
cloudbees: 'cloudbees',
305+
concur: 'concur',
306+
dropbox: 'dropbox',
307+
mscrm: 'mscrm',
308+
echosign: 'echosign',
309+
egnyte: 'egnyte',
310+
newrelic: 'newrelic',
311+
office365: 'office365',
312+
salesforce: 'salesforce',
313+
sentry: 'sentry',
314+
sharepoint: 'sharepoint',
315+
slack: 'slack',
316+
springcm: 'springcm',
317+
zendesk: 'zendesk',
318+
zoom: 'zoom',
319+
sso_integration: 'sso_integration',
320+
oag: 'oag',
321+
} as const;
322+
export type ClientAppTypeEnum = (typeof ClientAppTypeEnum)[keyof typeof ClientAppTypeEnum];
323+
295324
export const ClientTokenEndpointAuthMethodEnum = {
296325
none: 'none',
297326
client_secret_post: 'client_secret_post',
@@ -1066,7 +1095,7 @@ export interface ClientCreate {
10661095
*/
10671096
token_endpoint_auth_method?: ClientCreateTokenEndpointAuthMethodEnum;
10681097
/**
1069-
* Type of client used to determine which settings are applicable. Can be `spa`, `native`, `non_interactive`, or `regular_web`.
1098+
* The type of application this client represents
10701099
*
10711100
*/
10721101
app_type?: ClientCreateAppTypeEnum;
@@ -1190,6 +1219,11 @@ export interface ClientCreate {
11901219
/**
11911220
*/
11921221
token_quota?: CreateTokenQuota;
1222+
/**
1223+
* The identifier of the resource server that this client is linked to.
1224+
*
1225+
*/
1226+
resource_server_identifier?: string;
11931227
}
11941228

11951229
export const ClientCreateTokenEndpointAuthMethodEnum = {
@@ -1205,6 +1239,7 @@ export const ClientCreateAppTypeEnum = {
12051239
spa: 'spa',
12061240
regular_web: 'regular_web',
12071241
non_interactive: 'non_interactive',
1242+
resource_server: 'resource_server',
12081243
rms: 'rms',
12091244
box: 'box',
12101245
cloudbees: 'cloudbees',
@@ -2791,6 +2826,7 @@ export const ClientUpdateAppTypeEnum = {
27912826
spa: 'spa',
27922827
regular_web: 'regular_web',
27932828
non_interactive: 'non_interactive',
2829+
resource_server: 'resource_server',
27942830
rms: 'rms',
27952831
box: 'box',
27962832
cloudbees: 'cloudbees',
@@ -16580,6 +16616,11 @@ export interface ResourceServer {
1658016616
/**
1658116617
*/
1658216618
subject_type_authorization?: ResourceServerSubjectTypeAuthorization;
16619+
/**
16620+
* The client ID of the client that this resource server is linked to
16621+
*
16622+
*/
16623+
client_id?: string;
1658316624
}
1658416625

1658516626
export const ResourceServerSigningAlgEnum = {

test/management/client.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ describe('ClientsManager', () => {
189189
const data: ClientCreate = {
190190
name: 'test_name',
191191
description: 'test_description',
192-
app_type: 'spa',
192+
app_type: 'resource_server',
193193
logo_uri: 'test_logo_uri',
194194
token_quota: {
195195
client_credentials: {
@@ -198,6 +198,7 @@ describe('ClientsManager', () => {
198198
enforce: true,
199199
},
200200
},
201+
resource_server_identifier: 'https://test-token-vault-1.example.com',
201202
};
202203
const response: Partial<Client> = {
203204
tenant: 'test_tenant',

0 commit comments

Comments
 (0)