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

atlassian-oauth2

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atlassian-oauth2 - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

2

lib/oauth2.js

@@ -52,3 +52,3 @@ var request = require('request'),

return new RSVP.Promise(function (resolve, reject) {
var jwtClaims = _createAssertionPayload(opts.hostBaseUrl, opts.oauthClientId, opts.userKey);
var jwtClaims = _createAssertionPayload(opts.hostBaseUrl, opts.oauthClientId, opts.userKey, opts.authorizationServerBaseUrl);
var assertion = jwt.encode(jwtClaims, opts.sharedSecret);

@@ -55,0 +55,0 @@

{
"name": "atlassian-oauth2",
"description": "Atlassian Connect OAuth2 library",
"version": "0.2.1",
"version": "0.2.2",
"author": "Seb Ruiz <sruiz@atlassian.com>",

@@ -6,0 +6,0 @@ "repository": {

@@ -161,2 +161,10 @@ var should = require('should'),

it('Request assertion is a JWT token with custom baseurl as aud', function (done) {
var customAuthUrl = 'https://auth2.atlassian.io';
interceptRequest(done, function (uri, requestBody) {
var body = qs.parse(requestBody);
jwt.decode(body.assertion, sharedSecret).aud.should.be.eql([customAuthUrl]);
}, { authorizationServerBaseUrl: customAuthUrl });
});
describe('scopes', function () {

@@ -163,0 +171,0 @@ it('no scopes', function (done) {

Sorry, the diff of this file is not supported yet

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