Socket
Socket
Sign inDemoInstall

predix-uaa-client

Package Overview
Dependencies
49
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.3 to 1.3.4

2

package.json
{
"name": "predix-uaa-client",
"version": "1.3.3",
"version": "1.3.4",
"description": "Node module to get a token from UAA using client credentials or refresh tokens",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -39,4 +39,4 @@ 'use strict'

expect(stub.calledOnce).to.be.true;
expect(stub.calledWith(match({ uri: url })));
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }})));
expect(stub.calledWith(match({ url }))).to.be.ok;
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }}))).to.be.ok;
expect(token.access_token).to.equal('test-token');

@@ -58,4 +58,4 @@ done();

expect(stub.calledOnce).to.be.true;
expect(stub.calledWith(match({ uri: url })));
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }})));
expect(stub.calledWith(match({ url }))).to.be.ok;
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }}))).to.be.ok;
expect(token.access_token).to.equal('test-token-1');

@@ -89,4 +89,4 @@

expect(stub.calledOnce).to.be.true;
expect(stub.calledWith(match({ uri: url })));
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }})));
expect(stub.calledWith(match({ url }))).to.be.ok;
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }}))).to.be.ok;
expect(token.access_token).to.equal('test-token-1');

@@ -123,4 +123,4 @@

expect(stub.calledOnce).to.be.true;
expect(stub.calledWith(match({ uri: url })));
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }})));
expect(stub.calledWith(match({ url }))).to.be.ok;
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }}))).to.be.ok;
expect(token.access_token).to.equal('test-token-1');

@@ -164,4 +164,4 @@

expect(stub.calledOnce).to.be.true;
expect(stub.calledWith(match({ uri: url })));
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }})));
expect(stub.calledWith(match({ url }))).to.be.ok;
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }}))).to.be.ok;
expect(token.access_token).to.equal('test-token-1');

@@ -242,4 +242,4 @@

expect(stub.calledOnce).to.be.true;
expect(stub.calledWith(match({ uri: url })));
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }})));
expect(stub.calledWith(match({ url }))).to.be.ok;
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }}))).to.be.ok;
expect(token.access_token).to.equal('test-token-1');

@@ -284,4 +284,4 @@

expect(stub.calledOnce).to.be.true;
expect(stub.calledWith(match({ uri: url })));
expect(stub.calledWith(match({ form: { grant_type: 'refresh_token' }})));
expect(stub.calledWith(match({ url }))).to.be.ok;
expect(stub.calledWith(match({ form: { grant_type: 'refresh_token' }}))).to.be.ok;
expect(token.access_token).to.equal('test-token');

@@ -307,5 +307,5 @@ done();

expect(stub.calledOnce).to.be.true;
expect(stub.calledWith(match({ uri: url })));
expect(stub.calledWith(match({ form: { grant_type: 'refresh_token' }})));
expect(stub.calledWith(match({ form: { refresh_token: refreshToken }})));
expect(stub.calledWith(match({ url }))).to.be.ok;
expect(stub.calledWith(match({ form: { grant_type: 'refresh_token' }}))).to.be.ok;
expect(stub.calledWith(match({ form: { refresh_token: refreshToken }}))).to.be.ok;
expect(token.access_token).to.equal('test-token-1');

@@ -321,5 +321,5 @@

expect(stub.calledTwice).to.be.true;
expect(stub.calledWith(match({ uri: url })));
expect(stub.calledWith(match({ form: { grant_type: 'refresh_token' }})));
expect(stub.calledWith(match({ form: { refresh_token: refreshToken }})));
expect(stub.calledWith(match({ url }))).to.be.ok;
expect(stub.calledWith(match({ form: { grant_type: 'refresh_token' }}))).to.be.ok;
expect(stub.calledWith(match({ form: { refresh_token: refreshToken }}))).to.be.ok;
expect(token.access_token).to.equal('test-token-2');

@@ -394,4 +394,4 @@ done();

expect(stub.calledOnce).to.be.true;
expect(stub.calledWith(match({ uri: url })));
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }})));
expect(stub.calledWith(match({ url }))).to.be.ok;
expect(stub.calledWith(match({ form: { grant_type: 'client_credentials' }}))).to.be.ok;
expect(token.access_token).to.equal('test-token-1');

@@ -398,0 +398,0 @@ expect(token.token_type).to.equal('bearer');

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc