devise_google_authenticator 0.3.10 → 0.3.11
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 +8 -8
- data/README.rdoc +17 -16
- data/lib/devise_google_authenticatable/patches/check_ga.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NTAyYjJhN2FmYzFjZjA2MDViZWZiZGNlYTgxNjUxYTMyZTljNGUyNQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZDY3ZjZkOTZlMjE3ODA1ZjU2MDk5YmVmMzA4MDgwNDQyNGEyZGJmNg==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NThkZDVlNWJhZDY4NzM1OGVmMzJiMjYwNjc0MWZmODJkYWZjZWJkNTE2YzQy
|
|
10
|
+
OTI1YmFmZWNkMGRmOTNjMzIwOWU3Y2U3NzBhZGViZWQwNzgwMGExMWNkOGE4
|
|
11
|
+
NmEyNzQ1MTViMmRhYTBhMGRiMDJmODUxOWFiNmUwMDQ0NzgxZGM=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NTlmMGIyYTc1ODFkZjUzYWU1MDNjZGZhYjkwOWI2NDY5MTMwZjZiMGM0NWNj
|
|
14
|
+
M2ZjMTYxOTA3ZDIzMjk4ZDBmZTdhNjU1NGYwMGFlOTIzMTE1YmZlZWU2NWM0
|
|
15
|
+
MmM3NTE4MWU3ZWJkOTI2ZjEwNGU4OWMzNTQ3ZmVmM2U2NzQyMGU=
|
data/README.rdoc
CHANGED
|
@@ -2,27 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
This is a devise[https://github.com/plataformatec/devise] extension to allow your app to utilise Google Authenticator[http://code.google.com/p/google-authenticator/] for Time-based One Time Passwords (TOTP).
|
|
4
4
|
|
|
5
|
-
== Changes
|
|
6
|
-
* Version 0.1 - initial release, just to push it up, is still very early and requires a bit work
|
|
7
|
-
* Version 0.2 - tidied up some of the code - changed the references to AsteriskLabs
|
|
8
|
-
* Version 0.3 - first working version! With working generators, tests, and doesnt require changes to Devise's Sign In view
|
|
9
|
-
* Version 0.3.1 - Slight updated in the dependencies.
|
|
10
|
-
* Version 0.3.2 - Updated to include support for Devise 2.0.0 and above (no longer supports 1.5.3 or lower), you'll need version 0.3.1 to use older Devise
|
|
11
|
-
* Version 0.3.3 - Updated some of the redirect methods to proper align with Devise 2.1.0. Also tidied up some of the test routines to proper replicate Devise 2.1.0
|
|
12
|
-
* Version 0.3.4 - Updated test cases to function properly, and tested working with Devise 2.2 (up to at least Devise 2.2.4)
|
|
13
|
-
* Version 0.3.5 - Updated README for Rails apps with existing users. (Thanks Jon Collier)
|
|
14
|
-
* Version 0.3.6 - Slight updates - increased key size, more open gemspec, updated en.yml. (Thanks Michael Guymon)
|
|
15
|
-
* Version 0.3.7 - Support for current Devise (3.2.0) and Rails4 (Thanks https://github.com/ronald05arias) - integration test still broke - need to address this
|
|
16
|
-
* Version 0.3.8 - Support for remembering the token authentication. (i.e. don't request the token for a configurable amount of time Thanks https://github.com/blahblahblah-) - and seriously, I'm going to try and refactor all the integration tests with Rspec.
|
|
17
|
-
* Version 0.3.9 - Merging fix from zhenyuchen (deprecated ActiveRecord query grammar) - also, re-tested against Rails 4.0.4 and Devise 3.2.3
|
|
18
|
-
* Version 0.3.10 - Added support for Mongoid ORM in addition to ActiveRecord. (Still no appropriate testing for, but I've run this on vanilla Rails 4.0.4 and Devise 3.2.3 apps)
|
|
19
|
-
|
|
20
5
|
== Installation
|
|
21
6
|
|
|
22
7
|
Add the gem to your Gemfile (don't forget devise too):
|
|
23
8
|
|
|
24
9
|
* gem 'devise'
|
|
25
|
-
* gem 'devise_google_authenticator', '0.3.
|
|
10
|
+
* gem 'devise_google_authenticator', '0.3.11'
|
|
26
11
|
|
|
27
12
|
Don't forget to "bundle install"
|
|
28
13
|
|
|
@@ -93,6 +78,22 @@ With this extension enabled, the following is expected behaviour:
|
|
|
93
78
|
|
|
94
79
|
The install generator also installs an english copy of a Devise Google Authenticator i18n file. This can be modified (or used to create other language versions) and is located at: config/locales/devise.google_authenticator.en.yml
|
|
95
80
|
|
|
81
|
+
== Changes
|
|
82
|
+
* Version 0.3.11 - Fixed a bug where if the Devise module was included within something else, such as Active Admin, rewriting back to the CheckGA functionality was broken. This update addresses https://github.com/AsteriskLabs/devise_google_authenticator/issues/7
|
|
83
|
+
* Version 0.3.10 - Added support for Mongoid ORM in addition to ActiveRecord. (Still no appropriate testing for, but I've run this on vanilla Rails 4.0.4 and Devise 3.2.3 apps)
|
|
84
|
+
* Version 0.3.9 - Merging fix from zhenyuchen (deprecated ActiveRecord query grammar) - also, re-tested against Rails 4.0.4 and Devise 3.2.3
|
|
85
|
+
* Version 0.3.8 - Support for remembering the token authentication. (i.e. don't request the token for a configurable amount of time Thanks https://github.com/blahblahblah-) - and seriously, I'm going to try and refactor all the integration tests with Rspec.
|
|
86
|
+
* Version 0.3.7 - Support for current Devise (3.2.0) and Rails4 (Thanks https://github.com/ronald05arias) - integration test still broke - need to address this
|
|
87
|
+
* Version 0.3.6 - Slight updates - increased key size, more open gemspec, updated en.yml. (Thanks Michael Guymon)
|
|
88
|
+
* Version 0.3.5 - Updated README for Rails apps with existing users. (Thanks Jon Collier)
|
|
89
|
+
* Version 0.3.4 - Updated test cases to function properly, and tested working with Devise 2.2 (up to at least Devise 2.2.4)
|
|
90
|
+
* Version 0.3.3 - Updated some of the redirect methods to proper align with Devise 2.1.0. Also tidied up some of the test routines to proper replicate Devise 2.1.0
|
|
91
|
+
* Version 0.3.2 - Updated to include support for Devise 2.0.0 and above (no longer supports 1.5.3 or lower), you'll need version 0.3.1 to use older Devise
|
|
92
|
+
* Version 0.3.1 - Slight updated in the dependencies.
|
|
93
|
+
* Version 0.3 - first working version! With working generators, tests, and doesnt require changes to Devise's Sign In view
|
|
94
|
+
* Version 0.2 - tidied up some of the code - changed the references to AsteriskLabs
|
|
95
|
+
* Version 0.1 - initial release, just to push it up, is still very early and requires a bit work
|
|
96
|
+
|
|
96
97
|
== Thanks (and unknown contributors)
|
|
97
98
|
|
|
98
99
|
This extension would not exist without the following other projects and associated authors (Whom I have turned to for inspiration and definitely have helped contributing by providing awesome Devise extensions. A lot of this code has been refactored from various sources, in particular these - in particular Sergio and Devise_invitable for his excellent unit test code):
|
|
@@ -16,7 +16,9 @@ module DeviseGoogleAuthenticator::Patches
|
|
|
16
16
|
warden.logout #log the user out
|
|
17
17
|
|
|
18
18
|
#we head back into the checkga controller with the temporary id
|
|
19
|
-
|
|
19
|
+
#Because the model used for google auth may not always be the same, and may be a sub-model, the eval will evaluate the appropriate path name
|
|
20
|
+
#This change addresses https://github.com/AsteriskLabs/devise_google_authenticator/issues/7
|
|
21
|
+
respond_with resource, :location => eval("#{resource.class.name.singularize.underscore}_checkga_path(id:'#{tmpid}')")
|
|
20
22
|
|
|
21
23
|
else #It's not using, or not enabled for Google 2FA, OR is remembering token and therefore not asking for the moment - carry on, nothing to see here.
|
|
22
24
|
set_flash_message(:notice, :signed_in) if is_flashing_format?
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: devise_google_authenticator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Christian Frichot
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-03-
|
|
11
|
+
date: 2014-03-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|