keycloak-api-manager 2.0.6 → 2.0.7

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.
@@ -79,7 +79,7 @@
79
79
  <option name="presentableId" value="Default" />
80
80
  <updated>1759849149064</updated>
81
81
  <workItem from="1759849150239" duration="1214000" />
82
- <workItem from="1759917554117" duration="62855000" />
82
+ <workItem from="1759917554117" duration="63852000" />
83
83
  </task>
84
84
  <servers />
85
85
  </component>
package/index.js CHANGED
@@ -101,7 +101,7 @@ exports.getToken=function(configToOverride){
101
101
 
102
102
  //TODO: Remove da documentare
103
103
  //permette ad un utente o un client di autenticarsi su keycloack ed oottenere un token
104
- exports.auth=function(credentials){
104
+ exports.auth=async function(credentials){
105
105
  let options={
106
106
  url: `${configAdminclient.baseUrl}/realms/${configAdminclient.realmName}/protocol/openid-connect/token` ,
107
107
  headers: {'Authorization': 'Bearer ' + kcAdminClient.accessToken},
@@ -113,7 +113,7 @@ exports.auth=function(credentials){
113
113
  if(error){
114
114
  console.log("Internal Server Error:", error);
115
115
  }else{
116
- res.send(body);
116
+ return(body);
117
117
  }
118
118
  });
119
119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloak-api-manager",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "Keycloak-api-manager is a lightweight Node.js wrapper for the Keycloak Admin REST API. It provides an easy-to-use functional methods and functions to manage realms, users, roles, clients, groups, and permissions directly from your application code — just like you would from the Keycloak admin console.",
5
5
  "main": "index.js",
6
6
  "scripts": {