ef-keycloak-connect 1.2.3 → 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.3",
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