auth0-angular
Advanced tools
Comparing version 0.4.1 to 0.4.2
{ | ||
"name": "auth0-angular", | ||
"main": "build/auth0-angular.js", | ||
"dependencies": { | ||
"angular": "~1.2.16", | ||
"angular-cookies": "~1.2.16", | ||
"angular-route": "~1.2.16", | ||
"auth0.js": "~2.1.4", | ||
"auth0-widget.js": "~3.1.3" | ||
"auth0-widget.js": "~4.0.13" | ||
}, | ||
"devDependencies": { | ||
"angular-mocks": "~1.2.16", | ||
"auth0.js": "~2.0.9" | ||
"angular-route": "~1.2.16" | ||
} | ||
} |
# 0.4.x | ||
## 0.4.2 | ||
* Adding `main` attribute to `package.json` | ||
## 0.4.1 | ||
@@ -4,0 +8,0 @@ |
@@ -16,3 +16,3 @@ # Getting Started: Javascript SDK | ||
```js | ||
var myApp = angular.module('myApp', ['ngCookies', 'ngRoute', 'auth0']); | ||
var myApp = angular.module('myApp', ['ngRoute', 'auth0']); | ||
``` | ||
@@ -19,0 +19,0 @@ |
@@ -1,2 +0,2 @@ | ||
# Getting Started: Widget Redirect | ||
# Getting Started: Widget | ||
@@ -70,15 +70,2 @@ For this tutorial, you need to create a new account in [Auth0](https://www.auth0.com) and setup a new application. We will then implement client side and server side auth. | ||
Bind the controller to a partial: | ||
```html | ||
<div ng-controller="LoginCtrl"> | ||
<a href="" ng-click="logout()">logout</a> | ||
<form ng-submit="login()"> | ||
<input type="text" name="user" ng-model="user" /> | ||
<input type="password" name="pass" ng-model="pass" /> | ||
<button type="submit" >submit</button> | ||
</form> | ||
</div> | ||
``` | ||
6. Use the `auth.profile` object to show user attributes in the view. | ||
@@ -85,0 +72,0 @@ ```js |
@@ -5,3 +5,3 @@ var myApp = angular.module('myApp', [ | ||
myApp.run(function ($rootScope, $location, $route, AUTH_EVENTS, $timeout, parseHash) { | ||
myApp.run(function ($rootScope, $location, $route, AUTH_EVENTS, $timeout) { | ||
$rootScope.$on('$routeChangeError', function () { | ||
@@ -24,3 +24,2 @@ var otherwise = $route.routes && $route.routes.null && $route.routes.null.redirectTo; | ||
parseHash(); | ||
}); | ||
@@ -27,0 +26,0 @@ |
{ | ||
"name": "auth0-angular", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"main": "./build/auth0-angular.js", | ||
"devDependencies": { | ||
@@ -5,0 +6,0 @@ "bower": "^1.3.3", |
@@ -18,2 +18,3 @@ # Auth0 and AngularJS | ||
// auth should be injected in your controller | ||
auth.signin(options).then(onLoginSuccess, onLoginFailure); | ||
@@ -25,2 +26,3 @@ }; | ||
// auth should be injected in your controller | ||
auth.signin(options).then(onLoginSuccess, onLoginFailure); | ||
@@ -33,32 +35,44 @@ }; | ||
There are two ways of implementing signin/singup. One is using our [JavaScript SDK](https://github.com/auth0/auth0.js) which is just a wrapper to our API so you can build your UI on top or the other one is using [Login Widget](https://docs.auth0.com/login-widget2), which is a complete Login UI ready. You can check the following getting started guides: | ||
There are two ways of implementing signin/singup. | ||
* [Login Widget](https://docs.auth0.com/login-widget2): A complete Login UI ready to go, that can be customized, translated and expanded. You can check the following getting started guides: | ||
* [JavaScript SDK](https://github.com/auth0/auth0.js): You can write your own UI from scratch in order to provide a more tailored user experience. | ||
### With the Login Widget | ||
* [User/Password + Social Login with Auth0 Widget (popup mode)](docs/widget.md): Authenticate using the [Login Widget](https://docs.auth0.com/login-widget2) and get back a promise. Your angular app won't refresh because it uses `window.open` popup for social providers and an ajax call for user/password auth). | ||
The following guides will help you getting started: | ||
#### User/Password + Social Login with Auth0 Widget (popup mode) | ||
Authenticate using the [Login Widget](https://docs.auth0.com/login-widget2) and get back a promise. Your angular app won't refresh because it uses `window.open` popup for social providers and an ajax call for user/password auth). | ||
→ [Read the tutorial](docs/widget.md) | ||
![widget_popup](https://cloud.githubusercontent.com/assets/419703/2959883/1b7e1d9a-dab7-11e3-8060-bb14b3430e03.gif) | ||
#### User/Password + Social Login with Auth0 Widget (redirect mode) | ||
→ [Read the tutorial](docs/widget.md) | ||
* [User/Password + Social Login with Auth0 Widget (redirect mode)](docs/widget-redirect.md): Authenticate using the [Login Widget](https://docs.auth0.com/login-widget2) and listen to an event. Your angular app will be refreshed when it comes back from Auth0 as opposed to the __popup mode__. | ||
Authenticate using the [Login Widget](https://docs.auth0.com/login-widget2) and listen to an event. Your angular app will be refreshed when it comes back from Auth0 as opposed to the __popup mode__. | ||
→ [Read the tutorial](docs/widget-redirect.md) | ||
![widget_guide](https://cloud.githubusercontent.com/assets/419703/2867712/3580ca60-d23a-11e3-8312-636a309d7af0.gif) | ||
→ [Read the tutorial](docs/widget-redirect.md) | ||
### With your UI | ||
### With your own UI | ||
* [User/Password Login](docs/jssdk.md): Authenticate user/passwords and get back a promise. | ||
#### User/Password Login | ||
Authenticate user/passwords and get back a promise. | ||
→ [Read the tutorial](docs/jssdk.md) | ||
![basic_guide](https://cloud.githubusercontent.com/assets/419703/2867713/35ac5914-d23a-11e3-91f9-b6365a10137f.gif) | ||
→ [Read the tutorial](docs/jssdk.md) | ||
* [Social Login with Popup](docs/jssdk.md#social-authentication-with-popup): Authenticate using social providers and get back a promise. | ||
![popup_guide](https://cloud.githubusercontent.com/assets/419703/2883025/e09a9158-d495-11e3-814b-32ae41ce1cc6.gif) | ||
#### Social Login with Popup | ||
Authenticate using social providers and get back a promise. | ||
→ [Read the tutorial](docs/jssdk.md#social-authentication-with-popup) | ||
![popup_guide](https://cloud.githubusercontent.com/assets/419703/2883025/e09a9158-d495-11e3-814b-32ae41ce1cc6.gif) | ||
Also, we have an [examples](examples) section that contains comprehensive scenarios. | ||
@@ -65,0 +79,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
106
352106
5813