@keycloak/keycloak-admin-client 19.0.0-dev.3 → 19.0.0-dev.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/README.md +10 -10
  2. package/lib/client.d.ts +24 -22
  3. package/lib/client.js +68 -181
  4. package/lib/client.js.map +1 -1
  5. package/lib/defs/AccessTokenAccess.js +1 -2
  6. package/lib/defs/PermissonRepresentation.js +1 -2
  7. package/lib/defs/accessTokenCertConf.js +1 -2
  8. package/lib/defs/accessTokenRepresentation.d.ts +4 -4
  9. package/lib/defs/accessTokenRepresentation.js +1 -2
  10. package/lib/defs/addressClaimSet.js +1 -2
  11. package/lib/defs/adminEventRepresentation.d.ts +1 -1
  12. package/lib/defs/adminEventRepresentation.js +1 -2
  13. package/lib/defs/authDetailsRepresentation.js +1 -2
  14. package/lib/defs/authenticationExecutionExportRepresentation.js +1 -2
  15. package/lib/defs/authenticationExecutionInfoRepresentation.js +1 -2
  16. package/lib/defs/authenticationFlowRepresentation.d.ts +1 -1
  17. package/lib/defs/authenticationFlowRepresentation.js +1 -2
  18. package/lib/defs/authenticatorConfigInfoRepresentation.js +1 -2
  19. package/lib/defs/authenticatorConfigRepresentation.js +1 -2
  20. package/lib/defs/certificateRepresentation.js +1 -2
  21. package/lib/defs/clientInitialAccessPresentation.js +1 -2
  22. package/lib/defs/clientPoliciesRepresentation.d.ts +1 -1
  23. package/lib/defs/clientPoliciesRepresentation.js +1 -2
  24. package/lib/defs/clientPolicyConditionRepresentation.js +1 -2
  25. package/lib/defs/clientPolicyExecutorRepresentation.js +1 -2
  26. package/lib/defs/clientPolicyRepresentation.d.ts +1 -1
  27. package/lib/defs/clientPolicyRepresentation.js +1 -2
  28. package/lib/defs/clientProfileRepresentation.d.ts +1 -1
  29. package/lib/defs/clientProfileRepresentation.js +1 -2
  30. package/lib/defs/clientProfilesRepresentation.d.ts +1 -1
  31. package/lib/defs/clientProfilesRepresentation.js +1 -2
  32. package/lib/defs/clientRepresentation.d.ts +2 -2
  33. package/lib/defs/clientRepresentation.js +1 -2
  34. package/lib/defs/clientScopeRepresentation.d.ts +1 -1
  35. package/lib/defs/clientScopeRepresentation.js +1 -2
  36. package/lib/defs/componentExportRepresentation.js +1 -2
  37. package/lib/defs/componentRepresentation.js +1 -2
  38. package/lib/defs/componentTypeRepresentation.d.ts +1 -1
  39. package/lib/defs/componentTypeRepresentation.js +1 -2
  40. package/lib/defs/configPropertyRepresentation.js +1 -2
  41. package/lib/defs/credentialRepresentation.js +1 -2
  42. package/lib/defs/evaluationResultRepresentation.d.ts +4 -4
  43. package/lib/defs/evaluationResultRepresentation.js +1 -2
  44. package/lib/defs/eventRepresentation.d.ts +1 -1
  45. package/lib/defs/eventRepresentation.js +1 -2
  46. package/lib/defs/eventTypes.js +1 -2
  47. package/lib/defs/federatedIdentityRepresentation.js +1 -2
  48. package/lib/defs/globalRequestResult.js +1 -2
  49. package/lib/defs/groupRepresentation.js +1 -2
  50. package/lib/defs/identityProviderMapperRepresentation.js +1 -2
  51. package/lib/defs/identityProviderMapperTypeRepresentation.d.ts +1 -1
  52. package/lib/defs/identityProviderMapperTypeRepresentation.js +1 -2
  53. package/lib/defs/identityProviderRepresentation.js +1 -2
  54. package/lib/defs/keyMetadataRepresentation.js +1 -2
  55. package/lib/defs/keystoreConfig.js +1 -2
  56. package/lib/defs/managementPermissionReference.js +1 -2
  57. package/lib/defs/mappingsRepresentation.d.ts +1 -1
  58. package/lib/defs/mappingsRepresentation.js +1 -2
  59. package/lib/defs/passwordPolicyTypeRepresentation.js +1 -2
  60. package/lib/defs/policyEvaluationResponse.d.ts +3 -3
  61. package/lib/defs/policyEvaluationResponse.js +1 -2
  62. package/lib/defs/policyProviderRepresentation.js +1 -2
  63. package/lib/defs/policyRepresentation.js +6 -9
  64. package/lib/defs/policyRepresentation.js.map +1 -1
  65. package/lib/defs/policyResultRepresentation.d.ts +2 -1
  66. package/lib/defs/policyResultRepresentation.js +1 -2
  67. package/lib/defs/profileInfoRepresentation.js +1 -2
  68. package/lib/defs/protocolMapperRepresentation.js +1 -2
  69. package/lib/defs/realmEventsConfigRepresentation.js +1 -2
  70. package/lib/defs/realmRepresentation.d.ts +10 -10
  71. package/lib/defs/realmRepresentation.js +1 -2
  72. package/lib/defs/requiredActionProviderRepresentation.js +2 -5
  73. package/lib/defs/requiredActionProviderRepresentation.js.map +1 -1
  74. package/lib/defs/requiredActionProviderSimpleRepresentation.js +1 -2
  75. package/lib/defs/resourceEvaluation.d.ts +1 -1
  76. package/lib/defs/resourceEvaluation.js +1 -2
  77. package/lib/defs/resourceRepresentation.d.ts +2 -2
  78. package/lib/defs/resourceRepresentation.js +1 -2
  79. package/lib/defs/resourceServerRepresentation.d.ts +3 -3
  80. package/lib/defs/resourceServerRepresentation.js +1 -2
  81. package/lib/defs/roleRepresentation.js +1 -2
  82. package/lib/defs/rolesRepresentation.d.ts +1 -1
  83. package/lib/defs/rolesRepresentation.js +1 -2
  84. package/lib/defs/scopeRepresentation.d.ts +2 -2
  85. package/lib/defs/scopeRepresentation.js +1 -2
  86. package/lib/defs/serverInfoRepesentation.d.ts +6 -6
  87. package/lib/defs/serverInfoRepesentation.js +1 -2
  88. package/lib/defs/synchronizationResultRepresentation.js +1 -2
  89. package/lib/defs/systemInfoRepersantation.js +1 -2
  90. package/lib/defs/testLdapConnection.js +1 -2
  91. package/lib/defs/userConsentRepresentation.js +1 -2
  92. package/lib/defs/userProfileConfig.js +1 -2
  93. package/lib/defs/userRepresentation.d.ts +5 -5
  94. package/lib/defs/userRepresentation.js +1 -2
  95. package/lib/defs/userSessionRepresentation.js +1 -2
  96. package/lib/defs/whoAmIRepresentation.js +1 -2
  97. package/lib/index.d.ts +2 -2
  98. package/lib/index.js +4 -7
  99. package/lib/index.js.map +1 -1
  100. package/lib/resources/agent.d.ts +2 -2
  101. package/lib/resources/agent.js +115 -193
  102. package/lib/resources/agent.js.map +1 -1
  103. package/lib/resources/attackDetection.d.ts +5 -5
  104. package/lib/resources/attackDetection.js +16 -41
  105. package/lib/resources/attackDetection.js.map +1 -1
  106. package/lib/resources/authenticationManagement.d.ts +36 -35
  107. package/lib/resources/authenticationManagement.js +72 -97
  108. package/lib/resources/authenticationManagement.js.map +1 -1
  109. package/lib/resources/cache.d.ts +3 -3
  110. package/lib/resources/cache.js +12 -37
  111. package/lib/resources/cache.js.map +1 -1
  112. package/lib/resources/clientPolicies.d.ts +9 -9
  113. package/lib/resources/clientPolicies.js +19 -44
  114. package/lib/resources/clientPolicies.js.map +1 -1
  115. package/lib/resources/clientScopes.d.ts +29 -27
  116. package/lib/resources/clientScopes.js +92 -185
  117. package/lib/resources/clientScopes.js.map +1 -1
  118. package/lib/resources/clients.d.ts +98 -92
  119. package/lib/resources/clients.js +228 -309
  120. package/lib/resources/clients.js.map +1 -1
  121. package/lib/resources/components.d.ts +9 -9
  122. package/lib/resources/components.js +22 -47
  123. package/lib/resources/components.js.map +1 -1
  124. package/lib/resources/groups.d.ts +26 -25
  125. package/lib/resources/groups.js +53 -78
  126. package/lib/resources/groups.js.map +1 -1
  127. package/lib/resources/identityProviders.d.ts +19 -19
  128. package/lib/resources/identityProviders.js +40 -65
  129. package/lib/resources/identityProviders.js.map +1 -1
  130. package/lib/resources/realms.d.ts +40 -39
  131. package/lib/resources/realms.js +73 -98
  132. package/lib/resources/realms.js.map +1 -1
  133. package/lib/resources/resource.d.ts +3 -3
  134. package/lib/resources/resource.js +12 -26
  135. package/lib/resources/resource.js.map +1 -1
  136. package/lib/resources/roles.d.ts +16 -16
  137. package/lib/resources/roles.js +42 -67
  138. package/lib/resources/roles.js.map +1 -1
  139. package/lib/resources/serverInfo.d.ts +4 -4
  140. package/lib/resources/serverInfo.js +9 -34
  141. package/lib/resources/serverInfo.js.map +1 -1
  142. package/lib/resources/sessions.d.ts +3 -3
  143. package/lib/resources/sessions.js +12 -37
  144. package/lib/resources/sessions.js.map +1 -1
  145. package/lib/resources/userStorageProvider.d.ts +8 -8
  146. package/lib/resources/userStorageProvider.js +20 -45
  147. package/lib/resources/userStorageProvider.js.map +1 -1
  148. package/lib/resources/users.d.ts +51 -51
  149. package/lib/resources/users.js +95 -120
  150. package/lib/resources/users.js.map +1 -1
  151. package/lib/resources/whoAmI.d.ts +4 -4
  152. package/lib/resources/whoAmI.js +12 -37
  153. package/lib/resources/whoAmI.js.map +1 -1
  154. package/lib/utils/auth.js +30 -82
  155. package/lib/utils/auth.js.map +1 -1
  156. package/lib/utils/constants.d.ts +1 -1
  157. package/lib/utils/constants.js +2 -5
  158. package/lib/utils/constants.js.map +1 -1
  159. package/package.json +24 -17
  160. package/lib/defs/accessTokenAuthorization.d.ts +0 -4
  161. package/lib/defs/accessTokenAuthorization.js +0 -3
  162. package/lib/defs/accessTokenAuthorization.js.map +0 -1
