byu-group-mem
Advanced tools
Comparing version 0.0.3 to 0.1.0
15
index.js
@@ -34,12 +34,3 @@ /** | ||
let generatewso2RequestOptions = function (method, url) { | ||
return { | ||
url: url, | ||
method: method, | ||
json: true, | ||
resolveWithFullResponse: true, | ||
simple: false, | ||
encoding: 'utf8', | ||
headers: { | ||
Accept: 'application/json' | ||
} | ||
return {url: url, method: method, json: true, resolveWithFullResponse: true, simple: false, encoding: 'utf8', headers: {Accept: 'application/json'} | ||
}; | ||
@@ -72,3 +63,3 @@ }; | ||
Promise.race([ | ||
config.wso2_request_instance.request(generatewso2RequestOptions('GET', `https://api.byu.edu:443/domains/legacy/identity/access/membersof/v1/${config.group_name}`)), | ||
config.wso2_request_instance.request(generatewso2RequestOptions('GET', `https://api.byu.edu:443/byuapi/persons/v1/${req.verifiedJWTs.prioritizedClaims.byuId}/group_memberships/${config.group_name}`)), | ||
timeout() | ||
@@ -91,3 +82,3 @@ ]) | ||
}) | ||
} | ||
}; | ||
}; |
{ | ||
"name": "byu-group-mem", | ||
"version": "0.0.3", | ||
"version": "0.1.0", | ||
"description": "Validates the group membership of a person", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,0 +0,0 @@ # byu-group-mem |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
20590
67