@advanced-rest-client/oauth-authorization
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -633,1 +633,22 @@ <a name="2.0.2"></a> | ||
<a name="5.0.3"></a> | ||
## [5.0.3](https://github.com/advanced-rest-client/oauth-authorization/compare/5.0.0...5.0.3) (2020-12-28) | ||
### Build | ||
* bumping version [d285b59](https://github.com/advanced-rest-client/oauth-authorization/commit/d285b593828bb9ae7974cd5d04b0cbab2eda5a18) by Pawel Psztyc | ||
### Update | ||
* minor bug fixes [b64bafd](https://github.com/advanced-rest-client/oauth-authorization/commit/b64bafd10ea75219766ade7bcf453614969ab09f) by Pawel Psztyc | ||
* updating dependencies [a3b4cbd](https://github.com/advanced-rest-client/oauth-authorization/commit/a3b4cbdbad2b93d343531a4dd3e9b559f93d42ee) by Pawel Psztyc | ||
* [ci skip] automated merge master->stage. syncing main branches [e37f61a](https://github.com/advanced-rest-client/oauth-authorization/commit/e37f61a7fe3b00c8c1c93fa90d9e4b8aa0f0d210) by Ci agent | ||
* [ci skip] automated merge master->stage. syncing main branches [296b442](https://github.com/advanced-rest-client/oauth-authorization/commit/296b4429525dd07b5f2b7cf63e834296fc956a41) by Ci agent | ||
### Bug Fixes | ||
* missing client_secret when constructing popup url [a50496f](https://github.com/advanced-rest-client/oauth-authorization/commit/a50496f01b9434254be717ae6e5bde3343a28e39) by Carolina Wright | ||
{ | ||
"name": "@advanced-rest-client/oauth-authorization", | ||
"description": "A set of elements that perform oauth authorization", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -675,3 +675,4 @@ /* eslint-disable no-param-reassign */ | ||
const info = JSON.parse(body); | ||
Object.keys(info).forEach((name) => { | ||
Object.keys(info).forEach((key) => { | ||
let name = key; | ||
if (name.includes('_') || name.includes('-')) { | ||
@@ -851,2 +852,2 @@ name = camel(name); | ||
} | ||
} | ||
} |
/* eslint-disable class-methods-use-this */ | ||
import { OAuth2AuthorizeEvent } from '@advanced-rest-client/arc-events'; | ||
import { EventsTargetMixin } from '@advanced-rest-client/events-target-mixin'; | ||
import { OAuth2, Authorization } from '@advanced-rest-client/arc-types' | ||
import { Authorization } from '@advanced-rest-client/arc-types' | ||
@@ -27,3 +27,3 @@ export declare const authorizeHandler: unique symbol; | ||
*/ | ||
authorize(settings: Authorization.OAuth2Authorization): OAuth2.TokenInfo; | ||
authorize(settings: Authorization.OAuth2Authorization): Authorization.TokenInfo; | ||
} |
@@ -6,3 +6,3 @@ /* eslint-disable class-methods-use-this */ | ||
/** @typedef {import('@advanced-rest-client/arc-types').OAuth2.TokenInfo} TokenInfo */ | ||
/** @typedef {import('@advanced-rest-client/arc-types').Authorization.TokenInfo} TokenInfo */ | ||
/** @typedef {import('@advanced-rest-client/arc-types').Authorization.OAuth2Authorization} OAuth2Settings */ | ||
@@ -49,4 +49,5 @@ /** @typedef {import('@advanced-rest-client/arc-events').OAuth2AuthorizeEvent} OAuth2AuthorizeEvent */ | ||
const auth = new OAuth2Authorization(settings); | ||
auth.checkConfig(); | ||
return auth.authorize(); | ||
} | ||
} |
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
186530
3252