Comparing version 0.1.4 to 0.1.5
@@ -197,2 +197,24 @@ var request = require('request'), | ||
}); | ||
}; | ||
}; | ||
api.getStrategies = function(accessToken, done) { | ||
request.get({ | ||
url: this.apiUrl + '/strategies', | ||
qs: { access_token: accessToken } | ||
}, function (err, r, body) { | ||
if (err) { return done(err); } | ||
if (r.statusCode.toString().substr(0, 1) !== '2'){ | ||
return done(new Error(body)); | ||
} | ||
try { | ||
var result = JSON.parse(body); | ||
done(null, result); | ||
} catch(e) { | ||
done(e); | ||
} | ||
}); | ||
}; |
{ | ||
"name": "auth0", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Client library for the Auth0 platform", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -44,20 +44,5 @@ Node.js client library for the Auth0 platform. | ||
'options': { | ||
// depending on the strategy, you will need a set of credentials to authenticate | ||
// your app against the directory (office365 and google apps use this) | ||
// Note: you will use the same values for these fields | ||
// for all connections with same strategy (in this case office365) | ||
'client_id': 'xxx', | ||
'client_secret': 'xxx', | ||
// These fields are provided by the user: | ||
'tenant_domain': 'bigcompany.com or bicompany.onmicrosoft.com', | ||
// attributes: | ||
'ext_profile': true, | ||
'ext_groups': true, | ||
'ext_assigned_plans': true, | ||
// grants: | ||
'api_enable_users': true | ||
'tenant_domain': 'bigcompany.com or bicompany.onmicrosoft.com' | ||
}; | ||
@@ -64,0 +49,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
235
11756
110