Skip to content

Commit

Permalink
Added enabled_clients in connection interface (#1014)
Browse files Browse the repository at this point in the history
Co-authored-by: gyaneshgouraw-okta <gyanesh.gouraw@gmail.com>
  • Loading branch information
gyaneshgouraw-okta and gyaneshgouraw-okta committed Jun 20, 2024
1 parent 7a3398a commit 7b2467a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/management/__generated/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2556,6 +2556,11 @@ export interface Connection {
*
*/
realms: Array<string>;
/**
* The ids of the clients for which the connection is enabled
*
*/
enabled_clients: Array<string>;
/**
* True if the connection is domain level
*
Expand Down
4 changes: 4 additions & 0 deletions test/management/connections.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ describe('ConnectionsManager', () => {
strategy: 'auth0',
realms: ['test'],
is_domain_connection: false,
enabled_clients: ['test'],
metadata: {
test: 'test value',
},
Expand Down Expand Up @@ -97,6 +98,7 @@ describe('ConnectionsManager', () => {
expect(connections.data[0].realms?.[0]).toBe(response[0].realms[0]);
expect(connections.data[0].is_domain_connection).toBe(response[0].is_domain_connection);
expect(connections.data[0].metadata?.test).toBe(response[0].metadata.test);
expect(connections.data[0].enabled_clients[0]).toBe(response[0].enabled_clients[0]);

done();
});
Expand Down Expand Up @@ -172,6 +174,7 @@ describe('ConnectionsManager', () => {
strategy: 'auth0',
realms: ['test'],
is_domain_connection: false,
enabled_clients: ['test'],
metadata: {
test: 'test value',
},
Expand Down Expand Up @@ -209,6 +212,7 @@ describe('ConnectionsManager', () => {
expect(connection.data.realms?.[0]).toBe(response.realms[0]);
expect(connection.data.is_domain_connection).toBe(response.is_domain_connection);
expect(connection.data.metadata?.test).toBe(response.metadata.test);
expect(connection.data.enabled_clients[0]).toBe(response.enabled_clients[0]);

done();
});
Expand Down

0 comments on commit 7b2467a

Please sign in to comment.