auth0/angular-auth0

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

Homepage:

Size: 54

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Angular 1.x Wrapper for Auth0.js

CDNJS version

This module provides a thin wrapper for auth0.js.

This is angular-auth0 v3 which is to be used with auth0.js v9 and higher.
Installation
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>
Usage

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>
What is Auth0?

Auth0 helps you to:

Create a free account in Auth0
  1. Go to Auth0 and click Sign Up.
  2. Use Google, GitHub or Microsoft Account to login.
Issue Reporting

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.

Author

Auth0

License

This project is licensed under the MIT license. See the LICENSE file for more info.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.