Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
@slashtagsdev/slashauth
Advanced tools
npm install @slashtags/slashauth
const { AuthServer } = require('@slashtags/slashauth')
// create keyPair
const keyPair = crypto.createKeyPair()
const authz = ({ publicKey, token }) => {
// NOTE: by the moment this method will be called signature will alreayd be verified
return {
status: 'ok',
token: 'Bearer 123'
}
}
const magiclink = ({ publicKey }) => {
// NOTE: by the moment this method will be called signature will alreayd be verified
return {
status: 'ok',
ml: 'http://localhost:8000/v0.1/users/123'
}
}
const server = new SlashAuthServer({
authz,
magiclink,
keypair
// port - to run server on (default 8000)
// host - to run server on (default localhost)
// route - route for auth (default auth)
// version - version of auth (default v0.1)
})
await server.start()
const slashauthURL = server.fromatURL(token)
See https://github.com/slashtags/slashauth-client
const { AuthClient, crypto } = require('@slashtags/slashauth-client')
// create keyPair
const keyPair = crypto.createKeyPair()
// use authServer's publicKey for pinning
const client = new AuthClient({ keyPair, remotePublicKey })
const response = await client.authz(slashauthURL)
// { status: 'ok', token: 'Bearer 123' }
const link = await client.magiclik(slashauthURL)
// { status: 'ok', ml: 'https://www.example.com?q=foobar' }
FAQs
slashtags authentication
The npm package @slashtagsdev/slashauth receives a total of 4 weekly downloads. As such, @slashtagsdev/slashauth popularity was classified as not popular.
We found that @slashtagsdev/slashauth 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
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.