Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
authmaker-ember-simple-auth
Advanced tools
Ember Simple Auth authenticator and authorizer for Authmaker
This addon allows you to get started very quickly with Authmaker and ember-simple-auth. This Readme has some basic information about how to use the addon but if you want a more in-depth description on how to use it you can check the Authmaker Guides
ember install authmaker-ember-simple-auth
this will setup a few defaults in your application and add a basic configuration to your environment config that you will need to update with the real config from the Authmaker Dashboard. Read the official documentation for more information.
When you install this addon it will automatically generate a login route for you, along with a few other useful files. If you are starting an Ember app from scratch this should all be ok, but if you are adding Authmaker to an existing Ember app you might need to have a look at the diffs and see how to integrate your code into the provided files.
This addon ultimately uses ember-simple-auth to provide the login functionality and you can follow their documentation to find out more.
Here is an example of a controller that is providing a login action that makes
use of Ember Simple Auth's session.authenticate()
functionality:
import Controller from '@ember/controller';
import { inject as service } from '@ember/service'
export default Controller.extend({
session: service(),
actions: {
login() {
this.get('session').authenticate('authenticator:authmaker');
},
logout() {
this.get('session').invalidate();
}
}
});
with this in place you can make use of these actions in the template as follows:
{{#if session.isAuthenticated}}
<button {{action 'logout'}}>logout</button>
{{else}}
<button {{action 'login'}}>login</button>
{{/if}}
See the Contributing guide for details.
This project is licensed under the MIT License.
FAQs
Ember Simple Auth authenticator and authorizer for Authmaker
The npm package authmaker-ember-simple-auth receives a total of 8 weekly downloads. As such, authmaker-ember-simple-auth popularity was classified as not popular.
We found that authmaker-ember-simple-auth demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.