Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
att-express-auth
Advanced tools
Readme
Super simple oauth middleware for AT&T's alpha auth
First you have to go register your application and get a client ID and client secret. Just drop those into the code below and then just add a link or button that points to /auth
somewhere on your page and you're good to go.
npm install att-express-auth
The code below should work once you've dropped in your client id and secret:
var express = require('express'),
attAuth = require('att-express-auth'),
app = express();
// config our middleware
app.use(express.cookieParser());
app.use(express.session({ secret: 'phone phone phone' }));
app.use(attAuth.middleware({
app: app,
clientId: 'YOUR CLIENT ID',
clientSecret: 'YOUR CLIENT SECRET',
scopes: ['profile', 'addessbook', 'locker', 'messages', 'geo'],
redirectUrl: 'http://localhost:3000/secured' // whatever URL you want users to be redirected to after auth
}));
app.get('/', function (req, res) {
res.send('<h1>AT&T Express App sample</h1><a href="/auth">login</a>');
});
app.get('/login', function (req, res) {
res.send('<h1>Please login</h1><a href="/auth">login</a>');
});
app.get('/login-failed', function (req, res) {
res.send('<h1>Login failed</h1>');
});
app.get('/secured', attAuth.secure(), function (req, res) {
res.send(req.session.user);
});
app.get('/other-secured', attAuth.secure(), function (req, res) {
res.send(req.session.user);
});
app.listen(3000);
console.log('Demo AT&T auth app running on port 3000');
FAQs
Drop-in auth middleware for alpha-auth AT&T.
The npm package att-express-auth receives a total of 4 weekly downloads. As such, att-express-auth popularity was classified as not popular.
We found that att-express-auth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.