package/README.md CHANGED
@@ -23,7 +23,7 @@ import KcAdminClient from '@keycloak/keycloak-admin-client';
23
23
 
24
24
  // To configure the client, pass an object to override any of these options:
25
25
  // {
26
- // baseUrl: 'http://127.0.0.1:8080/auth',
26
+ // baseUrl: 'http://127.0.0.1:8080',
27
27
  // realmName: 'master',
28
28
  // requestConfig: {
29
29
  // /* Axios request config options https://github.com/axios/axios#request-config */
@@ -33,8 +33,8 @@ const kcAdminClient = new KcAdminClient();
33
33
 
34
34
  // Authorize with username / password
35
35
  await kcAdminClient.auth({
36
- username: 'wwwy3y3',
37
- password: 'wwwy3y3',
36
+ username: 'admin',
37
+ password: 'admin',
38
38
  grantType: 'password',
39
39
  clientId: 'admin-cli',
40
40
  totp: '123456', // optional Time-based One-time Password if OTP is required in authentication flow
@@ -66,7 +66,7 @@ To refresh the access token provided by Keycloak, an OpenID client like [panva/n
66
66
  import {Issuer} from 'openid-client';
67
67
 
68
68
  const keycloakIssuer = await Issuer.discover(
69
- 'http://localhost:8080/auth/realms/master',
69
+ 'http://localhost:8080/realms/master',
70
70
  );
71
71
 
72
72
  const client = new keycloakIssuer.Client({
@@ -77,8 +77,8 @@ const client = new keycloakIssuer.Client({
77
77
  // Use the grant type 'password'
78
78
  let tokenSet = await client.grant({
79
79
  grant_type: 'password',
80
- username: 'wwwy3y3',
81
- password: 'wwwy3y3',
80
+ username: 'admin',
81
+ password: 'admin',
82
82
  });
83
83
 
84
84
  // Periodically using refresh_token grant flow to get new access token here
@@ -110,17 +110,17 @@ To build the source do a build:
110
110
  npm run build
111
111
  ```
112
112
 
113
- Start keycloak in a docker container or run it locally:
113
+ Start the Keycloak server:
114
114
 
115
115
  ```bash
116
- docker run --name keycloak -d -p 127.0.0.1:8080:8080 -e KEYCLOAK_USER=wwwy3y3 -e KEYCLOAK_PASSWORD=wwwy3y3 quay.io/keycloak/keycloak:latest
116
+ npm run server:start
117
117
  ```
118
118
 
119
- If you started your container manually make sure there is an admin user named www3y3 with password www3y3 as admin on master realm.
119
+ If you started your container manually make sure there is an admin user named 'admin' with password 'admin'.
120
120
  Then start the tests with:
121
121
 
122
122
  ```bash
123
- npm run test
123
+ npm test
124
124
  ```
125
125
 
126
126
  ## Supported APIs
package/lib/client.d.ts CHANGED
@@ -1,23 +1,25 @@
1
- import { Credentials } from './utils/auth';
2
- import { Cache } from './resources/cache';
3
- import { Users } from './resources/users';
4
- import { Groups } from './resources/groups';
5
- import { Roles } from './resources/roles';
6
- import { Clients } from './resources/clients';
7
- import { Realms } from './resources/realms';
8
- import { ClientScopes } from './resources/clientScopes';
9
- import { ClientPolicies } from './resources/clientPolicies';
10
- import { IdentityProviders } from './resources/identityProviders';
11
- import { Components } from './resources/components';
12
- import { AuthenticationManagement } from './resources/authenticationManagement';
13
- import { ServerInfo } from './resources/serverInfo';
14
- import { WhoAmI } from './resources/whoAmI';
15
- import { AttackDetection } from './resources/attackDetection';
16
- import { AxiosRequestConfig } from 'axios';
17
- import { Sessions } from './resources/sessions';
18
- import { UserStorageProvider } from './resources/userStorageProvider';
19
- import type { KeycloakInstance, KeycloakInitOptions, KeycloakConfig } from 'keycloak-js';
20
- import { RequestArgs } from './resources/agent';
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type { RequestArgs } from './resources/agent.js';
3
+ import { AttackDetection } from './resources/attackDetection.js';
4
+ import { AuthenticationManagement } from './resources/authenticationManagement.js';
5
+ import { Cache } from './resources/cache.js';
6
+ import { ClientPolicies } from './resources/clientPolicies.js';
7
+ import { Clients } from './resources/clients.js';
8
+ import { ClientScopes } from './resources/clientScopes.js';
9
+ import { Components } from './resources/components.js';
10
+ import { Groups } from './resources/groups.js';
11
+ import { IdentityProviders } from './resources/identityProviders.js';
12
+ import { Realms } from './resources/realms.js';
13
+ import { Roles } from './resources/roles.js';
14
+ import { ServerInfo } from './resources/serverInfo.js';
15
+ import { Sessions } from './resources/sessions.js';
16
+ import { Users } from './resources/users.js';
17
+ import { UserStorageProvider } from './resources/userStorageProvider.js';
18
+ import { WhoAmI } from './resources/whoAmI.js';
19
+ import { Credentials } from './utils/auth.js';
20
+ export interface TokenProvider {
21
+ getAccessToken: () => Promise<string | undefined>;
22
+ }
21
23
  export interface ConnectionConfig {
22
24
  baseUrl?: string;
23
25
  realmName?: string;
@@ -45,12 +47,12 @@ export declare class KeycloakAdminClient {
45
47
  realmName: string;
46
48
  accessToken?: string;
47
49
  refreshToken?: string;
48
- keycloak?: KeycloakInstance;
49
50
  private requestConfig?;
50
51
  private globalRequestArgOptions?;
52
+ private tokenProvider?;
51
53
  constructor(connectionConfig?: ConnectionConfig);
52
54
  auth(credentials: Credentials): Promise<void>;
53
- init(init?: KeycloakInitOptions, config?: KeycloakConfig): Promise<void>;
55
+ registerTokenProvider(provider: TokenProvider): void;
54
56
  setAccessToken(token: string): void;
55
57
  getAccessToken(): Promise<string | undefined>;
56
58
  getRequestConfig(): AxiosRequestConfig<any> | undefined;
package/lib/client.js CHANGED
@@ -1,189 +1,78 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
- return new (P || (P = Promise))(function (resolve, reject) {
28
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
- step((generator = generator.apply(thisArg, _arguments || [])).next());
32
- });
33
- };
34
- var __generator = (this && this.__generator) || function (thisArg, body) {
35
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
36
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
37
- function verb(n) { return function (v) { return step([n, v]); }; }
38
- function step(op) {
39
- if (f) throw new TypeError("Generator is already executing.");
40
- while (_) try {
41
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
42
- if (y = 0, t) op = [op[0] & 2, t.value];
43
- switch (op[0]) {
44
- case 0: case 1: t = op; break;
45
- case 4: _.label++; return { value: op[1], done: false };
46
- case 5: _.label++; y = op[1]; op = [0]; continue;
47
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
48
- default:
49
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
50
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
51
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
52
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
53
- if (t[2]) _.ops.pop();
54
- _.trys.pop(); continue;
55
- }
56
- op = body.call(thisArg, _);
57
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
58
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
59
- }
60
- };
61
- exports.__esModule = true;
62
- exports.KeycloakAdminClient = void 0;
63
- var auth_1 = require("./utils/auth");
64
- var constants_1 = require("./utils/constants");
65
- var cache_1 = require("./resources/cache");
66
- var users_1 = require("./resources/users");
67
- var groups_1 = require("./resources/groups");
68
- var roles_1 = require("./resources/roles");
69
- var clients_1 = require("./resources/clients");
70
- var realms_1 = require("./resources/realms");
71
- var clientScopes_1 = require("./resources/clientScopes");
72
- var clientPolicies_1 = require("./resources/clientPolicies");
73
- var identityProviders_1 = require("./resources/identityProviders");
74
- var components_1 = require("./resources/components");
75
- var authenticationManagement_1 = require("./resources/authenticationManagement");
76
- var serverInfo_1 = require("./resources/serverInfo");
77
- var whoAmI_1 = require("./resources/whoAmI");
78
- var attackDetection_1 = require("./resources/attackDetection");
79
- var sessions_1 = require("./resources/sessions");
80
- var userStorageProvider_1 = require("./resources/userStorageProvider");
81
- var KeycloakAdminClient = (function () {
82
- function KeycloakAdminClient(connectionConfig) {
1
+ import { AttackDetection } from './resources/attackDetection.js';
2
+ import { AuthenticationManagement } from './resources/authenticationManagement.js';
3
+ import { Cache } from './resources/cache.js';
4
+ import { ClientPolicies } from './resources/clientPolicies.js';
5
+ import { Clients } from './resources/clients.js';
6
+ import { ClientScopes } from './resources/clientScopes.js';
7
+ import { Components } from './resources/components.js';
8
+ import { Groups } from './resources/groups.js';
9
+ import { IdentityProviders } from './resources/identityProviders.js';
10
+ import { Realms } from './resources/realms.js';
11
+ import { Roles } from './resources/roles.js';
12
+ import { ServerInfo } from './resources/serverInfo.js';
13
+ import { Sessions } from './resources/sessions.js';
14
+ import { Users } from './resources/users.js';
15
+ import { UserStorageProvider } from './resources/userStorageProvider.js';
16
+ import { WhoAmI } from './resources/whoAmI.js';
17
+ import { getToken } from './utils/auth.js';
18
+ import { defaultBaseUrl, defaultRealm } from './utils/constants.js';
19
+ export class KeycloakAdminClient {
20
+ constructor(connectionConfig) {
83
21
  this.baseUrl =
84
- (connectionConfig && connectionConfig.baseUrl) || constants_1.defaultBaseUrl;
22
+ (connectionConfig && connectionConfig.baseUrl) || defaultBaseUrl;
85
23
  this.realmName =
86
- (connectionConfig && connectionConfig.realmName) || constants_1.defaultRealm;
24
+ (connectionConfig && connectionConfig.realmName) || defaultRealm;
87
25
  this.requestConfig = connectionConfig && connectionConfig.requestConfig;
88
26
  this.globalRequestArgOptions = connectionConfig && connectionConfig.requestArgOptions;
89
- this.users = new users_1.Users(this);
90
- this.userStorageProvider = new userStorageProvider_1.UserStorageProvider(this);
91
- this.groups = new groups_1.Groups(this);
92
- this.roles = new roles_1.Roles(this);
93
- this.clients = new clients_1.Clients(this);
94
- this.realms = new realms_1.Realms(this);
95
- this.clientScopes = new clientScopes_1.ClientScopes(this);
96
- this.clientPolicies = new clientPolicies_1.ClientPolicies(this);
97
- this.identityProviders = new identityProviders_1.IdentityProviders(this);
98
- this.components = new components_1.Components(this);
99
- this.authenticationManagement = new authenticationManagement_1.AuthenticationManagement(this);
100
- this.serverInfo = new serverInfo_1.ServerInfo(this);
101
- this.whoAmI = new whoAmI_1.WhoAmI(this);
102
- this.sessions = new sessions_1.Sessions(this);
103
- this.attackDetection = new attackDetection_1.AttackDetection(this);
104
- this.cache = new cache_1.Cache(this);
27
+ this.users = new Users(this);
28
+ this.userStorageProvider = new UserStorageProvider(this);
29
+ this.groups = new Groups(this);
30
+ this.roles = new Roles(this);
31
+ this.clients = new Clients(this);
32
+ this.realms = new Realms(this);
33
+ this.clientScopes = new ClientScopes(this);
34
+ this.clientPolicies = new ClientPolicies(this);
35
+ this.identityProviders = new IdentityProviders(this);
36
+ this.components = new Components(this);
37
+ this.authenticationManagement = new AuthenticationManagement(this);
38
+ this.serverInfo = new ServerInfo(this);
39
+ this.whoAmI = new WhoAmI(this);
40
+ this.sessions = new Sessions(this);
41
+ this.attackDetection = new AttackDetection(this);
42
+ this.cache = new Cache(this);
105
43
  }
106
- KeycloakAdminClient.prototype.auth = function (credentials) {
107
- return __awaiter(this, void 0, void 0, function () {
108
- var _a, accessToken, refreshToken;
109
- return __generator(this, function (_b) {
110
- switch (_b.label) {
111
- case 0: return [4, (0, auth_1.getToken)({
112
- baseUrl: this.baseUrl,
113
- realmName: this.realmName,
114
- credentials: credentials,
115
- requestConfig: this.requestConfig
116
- })];
117
- case 1:
118
- _a = _b.sent(), accessToken = _a.accessToken, refreshToken = _a.refreshToken;
119
- this.accessToken = accessToken;
120
- this.refreshToken = refreshToken;
121
- return [2];
122
- }
123
- });
44
+ async auth(credentials) {
45
+ const { accessToken, refreshToken } = await getToken({
46
+ baseUrl: this.baseUrl,
47
+ realmName: this.realmName,
48
+ credentials,
49
+ requestConfig: this.requestConfig,
124
50
  });
125
- };
126
- KeycloakAdminClient.prototype.init = function (init, config) {
127
- return __awaiter(this, void 0, void 0, function () {
128
- var Keycloak;
129
- return __generator(this, function (_a) {
130
- switch (_a.label) {
131
- case 0:
132
- if (typeof window === 'undefined') {
133
- return [2];
134
- }
135
- return [4, Promise.resolve().then(function () { return __importStar(require('keycloak-js')); })];
136
- case 1:
137
- Keycloak = (_a.sent())["default"];
138
- this.keycloak = Keycloak(config);
139
- if (!init) return [3, 3];
140
- return [4, this.keycloak.init(init)];
141
- case 2:
142
- _a.sent();
143
- _a.label = 3;
144
- case 3:
145
- if (this.keycloak.authServerUrl) {
146
- this.baseUrl = this.keycloak.authServerUrl;
147
- }
148
- return [2];
149
- }
150
- });
151
- });
152
- };
153
- KeycloakAdminClient.prototype.setAccessToken = function (token) {
51
+ this.accessToken = accessToken;
52
+ this.refreshToken = refreshToken;
53
+ }
54
+ registerTokenProvider(provider) {
55
+ if (this.tokenProvider) {
56
+ throw new Error('An existing token provider was already registered.');
57
+ }
58
+ this.tokenProvider = provider;
59
+ }
60
+ setAccessToken(token) {
154
61
  this.accessToken = token;
155
- };
156
- KeycloakAdminClient.prototype.getAccessToken = function () {
157
- return __awaiter(this, void 0, void 0, function () {
158
- var error_1;
159
- return __generator(this, function (_a) {
160
- switch (_a.label) {
161
- case 0:
162
- if (!this.keycloak) return [3, 5];
163
- _a.label = 1;
164
- case 1:
165
- _a.trys.push([1, 3, , 4]);
166
- return [4, this.keycloak.updateToken(5)];
167
- case 2:
168
- _a.sent();
169
- return [3, 4];
170
- case 3:
171
- error_1 = _a.sent();
172
- this.keycloak.login();
173
- return [3, 4];
174
- case 4: return [2, this.keycloak.token];
175
- case 5: return [2, this.accessToken];
176
- }
177
- });
178
- });
179
- };
180
- KeycloakAdminClient.prototype.getRequestConfig = function () {
62
+ }
63
+ async getAccessToken() {
64
+ if (this.tokenProvider) {
65
+ return this.tokenProvider.getAccessToken();
66
+ }
67
+ return this.accessToken;
68
+ }
69
+ getRequestConfig() {
181
70
  return this.requestConfig;
182
- };
183
- KeycloakAdminClient.prototype.getGlobalRequestArgOptions = function () {
71
+ }
72
+ getGlobalRequestArgOptions() {
184
73
  return this.globalRequestArgOptions;
185
- };
186
- KeycloakAdminClient.prototype.setConfig = function (connectionConfig) {
74
+ }
75
+ setConfig(connectionConfig) {
187
76
  if (typeof connectionConfig.baseUrl === 'string' &&
188
77
  connectionConfig.baseUrl) {
189
78
  this.baseUrl = connectionConfig.baseUrl;
@@ -193,8 +82,6 @@ var KeycloakAdminClient = (function () {
193
82
  this.realmName = connectionConfig.realmName;
194
83
  }
195
84
  this.requestConfig = connectionConfig.requestConfig;
196
- };
197
- return KeycloakAdminClient;
198
- }());
199
- exports.KeycloakAdminClient = KeycloakAdminClient;
85
+ }
86
+ }
200
87
  //# sourceMappingURL=client.js.map
package/lib/client.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAmD;AACnD,+CAA+D;AAC/D,2CAAwC;AACxC,2CAAwC;AACxC,6CAA0C;AAC1C,2CAAwC;AACxC,+CAA4C;AAC5C,6CAA0C;AAC1C,yDAAsD;AACtD,6DAA0D;AAC1D,mEAAgE;AAChE,qDAAkD;AAClD,iFAA8E;AAC9E,qDAAkD;AAClD,6CAA0C;AAC1C,+DAA4D;AAG5D,iDAA8C;AAC9C,uEAAoE;AAWpE;IA6BE,6BAAY,gBAAmC;QAC7C,IAAI,CAAC,OAAO;YACV,CAAC,gBAAgB,IAAI,gBAAgB,CAAC,OAAO,CAAC,IAAI,0BAAc,CAAC;QACnE,IAAI,CAAC,SAAS;YACZ,CAAC,gBAAgB,IAAI,gBAAgB,CAAC,SAAS,CAAC,IAAI,wBAAY,CAAC;QACnE,IAAI,CAAC,aAAa,GAAG,gBAAgB,IAAI,gBAAgB,CAAC,aAAa,CAAC;QACxE,IAAI,CAAC,uBAAuB,GAAG,gBAAgB,IAAI,gBAAgB,CAAC,iBAAiB,CAAC;QAGtF,IAAI,CAAC,KAAK,GAAG,IAAI,aAAK,CAAC,IAAI,CAAC,CAAC;QAC7B,IAAI,CAAC,mBAAmB,GAAG,IAAI,yCAAmB,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,MAAM,GAAG,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0BAA0B;QAC/B,OAAO,IAAI,CAAC,uBAAuB,CAAC;IACtC,CAAC;IAEM,SAAS,CAAC,gBAAkC;QACjD,IACE,OAAO,gBAAgB,CAAC,OAAO,KAAK,QAAQ;YAC5C,gBAAgB,CAAC,OAAO,EACxB;YACA,IAAI,CAAC,OAAO,GAAG,gBAAgB,CAAC,OAAO,CAAC;SACzC;QAED,IACE,OAAO,gBAAgB,CAAC,SAAS,KAAK,QAAQ;YAC9C,gBAAgB,CAAC,SAAS,EAC1B;YACA,IAAI,CAAC,SAAS,GAAG,gBAAgB,CAAC,SAAS,CAAC;SAC7C;QACD,IAAI,CAAC,aAAa,GAAG,gBAAgB,CAAC,aAAa,CAAC;IACtD,CAAC;CACF"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=AccessTokenAccess.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=PermissonRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=accessTokenCertConf.js.map
@@ -1,7 +1,7 @@
1
- import AccessTokenAccess from './AccessTokenAccess';
2
- import AccessTokenCertConf from './accessTokenCertConf';
3
- import AddressClaimSet from './addressClaimSet';
4
- import { Category } from './resourceServerRepresentation';
1
+ import type AccessTokenAccess from './AccessTokenAccess.js';
2
+ import type AccessTokenCertConf from './accessTokenCertConf.js';
3
+ import type AddressClaimSet from './addressClaimSet.js';
4
+ import type { Category } from './resourceServerRepresentation.js';
5
5
  export default interface AccessTokenRepresentation {
6
6
  acr?: string;
7
7
  address?: AddressClaimSet;
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=accessTokenRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=addressClaimSet.js.map
@@ -1,4 +1,4 @@
1
- import AuthDetailsRepresentation from './authDetailsRepresentation';
1
+ import type AuthDetailsRepresentation from './authDetailsRepresentation.js';
2
2
  export default interface AdminEventRepresentation {
3
3
  authDetails?: AuthDetailsRepresentation;
4
4
  error?: string;
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=adminEventRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=authDetailsRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=authenticationExecutionExportRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=authenticationExecutionInfoRepresentation.js.map
@@ -1,4 +1,4 @@
1
- import AuthenticationExecutionExportRepresentation from './authenticationExecutionExportRepresentation';
1
+ import type AuthenticationExecutionExportRepresentation from './authenticationExecutionExportRepresentation.js';
2
2
  export default interface AuthenticationFlowRepresentation {
3
3
  id?: string;
4
4
  alias?: string;
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=authenticationFlowRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=authenticatorConfigInfoRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=authenticatorConfigRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=certificateRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=clientInitialAccessPresentation.js.map
@@ -1,4 +1,4 @@
1
- import ClientPolicyRepresentation from './clientPolicyRepresentation';
1
+ import type ClientPolicyRepresentation from './clientPolicyRepresentation.js';
2
2
  export default interface ClientPoliciesRepresentation {
3
3
  policies?: ClientPolicyRepresentation[];
4
4
  }
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=clientPoliciesRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=clientPolicyConditionRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=clientPolicyExecutorRepresentation.js.map
@@ -1,4 +1,4 @@
1
- import ClientPolicyConditionRepresentation from './clientPolicyConditionRepresentation';
1
+ import type ClientPolicyConditionRepresentation from './clientPolicyConditionRepresentation.js';
2
2
  export default interface ClientPolicyRepresentation {
3
3
  conditions?: ClientPolicyConditionRepresentation[];
4
4
  description?: string;
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=clientPolicyRepresentation.js.map
@@ -1,4 +1,4 @@
1
- import ClientPolicyExecutorRepresentation from './clientPolicyExecutorRepresentation';
1
+ import type ClientPolicyExecutorRepresentation from './clientPolicyExecutorRepresentation.js';
2
2
  export default interface ClientProfileRepresentation {
3
3
  description?: string;
4
4
  executors?: ClientPolicyExecutorRepresentation[];
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=clientProfileRepresentation.js.map
@@ -1,4 +1,4 @@
1
- import ClientProfileRepresentation from './clientProfileRepresentation';
1
+ import type ClientProfileRepresentation from './clientProfileRepresentation.js';
2
2
  export default interface ClientProfilesRepresentation {
3
3
  globalProfiles?: ClientProfileRepresentation[];
4
4
  profiles?: ClientProfileRepresentation[];
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=clientProfilesRepresentation.js.map
@@ -1,5 +1,5 @@
1
- import ResourceServerRepresentation from './resourceServerRepresentation';
2
- import ProtocolMapperRepresentation from './protocolMapperRepresentation';
1
+ import type ResourceServerRepresentation from './resourceServerRepresentation.js';
2
+ import type ProtocolMapperRepresentation from './protocolMapperRepresentation.js';
3
3
  export default interface ClientRepresentation {
4
4
  access?: Record<string, boolean>;
5
5
  adminUrl?: string;
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=clientRepresentation.js.map
@@ -1,4 +1,4 @@
1
- import ProtocolMapperRepresentation from './protocolMapperRepresentation';
1
+ import type ProtocolMapperRepresentation from './protocolMapperRepresentation.js';
2
2
  export default interface ClientScopeRepresentation {
3
3
  attributes?: Record<string, any>;
4
4
  description?: string;
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=clientScopeRepresentation.js.map