ef-keycloak-connect 1.2.2 → 1.2.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ef-keycloak-connect",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "Node JS keycloak adapter for authentication and authorization.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -150,6 +150,12 @@ class KeycloakService extends Keycloak{
150
150
  'realm': realm_name
151
151
 
152
152
  };
153
+
154
+ //Adding user custom attribute to our token object data.
155
+ if(getuserDetails.data[0].attributes){
156
+ responseObject.attributes = getuserDetails.data[0].attributes;
157
+ }
158
+
153
159
  let finalObject = {
154
160
  'token': userToken,
155
161
  'keycloak_User': responseObject
@@ -588,7 +594,7 @@ class KeycloakService extends Keycloak{
588
594
  for (let i = 0; i < keycloak_roles.length; i++) {
589
595
  try {
590
596
 
591
- config.url = keycloakConfig["auth-server-url"] + 'admin/realms/' + keycloakConfig.realm + '/roles/' + keycloak_roles[i] + '/users'
597
+ config.url = keycloakConfig["auth-server-url"] + 'admin/realms/' + keycloakConfig.realm + '/roles/' + keycloak_roles[i] + '/users?max=100000'
592
598
  let getUsersfromRoles = await requestController.httpRequest(config, true);
593
599
  userObject = getUsersfromRoles.data;
594
600