2023-03-01 09:39:41 -06:00
|
|
|
/**
|
2026-01-28 17:09:06 -08:00
|
|
|
* Copyright IBM Corp. 2021, 2026
|
2024-05-31 11:29:24 -07:00
|
|
|
* SPDX-License-Identifier: BUSL-1.1
|
2023-03-01 09:39:41 -06:00
|
|
|
*/
|
|
|
|
|
|
2020-05-18 17:02:09 -04:00
|
|
|
import EmberRouter from '@ember/routing/router';
|
2020-11-17 11:15:42 -05:00
|
|
|
import config from 'admin/config/environment';
|
2020-05-18 17:02:09 -04:00
|
|
|
|
|
|
|
|
export default class Router extends EmberRouter {
|
|
|
|
|
location = config.locationType;
|
|
|
|
|
rootURL = config.rootURL;
|
|
|
|
|
}
|
|
|
|
|
|
2020-05-19 18:10:39 -04:00
|
|
|
Router.map(function () {
|
2021-04-02 16:06:38 -04:00
|
|
|
this.route('authentication-complete');
|
|
|
|
|
this.route('authentication-error');
|
|
|
|
|
|
2020-07-27 14:12:19 -04:00
|
|
|
this.route('scopes', function () {
|
|
|
|
|
this.route('scope', { path: ':scope_id' }, function () {
|
2020-07-29 15:47:23 -04:00
|
|
|
this.route('authenticate', function () {
|
2021-03-15 17:08:47 -04:00
|
|
|
this.route('method', { path: ':auth_method_id' }, function () {
|
2021-01-22 10:34:05 -05:00
|
|
|
this.route('oidc');
|
|
|
|
|
});
|
2020-07-24 17:05:55 -04:00
|
|
|
});
|
2020-08-14 17:40:31 -04:00
|
|
|
|
2022-11-03 18:37:42 -07:00
|
|
|
this.route('scopes', function () {
|
|
|
|
|
this.route('new');
|
|
|
|
|
});
|
2020-10-28 13:36:41 -04:00
|
|
|
this.route('edit');
|
2024-01-12 15:01:16 -08:00
|
|
|
this.route('add-storage-policy', function () {
|
|
|
|
|
this.route('create');
|
|
|
|
|
});
|
2020-08-14 17:40:31 -04:00
|
|
|
|
2020-07-27 14:12:19 -04:00
|
|
|
this.route('users', function () {
|
2020-09-30 10:45:39 -04:00
|
|
|
this.route('user', { path: ':user_id' }, function () {
|
|
|
|
|
this.route('accounts');
|
2020-09-30 11:32:25 -04:00
|
|
|
this.route('add-accounts');
|
2020-09-30 10:45:39 -04:00
|
|
|
});
|
2020-07-23 09:37:06 -04:00
|
|
|
this.route('new');
|
|
|
|
|
});
|
2020-08-14 17:40:31 -04:00
|
|
|
|
2020-07-27 16:42:02 -04:00
|
|
|
this.route('groups', function () {
|
2020-09-01 17:31:22 -04:00
|
|
|
this.route('group', { path: ':group_id' }, function () {
|
|
|
|
|
this.route('members');
|
2020-09-02 13:29:20 -04:00
|
|
|
this.route('add-members');
|
2020-09-01 17:31:22 -04:00
|
|
|
});
|
2020-07-27 16:42:02 -04:00
|
|
|
this.route('new');
|
|
|
|
|
});
|
2020-08-14 17:40:31 -04:00
|
|
|
|
2020-07-27 16:51:41 -04:00
|
|
|
this.route('roles', function () {
|
2020-08-07 18:56:21 -04:00
|
|
|
this.route('role', { path: ':role_id' }, function () {
|
|
|
|
|
this.route('grants');
|
2020-08-12 13:41:23 -04:00
|
|
|
this.route('principals');
|
2020-08-31 15:10:10 -04:00
|
|
|
this.route('add-principals');
|
2026-03-03 12:32:53 -05:00
|
|
|
this.route('add-grant-templates');
|
2024-06-12 11:57:06 -05:00
|
|
|
this.route('scopes');
|
2024-06-24 14:29:08 -07:00
|
|
|
this.route('manage-scopes', function () {
|
|
|
|
|
this.route('manage-custom-scopes');
|
2024-06-28 15:11:34 -07:00
|
|
|
this.route('manage-org-projects', { path: ':org_id' });
|
2024-06-24 14:29:08 -07:00
|
|
|
});
|
2026-03-04 15:18:27 -08:00
|
|
|
this.route('edit-grants');
|
2020-08-07 18:56:21 -04:00
|
|
|
});
|
2020-07-27 16:51:41 -04:00
|
|
|
this.route('new');
|
|
|
|
|
});
|
2020-08-14 17:40:31 -04:00
|
|
|
|
2020-09-16 14:33:04 -04:00
|
|
|
this.route('auth-methods', function () {
|
|
|
|
|
this.route('auth-method', { path: ':auth_method_id' }, function () {
|
|
|
|
|
this.route('accounts', function () {
|
|
|
|
|
this.route('account', { path: ':account_id' }, function () {
|
2020-09-16 12:52:24 -04:00
|
|
|
this.route('set-password');
|
2020-09-14 18:50:55 -04:00
|
|
|
});
|
2020-09-14 17:43:07 -04:00
|
|
|
this.route('new');
|
2020-09-14 16:50:17 -04:00
|
|
|
});
|
2021-11-09 10:29:49 -08:00
|
|
|
this.route('managed-groups', function () {
|
|
|
|
|
this.route(
|
|
|
|
|
'managed-group',
|
|
|
|
|
{ path: ':managed_group_id' },
|
2021-11-12 11:22:16 -05:00
|
|
|
function () {
|
2021-11-12 10:24:46 -08:00
|
|
|
this.route('members');
|
2023-11-22 14:07:41 -05:00
|
|
|
},
|
2021-11-09 10:29:49 -08:00
|
|
|
);
|
2021-11-10 07:32:40 -08:00
|
|
|
this.route('new');
|
2021-11-09 10:29:49 -08:00
|
|
|
});
|
2020-09-14 15:58:06 -04:00
|
|
|
});
|
2020-08-13 16:08:45 -04:00
|
|
|
this.route('new');
|
2020-08-12 17:16:41 -04:00
|
|
|
});
|
2020-10-28 13:36:41 -04:00
|
|
|
|
2020-11-16 15:08:59 -05:00
|
|
|
this.route('sessions', function () {});
|
2020-10-28 13:36:41 -04:00
|
|
|
|
2020-11-16 15:08:59 -05:00
|
|
|
this.route('targets', function () {
|
|
|
|
|
this.route('target', { path: ':target_id' }, function () {
|
2021-09-21 14:32:39 -04:00
|
|
|
this.route('host-sources', function () {});
|
|
|
|
|
this.route('add-host-sources');
|
2022-08-18 09:11:38 -07:00
|
|
|
this.route('brokered-credential-sources');
|
2022-08-30 10:52:21 -07:00
|
|
|
this.route('injected-application-credential-sources');
|
2022-08-18 09:11:38 -07:00
|
|
|
this.route('add-brokered-credential-sources');
|
2022-08-30 10:52:21 -07:00
|
|
|
this.route('add-injected-application-credential-sources');
|
2024-04-12 16:36:17 -07:00
|
|
|
this.route('create-alias');
|
|
|
|
|
this.route('manage-alias', { path: ':alias_id' }, function () {});
|
2023-06-07 15:45:46 -07:00
|
|
|
this.route('enable-session-recording', function () {
|
|
|
|
|
this.route('create-storage-bucket');
|
|
|
|
|
});
|
2024-07-12 09:38:33 -07:00
|
|
|
this.route('workers');
|
2024-07-19 09:11:03 -05:00
|
|
|
this.route('edit-ingress-worker-filter');
|
|
|
|
|
this.route('edit-egress-worker-filter');
|
2020-10-28 14:17:55 -04:00
|
|
|
});
|
2020-10-28 13:36:41 -04:00
|
|
|
this.route('new');
|
|
|
|
|
});
|
2020-10-28 18:19:14 -04:00
|
|
|
|
2024-03-15 14:24:20 -07:00
|
|
|
this.route('aliases', function () {
|
|
|
|
|
this.route('new');
|
|
|
|
|
this.route('alias', { path: ':alias_id' }, function () {});
|
|
|
|
|
});
|
|
|
|
|
|
2020-11-16 15:08:59 -05:00
|
|
|
this.route('host-catalogs', function () {
|
2020-10-28 18:19:14 -04:00
|
|
|
this.route('new');
|
2020-11-16 15:08:59 -05:00
|
|
|
this.route('host-catalog', { path: ':host_catalog_id' }, function () {
|
|
|
|
|
this.route('hosts', function () {
|
2020-10-28 19:00:35 -04:00
|
|
|
this.route('new');
|
2020-11-16 15:08:59 -05:00
|
|
|
this.route('host', { path: ':host_id' }, function () {});
|
2020-10-28 19:00:35 -04:00
|
|
|
});
|
2020-11-16 15:08:59 -05:00
|
|
|
this.route('host-sets', function () {
|
2020-10-29 11:09:04 -04:00
|
|
|
this.route('new');
|
2020-11-16 15:08:59 -05:00
|
|
|
this.route('host-set', { path: ':host_set_id' }, function () {
|
2022-02-16 15:05:35 -05:00
|
|
|
this.route('hosts', function () {
|
|
|
|
|
this.route('host', { path: ':host_id' }, function () {});
|
|
|
|
|
});
|
2020-10-29 11:50:14 -04:00
|
|
|
this.route('add-hosts');
|
|
|
|
|
this.route('create-and-add-host');
|
|
|
|
|
});
|
2020-10-29 11:09:04 -04:00
|
|
|
});
|
2020-10-28 19:00:35 -04:00
|
|
|
});
|
2020-10-28 18:19:14 -04:00
|
|
|
});
|
2021-07-12 07:32:35 -07:00
|
|
|
this.route('credential-stores', function () {
|
2021-07-14 07:59:15 -07:00
|
|
|
this.route(
|
|
|
|
|
'credential-store',
|
|
|
|
|
{ path: ':credential_store_id' },
|
2021-07-18 12:34:33 -04:00
|
|
|
function () {
|
2021-07-18 14:31:45 -04:00
|
|
|
this.route('credential-libraries', function () {
|
|
|
|
|
this.route('new');
|
2021-07-20 08:50:31 -04:00
|
|
|
this.route(
|
|
|
|
|
'credential-library',
|
|
|
|
|
{ path: ':credential_library_id' },
|
2023-11-22 14:07:41 -05:00
|
|
|
function () {},
|
2021-07-20 08:50:31 -04:00
|
|
|
);
|
2021-07-18 14:31:45 -04:00
|
|
|
});
|
2022-07-21 10:03:13 -07:00
|
|
|
this.route('credentials', function () {
|
|
|
|
|
this.route('new');
|
|
|
|
|
this.route(
|
|
|
|
|
'credential',
|
|
|
|
|
{ path: ':credential_id' },
|
2023-11-22 14:07:41 -05:00
|
|
|
function () {},
|
2022-07-21 10:03:13 -07:00
|
|
|
);
|
|
|
|
|
});
|
2024-12-11 14:00:27 -06:00
|
|
|
this.route('worker-filter');
|
|
|
|
|
this.route('edit-worker-filter');
|
2023-11-22 14:07:41 -05:00
|
|
|
},
|
2021-07-14 07:59:15 -07:00
|
|
|
);
|
2021-07-15 09:36:32 -07:00
|
|
|
this.route('new');
|
2021-07-12 07:32:35 -07:00
|
|
|
});
|
2022-08-01 16:04:41 -04:00
|
|
|
this.route('workers', function () {
|
|
|
|
|
this.route('new');
|
2024-06-25 22:29:43 -05:00
|
|
|
this.route('worker', { path: ':worker_id' }, function () {
|
|
|
|
|
this.route('tags');
|
2024-07-09 15:10:30 -05:00
|
|
|
this.route('create-tags');
|
2024-06-25 22:29:43 -05:00
|
|
|
});
|
2022-08-01 16:04:41 -04:00
|
|
|
});
|
2023-02-28 11:18:50 -05:00
|
|
|
this.route('session-recordings', function () {
|
|
|
|
|
this.route(
|
|
|
|
|
'session-recording',
|
|
|
|
|
{ path: ':session_recording_id' },
|
2023-03-01 15:58:59 -06:00
|
|
|
function () {
|
|
|
|
|
this.route('channels-by-connection', function () {
|
|
|
|
|
this.route('channel', { path: ':channel_id' }, function () {});
|
|
|
|
|
});
|
2023-11-22 14:07:41 -05:00
|
|
|
},
|
2023-02-28 11:18:50 -05:00
|
|
|
);
|
|
|
|
|
});
|
2023-03-03 12:43:47 -05:00
|
|
|
this.route('storage-buckets', function () {
|
|
|
|
|
this.route('new');
|
|
|
|
|
this.route(
|
|
|
|
|
'storage-bucket',
|
|
|
|
|
{ path: ':storage_bucket_id' },
|
2023-11-22 14:07:41 -05:00
|
|
|
function () {},
|
2023-03-03 12:43:47 -05:00
|
|
|
);
|
|
|
|
|
});
|
2024-01-03 12:05:23 -08:00
|
|
|
|
|
|
|
|
this.route('policies', function () {
|
|
|
|
|
this.route('new');
|
|
|
|
|
this.route('policy', { path: ':policy_id' }, function () {});
|
|
|
|
|
});
|
2020-07-23 09:37:06 -04:00
|
|
|
});
|
2020-07-22 17:16:20 -04:00
|
|
|
});
|
2020-09-17 10:24:22 -04:00
|
|
|
|
2020-11-16 15:08:59 -05:00
|
|
|
this.route('account', function () {
|
2020-10-01 21:51:37 -04:00
|
|
|
this.route('change-password');
|
2020-09-17 10:24:22 -04:00
|
|
|
});
|
2022-06-02 08:48:34 -04:00
|
|
|
|
|
|
|
|
this.route('onboarding', function () {
|
2023-01-31 12:05:52 -08:00
|
|
|
this.route('success');
|
2022-06-02 08:48:34 -04:00
|
|
|
});
|
2020-05-19 18:10:39 -04:00
|
|
|
});
|