Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
express-api-user-management-signup
Advanced tools
adds user frontend with login-, registration-, and webhook- features to your (express) application. Startingpoint for DIY api management
DEPRECATED by expressa
Middleware for quickly building login systems on top of apis/express apps. This module adds a user facade-backend with login / registration on top of that. Good startingpoint for DIY api management, processable thru webhooks, themable using custom js/css/jade templates.
npm install -g coffeescript
npm install jade express@4.13.3
npm install express-api-user-management-signup
var app, cfg, express, http, port, usermanagement, webhookhost, webhookport;
express = require('express');
http = require('http');
require("coffee-script/register");
usermanagement = require('express-api-user-management-signup');
app = express();
port = process.env.PORT || 3010;
webhookport = process.env.WEBHOOK_HOST || port;
webhookhost = process.env.WEBHOOK_HOST || 'http://127.0.0.1';
cfg = {
webhook: {
url: 'http://' + webhookhost + ':' + webhookport,
requestdata: {
headers: {
'x-some-token': 'l1kj2k323'
}
}
},
mongo: {
host: 'localhost',
port: 27017,
name: 'foo'
},
layout: {
theme: __dirname + '/app/public.account', // define your own
// theme: __dirname + '/app/public.basic', // templates
title: {
brand: 'Projectname',
welcome: 'Please login to your account'
},
menu: {
'Apidoc': {
target: '_blank',
url: '/api/v1/doc'
},
'---': '---',
'Contact': {
target: '_blank',
url: 'mailto:support@foo.com'
}
},
formurl: '/js/form.json'
}
};
app.set('port', port);
app.use(usermanagement(app, express, cfg));
http.createServer(app).listen(app.get('port'), function() {
console.log('Express server listening on port ' + app.get('port'));
});
Define your own templates for easy integration with your js/css/html framework:
cp -R node_modules/express-api-user-management-signup/app/public.basic mytheme
and in the config define
...
layout: {
theme: __dirname + '/mytheme'
...
By using jsonform, we can easily extend the form without having to fiddle with database code. Just have a look at :
HINT: you can change the 'formurl'-parameter of 'app.[js,coffee]' (or the json above) into a remote url in order to remotely manage the form
The following webhooks are fired whenever these things occur:
Where configuredhost is defined by you in the config ('http://mygateway.com/foo' e.g.) These webhooks can be reacted upon by other middle/software in order to send emails or update api proxy settings e.g.
FAQs
adds user frontend with login-, registration-, and webhook- features to your (express) application. Startingpoint for DIY api management
The npm package express-api-user-management-signup receives a total of 9 weekly downloads. As such, express-api-user-management-signup popularity was classified as not popular.
We found that express-api-user-management-signup 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.