ember_simple_auth-rails 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfe2808004d5666ba68ebd9d4633afe78581d359
|
4
|
+
data.tar.gz: dd554bd70fbf7be5edda64d7058792b1a732a063
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39ad83ffe1e8291c137d2269dbe8136e2a446748a42d3f5a72bd589c45e200937ed67a00d78deb78542011aefb6d29643ae8695f637226c5775d5d746c3c51c8
|
7
|
+
data.tar.gz: 73fdb259e29c3e0066522affda571a2d35a56f539ac9b4b1b6884aafd6523e0350707476c33f37da3e4c248e1c9b2bb03a31e5c8486f6e3ddafce35ed02acf21
|
@@ -138,7 +138,7 @@ define("ember-simple-auth/authenticators/base",
|
|
138
138
|
Ember.Application.initializer({
|
139
139
|
name: 'authentication',
|
140
140
|
initialize: function(container, application) {
|
141
|
-
container.register('
|
141
|
+
container.register('authenticators:custom', CustomAuthenticator);
|
142
142
|
Ember.SimpleAuth.setup(container, application);
|
143
143
|
}
|
144
144
|
});
|
@@ -152,7 +152,7 @@ define("ember-simple-auth/authenticators/base",
|
|
152
152
|
var Base = Ember.Object.extend(Ember.Evented, {
|
153
153
|
/**
|
154
154
|
Restores the session from a set of properties. __This method is invoked by
|
155
|
-
the session either after the
|
155
|
+
the session either after the application starts up and session data was
|
156
156
|
restored from the store__ or when properties in the store have changed due
|
157
157
|
to external events (e.g. in another tab).
|
158
158
|
|
@@ -458,7 +458,7 @@ define("ember-simple-auth/authorizers/base",
|
|
458
458
|
The base for all authorizers. __This serves as a starting point for
|
459
459
|
implementing custom authorizers and must not be used directly.__
|
460
460
|
|
461
|
-
__The authorizer preprocesses all XHR requests__ (
|
461
|
+
__The authorizer preprocesses all XHR requests__ (except ones to 3rd party
|
462
462
|
origins, see [Ember.SimpleAuth.setup](#Ember-SimpleAuth-setup)) and makes
|
463
463
|
sure they have the required data attached that allows the server to identify
|
464
464
|
the user making the request. This data might be a specific header, data in
|
@@ -757,7 +757,7 @@ define("ember-simple-auth/mixins/application_route_mixin",
|
|
757
757
|
App.ApplicationRoute = Ember.Route.extend(Ember.SimpleAuth.ApplicationRouteMixin, {
|
758
758
|
actions: {
|
759
759
|
authenticateSession: function() {
|
760
|
-
this.get('session').authenticate('
|
760
|
+
this.get('session').authenticate('authenticators:custom', {});
|
761
761
|
}
|
762
762
|
}
|
763
763
|
});
|
@@ -957,7 +957,7 @@ define("ember-simple-auth/mixins/authentication_controller_mixin",
|
|
957
957
|
This action will authenticate the session with the configured
|
958
958
|
[Ember.SimpleAuth.AuthenticationControllerMixin#authenticatorFactory](#Ember-SimpleAuth-AuthenticationControllerMixin-authenticatorFactory)
|
959
959
|
(see
|
960
|
-
Ember.SimpleAuth.Session#authenticate](#Ember-SimpleAuth-Session-authenticate)).
|
960
|
+
[Ember.SimpleAuth.Session#authenticate](#Ember-SimpleAuth-Session-authenticate)).
|
961
961
|
|
962
962
|
If authentication succeeds, this method triggers the
|
963
963
|
`sessionAuthenticationSucceeded` action (see
|
@@ -1040,10 +1040,8 @@ define("ember-simple-auth/mixins/login_controller_mixin",
|
|
1040
1040
|
*/
|
1041
1041
|
authenticate: function() {
|
1042
1042
|
var data = this.getProperties('identification', 'password');
|
1043
|
-
|
1044
|
-
|
1045
|
-
this._super(data);
|
1046
|
-
}
|
1043
|
+
this.set('password', null);
|
1044
|
+
this._super(data);
|
1047
1045
|
}
|
1048
1046
|
}
|
1049
1047
|
});
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ember_simple_auth-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- frederik dudzik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|