
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
ember-auth-engine
Advanced tools
A simple auth addon for your Ember app.
npm install --save ember-auth-engine
You need to do two things to be able to use ember-auth-engine in your app. First, you need to set a few configuration options in your application's config/environment.js
file:
ENV['ember-auth-engine'] = {
host: 'https://api.example.com',
authenticatedRoot: 'items'
};
At a bare minimum, you will need to set host
and authenticatedRoot
. However, most applications will likely need to specify a few other things. See here for all available configuration options.
The second required step is to mount the engine in your application's app/router.js
file::
import Em from 'ember';
import config from './config/environment';
import { mount as mountAuth } from 'ember-auth-engine';
var Router = Em.Router.extend({
location: config.locationType
});
Router.map(function() {
mountAuth(this, function() {
this.resource('someresourcerequiringauth');
this.resource('anotherresourcerequiringauth');
});
});
export default Router;
Once these two steps are done, your app will be rewarded with the following:
currentUser
object available on all routes, controllers, and componentsFAQs
A simple auth addon for your Ember app.
We found that ember-auth-engine 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.