
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
cubeforall
Advanced tools
npm install cubeforall
import { init, auth, client, subscription } from 'cubeforall';
init('<your-service-id>', '<your-client-id-on-azure-b2c>', '<environment>', '<silent>');
// environment value:
// 'sandbox'
// 'prod'
// if environment value is not specified then default is 'prod'
// silent value:
// true
// false
// if silent value is not specified then default is false
auth.handleLoginRedirect((authenticatedAccount) => {
// your code here
// console.log(authenticatedAccount);
// console.log(platform.auth.getActiveAccount());
});
const login = () => {
auth.signIn().catch((error) => {
console.error(error);
});
};
const checkSubscription = () => {
subscription.checkSubscription().then((response) => {
// your code here
// console.log(response);
});
};
const logout = () => {
auth.signOut().then((response) => {
// your code here
// setIsSignedIn(false);
// window.location.reload();
});
};
<button id="loginButton" onClick="{login}">Login with CCN</button>
<button id="logoutButton" onClick="{logout}">Logout</button>
platform.client
.sendRequestAsync(
'<target-service-id>',
'<contract-name>',
'<contract-version>',
'<contract-method>',
new {}() /*request payload*/
)
.then((response) => {
// process response
})
.catch((err) => {
// handle error
});
<script src="https://unpkg.com/cubeforall@<will-be-version-here>/dist/platform.min.js"></script>
platform.init('<your-service-id>', '<your-client-id-on-azure-b2c>', '<environment>');
// environment value:
// 'sandbox'
// 'prod'
// if environment value is not specified then default is 'prod'
// silent value:
// true
// false
// if silent value is not specified then default is false
platform.auth.handleLoginRedirect((authenticatedAccount) => {
// your code here
// console.log(authenticatedAccount);
// console.log(platform.auth.getActiveAccount());
});
<button id="loginButton">Login with CCN</button>
<button id="logoutButton">Logout</button>
loginButton.addEventListener('click', () => {
platform.auth.signIn().catch((error) => {
console.error(error);
});
});
platform.subscription.checkSubscription().then((response) => {
// your code here
// console.log(response);
});
logoutButton.addEventListener('click', () => {
platform.auth.signOut().then((response) => {
window.location.reload();
});
});
platform.client
.sendRequestAsync(
'<target-service-id>',
'<contract-name>',
'<contract-version>',
'<contract-method>',
new {}() /*request payload*/
)
.then((response) => {
// process response
})
.catch((err) => {
// handle error
});
Thank You!
FAQs
Plaform library for CCN Single Sign On.
The npm package cubeforall receives a total of 356 weekly downloads. As such, cubeforall popularity was classified as not popular.
We found that cubeforall demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.