@adobe/aio-lib-ims-oauth
Advanced tools
Comparing version 4.1.0 to 5.0.0
{ | ||
"name": "@adobe/aio-lib-ims-oauth", | ||
"description": "OAuth2 (SUSI) token creation plugin for @adobe/aio-lib-ims", | ||
"version": "4.1.0", | ||
"version": "5.0.0", | ||
"author": "Adobe Inc.", | ||
"bugs": "https://github.com/adobe/aio-lib-ims-oauth/issues", | ||
"dependencies": { | ||
"@adobe/aio-lib-core-errors": "^3.0.1", | ||
"@adobe/aio-lib-core-logging": "^1.2.0", | ||
"@adobe/aio-lib-env": "^1.0.0", | ||
"@adobe/aio-lib-core-errors": "^3.1.0", | ||
"@adobe/aio-lib-core-logging": "^2.0.0", | ||
"@adobe/aio-lib-env": "^2.0.0", | ||
"@oclif/core": "^1.14.2", | ||
"cli-ux": "^5.3.3", | ||
@@ -15,13 +16,14 @@ "ora": "^4.0.3" | ||
"peerDependencies": { | ||
"@adobe/aio-lib-ims": "^4.0.0" | ||
"@adobe/aio-lib-ims": "^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"@adobe/eslint-config-aio-lib-config": "^1.4.0", | ||
"eslint": "^7.32.0", | ||
"eslint-config-standard": "^16.0.3", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-jest": "^23.20.0", | ||
"eslint-plugin-jsdoc": "^37.5.1", | ||
"@adobe/eslint-config-aio-lib-config": "^2", | ||
"eslint": "^8", | ||
"eslint-config-standard": "^17", | ||
"eslint-plugin-import": "^2.25.3", | ||
"eslint-plugin-jest": "^23", | ||
"eslint-plugin-jsdoc": "^37", | ||
"eslint-plugin-n": "^15", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^5.2.0", | ||
"eslint-plugin-promise": "^6", | ||
"eslint-plugin-standard": "^4.0.1", | ||
@@ -36,3 +38,3 @@ "globby": "^10.0.1", | ||
"engines": { | ||
"node": ">=12.0.0" | ||
"node": "^14.18 || ^16.13 || >=18" | ||
}, | ||
@@ -39,0 +41,0 @@ "files": [ |
@@ -76,3 +76,3 @@ /* | ||
.then(() => { | ||
const options = { bare: config[CLI_BARE_OUTPUT], env: config.env, timeout: config.timeout, open: config.open } | ||
const options = { bare: config[CLI_BARE_OUTPUT], env: config.env, timeout: config.timeout, open: config.open, browser: config.browser } | ||
return login(options) | ||
@@ -79,0 +79,0 @@ }) |
@@ -15,3 +15,3 @@ /* | ||
const ora = require('ora') | ||
const { cli } = require('cli-ux') | ||
const { CliUx: cli } = require('@oclif/core') | ||
const { randomId, authSiteUrl, getImsCliOAuthUrl, createServer, handleOPTIONS, handleGET, handlePOST, handleUnsupportedHttpMethod } = require('./helpers') | ||
@@ -38,3 +38,3 @@ const { codes: errors } = require('./errors') | ||
// eslint-disable-next-line camelcase | ||
const { bare = false, env, timeout = AUTH_TIMEOUT_SECONDS, client_id, scope, open = true } = options | ||
const { bare = false, env, timeout = AUTH_TIMEOUT_SECONDS, client_id, scope, open = true, browser: app } = options | ||
const redirect_uri = `${getImsCliOAuthUrl(env)}${LOGIN_SUCCESS}` // eslint-disable-line camelcase | ||
@@ -44,2 +44,3 @@ const id = randomId() | ||
const serverPort = server.address().port | ||
// eslint-disable-next-line camelcase | ||
const uri = authSiteUrl({ id, port: serverPort, client_id, scope, redirect_uri }, env) | ||
@@ -58,3 +59,5 @@ | ||
if (open) { | ||
cli.open(uri) | ||
cli.open(uri, { | ||
app | ||
}) | ||
} | ||
@@ -61,0 +64,0 @@ |
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
36678
523
7
15
+ Added@oclif/core@^1.14.2
+ Added@adobe/aio-lib-core-config@3.1.0(transitive)
+ Added@adobe/aio-lib-core-logging@2.0.1(transitive)
+ Added@adobe/aio-lib-core-networking@2.0.0(transitive)
+ Added@adobe/aio-lib-env@2.0.0(transitive)
+ Added@adobe/aio-lib-ims@5.1.0(transitive)
+ Added@adobe/aio-lib-ims-jwt@3.0.0(transitive)
+ Added@adobe/aio-lib-ims-oauth@4.1.0(transitive)
+ Added@azure/core-rest-pipeline@1.18.0(transitive)
+ Added@oclif/core@1.26.2(transitive)
+ Added@oclif/screen@3.0.8(transitive)
+ Added@tootallnate/once@1.1.2(transitive)
+ Addedagent-base@4.3.06.0.2(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.112.0.1(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addeddebug@3.2.7(transitive)
+ Addedejs@3.1.10(transitive)
+ Addedes6-promisify@5.0.0(transitive)
+ Addedfilelist@1.0.4(transitive)
+ Addedform-data@4.0.1(transitive)
+ Addedget-package-type@0.1.0(transitive)
+ Addedhttp-proxy-agent@4.0.1(transitive)
+ Addedhttps-proxy-agent@2.2.4(transitive)
+ Addedjake@10.9.2(transitive)
+ Addedminimatch@3.1.25.1.6(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
- Removed@azure/core-rest-pipeline@1.18.1(transitive)
Updated@adobe/aio-lib-env@^2.0.0