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.
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
The npm package angular-auth0 receives a total of 693 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.
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.