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.
@forge/auth
Advanced tools
Supports authorization for product REST API calls
This package provides methods for app developers to authorize users and entities (issues, pages, etc.) before making asApp product REST API calls.
A small adapter around AP.request to get this library working in Connect apps:
const authorize = authorizeConfluenceWithFetch((url, { body }) => {
const res = new Promise((resolve) => {
addon.httpClient(req).post(
{
headers: {
'X-Atlassian-Token': 'no-check',
'Content-Type': 'application/json',
},
url,
body,
},
(err, response, body) => {
if (err || response.statusCode >= 400) {
// read response and reject
} else {
resolve(JSON.parse(body));
}
},
);
});
return res;
});
authorize('5c35519ce6047225b6d54c23')
.onConfluenceContent(309755905)
.canUpdate()
.then((checkResult /* true / false */) => {
// handle
}
The consumer would need to handle errors bubbled up from the fetch helper and the @forge/auth library.
FAQs
Supports authorization for product REST API calls
The npm package @forge/auth receives a total of 8,731 weekly downloads. As such, @forge/auth popularity was classified as popular.
We found that @forge/auth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.