Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Handles the OAuth2.0 flow for BYU APIs
var OAuth = require("byu-oauth");
OAuth.getAccessToken(OAuth.grant_type.AUTHORIZATION_CODE, {
client_id: /*client id*/,
client_secret: /*client secret*/,
code: /*authorization code*/,
redirect_uri: /*redirect uri--where WSO2 redirected user after user validated your app*/
}).then(function (token) {
// use token here
console.log(token);
}).catch(function (err) {
// handle error here
console.error(err);
});
OAuth.getAccessToken(OAuth.grant_type.CLIENT_CREDENTIALS, {
client_id: /*client id*/,
client_secret: /*client secret*/
}).then(function (token) {
// use token here
console.log(token);
}).catch(function (err) {
// handle error here
console.error(err);
});
OAuth.getAccessToken(OAuth.grant_type.REFRESH_TOKEN, {
client_id: /*client id*/,
client_secret: /*client secret*/
refresh_token: /*refresh token*/
}).then(function (token) {
// use token here
console.log(token);
}).catch(function (err) {
// handle error here
console.error(err);
});
OAuth.getAccessToken(OAuth.grant_type.RESOURCE_OWNER, {
client_id: /*client id*/,
client_secret: /*client secret*/,
password: /*password for NetID*/,
username: /*NetID*/
}).then(function (token) {
// use token here
console.log(token);
}).catch(function (err) {
// handle error here
console.error(err);
});
OAuth.generateAuthorizationURL(OAuth.grant_type.AUTHORIZATION_CODE, /*client id*/, /*redirect uri*/)
.then(function (authorization_url) {
// use authorization URL here
console.log(authorization_url);
}).catch(function (err) {
// handle error here
console.error(err);
});
OAuth.generateAuthorizationURL(OAuth.grant_type.IMPLICIT, /*client id*/, /*redirect uri*/)
.then(function (authorization_url) {
// use authorization URL here
console.log(authorization_url);
}).catch(function (err) {
// handle error here
console.error(err);
});
FAQs
Handles the OAuth2.0 flow for BYU APIs
The npm package byu-oauth receives a total of 1 weekly downloads. As such, byu-oauth popularity was classified as not popular.
We found that byu-oauth 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.