Name: angular-auth0
Owner: Auth0
Description: Angular 1.x Wrapper for Auth0.js v9 and higher
Created: 2016-08-12 16:34:28.0
Updated: 2018-05-17 18:28:24.0
Pushed: 2018-03-30 22:49:47.0
Size: 54
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This module provides a thin wrapper for auth0.js.
stallation with npm
install --save angular-auth0
stallation with yarn
add angular-auth0
stallation with bower
r install --save angular-auth0
Ensure that both auth0.js
and angular-auth0.js
are loaded on the page.
installed with npm or yarn -->
ipt src="node_modules/auth0-js/build/auth0.js"></script>
ipt src="node_modules/angular-auth0/dist/angular-auth0.js"></script>
tml
installed with bower -->
ipt src="bower_components/auth0.js/build/auth0.js"></script>
ipt src="bower_components/angular-auth0/dist/angular-auth0.js"></script>
Bring in the auth0.auth0
module.
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.
config(function(angularAuth0Provider) {
gularAuth0Provider.init({
clientID: AUTH0_CLIENT_ID,
domain: AUTH0_DOMAIN
;
Use auth0.js
from a controller or service.
controller('loginController', function(angularAuth0) {
r vm = this;
.angularAuth0 = angularAuth0;
tml
ng-controller="loginController as vm">
utton ng-click="vm.login(options)">Log In</button>
v>
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.