You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

@advanced-rest-client/auth-methods

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@advanced-rest-client/auth-methods - npm Package Compare versions

Comparing version

to
5.0.0

@@ -46,6 +46,2 @@ /**

/**
* @deprecated Use `compatibility` instead
*/
legacy: { type: Boolean },
/**
* Enables Material Design outlined style

@@ -52,0 +48,0 @@ */

@@ -297,6 +297,6 @@ /**

this._queryParameters = undefined;
if (!this._hasType(model, this.ns.raml.vocabularies.security + 'ParametrizedSecurityScheme')) {
if (!this._hasType(model, prefix.ParametrizedSecurityScheme)) {
return;
}
const shKey = this._getAmfKey(prefix + 'scheme');
const shKey = this._getAmfKey(prefix.scheme);
let scheme = model[shKey];

@@ -308,3 +308,3 @@ let type;

}
type = this._getValue(scheme, prefix + 'type');
type = this._getValue(scheme, prefix.type);
}

@@ -314,8 +314,8 @@ if (!type || type.indexOf('x-') !== 0) {

}
const hKey = this._getAmfKey(this.ns.raml.vocabularies.http + 'header');
const hKey = this._getAmfKey(this.ns.aml.vocabularies.apiContract.header);
this._createViewModel('header', this._ensureArray(scheme[hKey]));
const params = this._readParamsProperties(scheme);
this._createViewModel('parameter', params);
this._schemeName = this._getValue(model, prefix + 'name');
this._schemeDescription = this._getValue(scheme, this.ns.schema.desc);
this._schemeName = this._getValue(model, this.ns.aml.vocabularies.core.name);
this._schemeDescription = this._getValue(scheme, this.ns.aml.vocabularies.core.description);
this._settingsChanged();

@@ -325,3 +325,3 @@ }

_readParamsProperties(scheme) {
const pKey = this._getAmfKey(this.ns.raml.vocabularies.http + 'parameter');
const pKey = this._getAmfKey(this.ns.aml.vocabularies.apiContract.parameter);
let result = this._ensureArray(scheme[pKey]);

@@ -331,3 +331,3 @@ if (result) {

}
const qKey = this._getAmfKey(this.ns.raml.vocabularies.http + 'queryString');
const qKey = this._getAmfKey(this.ns.aml.vocabularies.apiContract.queryString);
result = this._ensureArray(scheme[qKey]);

@@ -334,0 +334,0 @@ if (result) {

@@ -700,4 +700,4 @@ /**

}
const prefix = this.ns.raml.vocabularies.security;
const shKey = this._getAmfKey(prefix + 'scheme');
const prefix = this.ns.aml.vocabularies.security;
const shKey = this._getAmfKey(prefix.scheme);
let scheme = model[shKey];

@@ -709,3 +709,3 @@ let type;

}
type = this._getValue(scheme, prefix + 'type');
type = this._getValue(scheme, prefix.type);
}

@@ -716,3 +716,3 @@ if (type !== 'OAuth 1.0') {

}
const sKey = this._getAmfKey(this.ns.raml.vocabularies.security + 'settings');
const sKey = this._getAmfKey(prefix.settings);
let settings = scheme[sKey];

@@ -726,6 +726,6 @@ if (settings instanceof Array) {

}
this.requestTokenUri = this._getValue(settings, prefix + 'requestTokenUri');
this.authorizationUri = this._getValue(settings, prefix + 'authorizationUri');
this.accessTokenUri = this._getValue(settings, prefix + 'tokenCredentialsUri');
const signaturtes = this._getValueArray(settings, prefix + 'signature');
this.requestTokenUri = this._getValue(settings, prefix.requestTokenUri);
this.authorizationUri = this._getValue(settings, prefix.authorizationUri);
this.accessTokenUri = this._getValue(settings, prefix.tokenCredentialsUri);
const signaturtes = this._getValueArray(settings, prefix.signature);
if (!signaturtes || !signaturtes.length) {

@@ -732,0 +732,0 @@ this.signatureMethods = this.defaultSignatureMethods;

{
"name": "@advanced-rest-client/auth-methods",
"description": "A set of elements that contains an UI to create different authorization headers like Basic, OAuth etc",
"version": "4.0.11",
"version": "5.0.0",
"license": "Apache-2.0",

@@ -37,3 +37,3 @@ "main": "auth-methods.js",

"@advanced-rest-client/markdown-styles": "^3.1.0",
"@advanced-rest-client/oauth2-scope-selector": "^3.0.2",
"@advanced-rest-client/oauth2-scope-selector": "^3.0.3",
"@anypoint-web-components/anypoint-button": "^1.0.11",

@@ -45,6 +45,6 @@ "@anypoint-web-components/anypoint-checkbox": "^1.0.1",

"@anypoint-web-components/anypoint-listbox": "^1.0.3",
"@api-components/amf-helper-mixin": "^3.1.7",
"@api-components/amf-helper-mixin": "^4.0.13",
"@api-components/api-form-mixin": "^3.0.3",
"@api-components/api-property-form-item": "^3.0.9",
"@api-components/api-view-model-transformer": "^3.0.5",
"@api-components/api-property-form-item": "^3.0.10",
"@api-components/api-view-model-transformer": "^4.0.0",
"@polymer/iron-form": "^3.0.0",

@@ -58,3 +58,3 @@ "@polymer/iron-meta": "^3.0.0",

"devDependencies": {
"@advanced-rest-client/arc-demo-helper": "^1.0.14",
"@advanced-rest-client/arc-demo-helper": "^1.0.15",
"@advanced-rest-client/eslint-config": "^1.1.3",

@@ -64,9 +64,9 @@ "@advanced-rest-client/oauth-authorization": "^3.0.1",

"@advanced-rest-client/testing-karma-sl": "^1.0.5",
"@api-components/api-headers-editor": "^3.0.3",
"@api-components/api-model-generator": "^0.1.13",
"@api-components/api-navigation": "^3.1.1",
"@api-components/api-headers-editor": "^4.0.0",
"@api-components/api-model-generator": "^0.2.0-rc.1",
"@api-components/api-navigation": "^4.0.0",
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^7.0.0",
"@open-wc/testing": "^2.3.4",
"@open-wc/testing-karma": "^3.1.38",
"@commitlint/config-conventional": "^8.2.0",
"@open-wc/testing": "^2.3.5",
"@open-wc/testing-karma": "^3.1.39",
"@polymer/gen-typescript-declarations": "^1.6.2",

@@ -76,8 +76,8 @@ "@polymer/iron-test-helpers": "^3.0.0",

"cryptojslib": "^3.1.2",
"deepmerge": "^4.0.0",
"es-dev-server": "^1.18.3",
"husky": "^1.0.0",
"deepmerge": "^4.1.1",
"es-dev-server": "^1.18.4",
"husky": "^3.0.9",
"jsrsasign": "^8.0.12",
"karma": "^4.3.0",
"lint-staged": "^9.4.1",
"lint-staged": "^9.4.2",
"sinon": "^7.5.0",

@@ -98,5 +98,5 @@ "web-animations-js": "^2.3.2"

"test:watch": "karma start --auto-watch=true --single-run=false",
"test:legacy": "karma start --legacy --coverage",
"test:legacy:watch": "karma start --legacy --auto-watch=true --single-run=false",
"test:sl": "karma start karma.sl.config.js --legacy --coverage",
"test:legacy": "karma start --compatibility all --coverage",
"test:legacy:watch": "karma start --compatibility all --auto-watch=true --single-run=false",
"test:sl": "karma start karma.sl.config.js --compatibility all --coverage",
"generate-model": "node demo/model.js"

@@ -103,0 +103,0 @@ },

@@ -9,3 +9,7 @@ [![Published on NPM](https://img.shields.io/npm/v/@advanced-rest-client/auth-methods.svg)](https://www.npmjs.com/package/@api-components/auth-methods)

## Version compatibility
This version only works with AMF model version 2 (AMF parser >= 4.0.0).
For compatibility with previous model version use `3.x.x` version of the component.
## Usage

@@ -12,0 +16,0 @@

Sorry, the diff of this file is too big to display