
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
白山node应用的sso插件。
$ npm i egg-bs-sso --save
// {app_root}/config/plugin.js
exports.bsSso = {
enable: true,
package: 'egg-bs-sso'
}
// {app_root}/config/config.default.js
exports.bsSso = {
// sso信息配置
constant: {
UC_ID: 0,
UC_SERVICE: '',
UC_SECRET: '',
UC_SALT: ''
},
// 登录成功后返回用户信息的处理
userFunction: async (ctx, user) => {
const { User, Platform } = ctx.model
const userResult = await User.findOne({ uid: user.uid })
if (!userResult) {
const platforms = await Platform.find().select('_id').exec()
const _user = new User({
platforms: platforms,
...user
})
return await _user.save()
} else {
return userResult
}
},
// token有效小时
tokenTime: 24,
// 忽略的url前缀
ignoreUrlPrefix: /\/api/
}
see config/config.default.js for more detail.
Please open an issue here.
FAQs
白山node应用的sso插件。
The npm package egg-bs-sso receives a total of 5 weekly downloads. As such, egg-bs-sso popularity was classified as not popular.
We found that egg-bs-sso 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.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.