Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
angular-auth0
Advanced tools
This module provides a thin wrapper for auth0.js.
# installation with npm
npm install --save angular-auth0
# installation with yarn
yarn add angular-auth0
# installation with bower
bower install --save angular-auth0
Ensure that both auth0.js
and angular-auth0.js
are loaded on the page.
<!-- installed with npm or yarn -->
<script src="node_modules/auth0-js/build/auth0.js"></script>
<script src="node_modules/angular-auth0/dist/angular-auth0.js"></script>
<!-- installed with bower -->
<script src="bower_components/auth0.js/build/auth0.js"></script>
<script src="bower_components/angular-auth0/dist/angular-auth0.js"></script>
Bring in the auth0.auth0
module.
var app = angular.module('myApp', ['auth0.auth0']);
Configure Auth0.js by using angularAuth0Provider
. If you haven't done so yet, sign up for Auth0, create a client app, and get your clientID and domain. To learn more about Auth0.js' API and the options it takes, see the API documentation.
app.config(function(angularAuth0Provider) {
angularAuth0Provider.init({
clientID: AUTH0_CLIENT_ID,
domain: AUTH0_DOMAIN
});
});
Use auth0.js
from a controller or service.
app.controller('loginController', function(angularAuth0) {
var vm = this;
vm.angularAuth0 = angularAuth0;
});
<div ng-controller="loginController as vm">
<button ng-click="vm.login(options)">Log In</button>
</div>
Auth0 helps you to:
If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.
This project is licensed under the MIT license. See the LICENSE file for more info.
FAQs
Auth0.js v9 wrapper for Angular.js
We found that angular-auth0 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 44 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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.