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.
angular-auth0
Advanced tools
This module provides a thin wrapper for auth0.js.
Note: angular-auth0 v1 is to be used with auth0.js v7.
See the sample project for further detail on how to use angular-auth0.
Bower
bower install angular-auth0
Ensure that both auth0.js
and angular-auth0.js
are loaded on the page.
<script src="bower_components/auth0.js/build/auth0.js"></script>
<script src="bower_components/angular-auth0/build/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 login">
<button ng-click="login.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
The npm package angular-auth0 receives a total of 333 weekly downloads. As such, angular-auth0 popularity was classified as not popular.
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.
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.