
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
github-admin-login
Advanced tools
HTTP auth module to require admin page users to be in a Github org
npm install github-admin-login
const adminLogin = require('github-admin-login')
const http = require('http')
const login = adminLogin({
clientId: githubOauthClientId,
clientSecret: githubOauthClientSecret,
users: [
'mafintosh' // users that are allowd to login
]
})
http.createServer(function (req, res) {
login(req, res, function (err, username) {
if (err) throw err
console.log('valid login from', username)
})
}).listen(10000)
login = adminLogin(opts)Create a Github admin login http handler.
Options include:
{
clientId: githubOauthClientId,
clientSecret: githubOauthClientSecret,
users: optionalArrayOfValidUsers,
organization: optionalValidGithubOrg
}
You can get the clientId and clientSecret by making a new OAuth app on your
Github org or user profile. Make sure to set the callback url to the root of your website.
Only users in the users array of users who are in the org
specified will be allowed to login.
If a non valid user logs in the server will return a 403.
username = login.decode(req)Returns the Github username of the current user logged in.
MIT
FAQs
HTTP auth module to require admin page users to be in a Github org
We found that github-admin-login 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
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.