Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@axway/amplify-cli-utils
Advanced tools
A common utils library for AMPLIFY CLI and related packages.
npm i -g @axway/amplify-cli-utils
A simple helper that loads the config file and attempts to find the account tokens by auth params or by id.
import { auth } from '@axway/amplify-cli-utils';
(async () => {
const params = {
baseUrl: '',
clientId: '',
clientSecret: '',
env: '',
password: '',
realm: '',
secretFile: '',
username: ''
};
const { account, client, config } = await auth.getAccount(params);
if (account && !account.expired) {
console.log('Found a valid access token!');
console.log(account);
return;
}
console.error('No valid authentication token found. Please login in again by running:');
console.error(' amplify auth login');
process.exit(1);
}());
import { auth } from '@axway/amplify-cli-utils';
(async () => {
const id = 'ID GOES HERE';
const { account, client, config } = await auth.getAccount(id);
if (account && !account.expired) {
console.log('Found a valid access token!');
console.log(account);
return;
}
console.error('No valid authentication token found. Please login in again by running:');
console.error(' amplify auth login');
process.exit(1);
}());
import { auth } from '@axway/amplify-cli-utils';
(async () => {
const accounts = await auth.list();
console.log(accounts);
}());
This project is open source under the Apache Public License v2 and is developed by
Axway, Inc and the community. Please read the LICENSE
file included
in this distribution for more information.
FAQs
Common utils for Axway CLI packages
We found that @axway/amplify-cli-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.