
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
easy-access
Advanced tools
Ridiculously easy OAuth2 authentication for scripts/installed apps and from the command-line for multiple providers
Ridiculously easy OAuth2 authentication for command-line scripts and installed apps supporting multiple providers
npm install -g easy-access
This usually involves signing up for api access. You will be given a client ID and secret. Make sure to set your Callback url (sometimes called Redirect url) to http://localhost:3003/. You might need to drop the port depending on the provider.
easy_access google
You will be prompted for client id and secret and a browser window will open so you can authorize the access. Once you have authorized, the browser window should close and your access token will be printed to STDOUT and a .easy-access-google.json file will be created.
You must do this manually from the command line the first time from the command line. Once completed, your credentials will be cached in a local file named .easy-access-<provider_name>.json.
TOKEN=$(easy_access google)
curl -H "Authorization: Bearer $TOKEN" 'https://www.googleapis.com/calendar/v3/users/me/calendarList?minAccessRole=owner'
This will either use your access token or refresh token depending on expiration and the provider, but you should not need to do anything manually and you can safely put this in a script or cron entry.
var EasyAccess = require('easy-access');
var easy_access = new EasyAccess('google');
easy_access.get_access_token(function(token_data) {
if (token_data && token_data.access_token) console.log(token_data.access_token);
});
{
"somedomain": {
"host": "somedomain.com",
"authorize_endpoint": "/oauth/authorize",
"token_endpoint": "/oauth/access_token",
"scope": "read write etc"
}
}
easy_access somedomain as with any pre-registered provider.FAQs
Ridiculously easy OAuth2 authentication for scripts/installed apps and from the command-line for multiple providers
We found that easy-access demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.