0.12.0
版本发布时间: 2015-08-17 07:36:15
sahat/satellizer最新发布版本:0.15.5(2016-08-30 17:25:12)
:boom: Breaking Changes
- Both
$auth.login()
and$auth.signup()
no longer acceptredirect
parameter andloginOnSignup
config property is gone as well. afa5fca33fa3be5cf7b50cebf594938486413406 - Removed
loginRoute
,signupRoute
,loginRedirect
,logoutRedirect
,signupRedirect
config options, you should handle that logic at the application level (1e565f0420b291e3a55954285210069a8cd27390, f8552ef75fb67dcdf2305908322b237c03a263a8), for example:
$auth.login($scope.user)
.then(function() {
$location.path('/'); // redirect to home page
})
.catch(function(response) {
toastr.error('Login Error');
});
-
$auth.unlink(provider, options)
now uses POST method by default, also removedunlinkMethod
config property because you can customize that yourself by overriding HTTP config object using the secondoptions
parameter. - Config options
platform: "mobile"
andplatform: "browser"
are now referred ascordova: true
andcordova: false
to avoid confusion with mobile web and hybrid apps like Ionic Framework that use Apache Cordova InAppBrowser.
:star2: New Features
- - Both
$auth.login()
and$auth.signup()
now acceptuser
andoptions
parameters, whereoptions
is a HTTP config object (see https://docs.angularjs.org/api/ng/service/$http), giving you full control of the HTTP request. afa5fca33fa3be5cf7b50cebf594938486413406 - The change above allows for setting custom Content-Type, cache, timeout, withCredentials, Headers, paramSerializer, etc. for login/signup requests.
-
tokenRoot
can now be nested inside objects, that means you can send JWT token from your server nested in some other objects -{ foo: { bar: { token: "" } } }
. ddf9abaf71f9ee871fba9550b241d5eb710fa6f4 - Customizable response parameters
code
,clientId
, andredirectUri
, allowing you to override its naming convention and them ascode
,client_id
,redirect_uri
or something else depending on your use case and back-end requirements. https://github.com/sahat/satellizer/pull/346
:beetle: Bug Fixes
- Fixed Safari Private Window localStorage error QUOTA_EXCEEDED_ERR: DOM Exception 22 issue when LocalStorage is disabled or unavailable in Safari. https://github.com/sahat/satellizer/issues/457
- Fixed Signup/Login issue with Google Chrome on iOS. https://github.com/sahat/satellizer/issues/467
:round_pushpin: Other
- Increased popup polling time to 50ms. d08f2406153e944bdd1e6d091a8c643e91e18fd4
- Added comment to try/catch, explaining why catch statement is empty. 2b2bd91f33d0c3c525b80db24223ac3734f2d07c
- Promise is no longer rejected when closing a popup, if popup is blocked or user cancels authorization. 91fd524a4e3781381b56a2e124f898cee3ead423 cda52aad80ca1a64e0e6f8aeb147574861ffc539
- Removed
ng-pattern
from email field on the signup page. 5042ca698e31377a1663f0aa83b19579e54294cd - Node.js: Handle Google auth error error, when profile info not available. aaddeef5b27b636629721c26dc690b7abea03423
- Updated service naming convention to SatellizerServiceName. 664b9adcfe503c9cb1c91e5f7dd0e7f193a56465
- Removed AngularStrap and added angular-toastr notifications module. e6ea52bf263802176331ccd140d994ddca4a5fe3
- Signup and Login templates cleanup. aae97fdcb408aec7b058dd9d51eac31a90efd44a
- Added 2 resolve functions
loginRequired
andskipIfLoggedIn
to the client demo, that way a user won't see signup and login pages if that user is already signed-in. https://github.com/sahat/satellizer/issues/478