atlassian-jwt
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -129,8 +129,8 @@ /* | ||
jwt.createCanonicalRequest = function createCanonicalRequest(req, checkBodyForParams, addonBaseUrl) { | ||
return canonicalizeMethod(req) + CANONICAL_QUERY_SEPARATOR + canonicalizeUri(req, addonBaseUrl) + CANONICAL_QUERY_SEPARATOR + canonicalizeQueryString(req, checkBodyForParams); | ||
jwt.createCanonicalRequest = function createCanonicalRequest(req, checkBodyForParams, baseUrl) { | ||
return canonicalizeMethod(req) + CANONICAL_QUERY_SEPARATOR + canonicalizeUri(req, baseUrl) + CANONICAL_QUERY_SEPARATOR + canonicalizeQueryString(req, checkBodyForParams); | ||
}; | ||
jwt.createQueryStringHash = function createQueryStringHash(req, checkBodyForParams, addonBaseUrl) { | ||
return crypto.createHash(algorithmMap.HS256).update(this.createCanonicalRequest(req, checkBodyForParams, addonBaseUrl)).digest('hex'); | ||
jwt.createQueryStringHash = function createQueryStringHash(req, checkBodyForParams, baseUrl) { | ||
return crypto.createHash(algorithmMap.HS256).update(this.createCanonicalRequest(req, checkBodyForParams, baseUrl)).digest('hex'); | ||
}; | ||
@@ -169,8 +169,8 @@ | ||
function canonicalizeUri(req, addonBaseUrlString) { | ||
function canonicalizeUri(req, baseUrlString) { | ||
var path = req.path; | ||
var addonBaseUrl = new Uri(addonBaseUrlString); | ||
var baseUrl = new Uri(baseUrlString); | ||
if (path && path.indexOf(addonBaseUrl.path()) === 0) { | ||
path = path.replace(addonBaseUrl.path(), ''); | ||
if (path && path.indexOf(baseUrl.path()) === 0) { | ||
path = path.replace(baseUrl.path(), ''); | ||
} | ||
@@ -177,0 +177,0 @@ |
{ | ||
"name": "atlassian-jwt", | ||
"description": "JWT (JSON Web Token) implementation with custom Atlassian QSH claim verification", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"author": "Seb Ruiz <sruiz@atlassian.com>", | ||
@@ -6,0 +6,0 @@ "repository": { |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
62513
9
0
67