
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
aos-external
Advanced tools
yarn add aos-external
const express = require('express');
const app = express();
const AOS_External = require('aos-external');
const AOSClient = new AOS_External({
AXClientID: '',
AXClientSecret: '',
AXRedirectURI: 'http://localhost/api/callback',
// You must be given access to use specific scopes
AXScopes: ['user.id', 'user.discord', 'user.assistants_username'],
});
app.get('/login', (req,res)=>{
const AOSUrl = AOSClient.AccessToken();
console.log(AOSUrl);
res.redirect(AOSUrl);
})
app.get('/api/callback', async(req,res)=>{
const User = await AOSClient.AccessUserData(req.query?.access_token);
console.log(User);
res.send(User);
// Will return
//
// {
// "error":false,
// "data":{
// "user_assistants_username":"ASSISTANTS USERNAME",
// "user_id":"ASSISTANTS_ACCOUNT_UNIQUE_ID",
// "user_discord_id":"DISCORD_USER_ID OR NULL"
// }
// }
});
app.listen(80);
To get access to External Authorization Integration, please contact us via e-mail: support@assistants.ga asking for it and describing your needs.
user.id
- User unique Account ID (could not be changed in any way).
user.discord
- User Discord account ID connected (can be changed anytime).
user.assistants_username
- User AOS Account username (can be changed anytime).
FAQs
```js yarn add aos-external ```
We found that aos-external 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.