Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

atlassian-jwt

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atlassian-jwt - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

bitbucket-pipelines.yml

16

lib/jwt.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc