Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
authonice-mithril
Advanced tools
This is the authonice frontend for mithril.
authonice is a platform/language/framework agnostic ecosystem for web-app authentication, with lots of inspiration from satellizer.
It's designed to work with lots of backend languages, auth services, & frontend frameworks. It's goal is to make you super-happy because your sites are safe, easy to setup & maintain, and stylishly locked-down in your language/frameworks of choice.
If we don't have a module for the frontend-framework/backend-language/auth-service you want to support, ask us or contribute!
You can install with bower, npm, download or just add script tags to your HTML.
var authonice = require('authonice-mithril');
define(['mithril','authonice-mithril'], function(m, authonice){
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/mithril/0.1.30/mithril.min.js"></script>
<script src="https://rawgit.com/authonice/front-mithril/master/dist/authonice-mithril.min.js"></script>
The API is très simple:
loggedIn()
- does the user have a token?login(email, password)
- trade credentials for a tokenlogout()
- forget tokenregister(email, password)
- save some login credentialsverify(token)
- prove that the user got an email (or read the console or whatever)user()
- get the current server-side userreq()
- a wrapper for m.request
that ensures authentication & defaults to GET
For an in-depth example see demo-node-mithril
FAQs
authonice frontend for mithril
We found that authonice-mithril 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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.