Kevin Pheasey
67b8ca7ae4
Abstract logic for two factor success and fail into separate methods. Further abstract the path for after success into a third method.
9 years ago
Kopylov German
49c41a87dc
Move require rotp library to the file where it is used
9 years ago
Dmitrii Golub
d5820a2f3d
Merge pull request #54 from alphagov/rememberable-tfa
...
Add support for remembering a user's 2FA session in a cookie
9 years ago
Dmitrii Golub
d1d4fe3412
Merge pull request #53 from alphagov/test-against-newer-ruby-and-rails
...
Test against Ruby 2.2 and Rails 4.2
9 years ago
Paul Bowsher
8d4da3beb5
Add support for remembering a user's 2FA session in a cookie
...
This makes the gem store a signed cookie for a configurable amount of
time that allows the user to bypass 2FA. Our use-case for this is that
we expire user’s Devise sessions after 12 hours, but don’t want to
force them to authenticate using 2FA every day.
Signed cookies are available since Rails 3. This requires the signing
functionality to be properly configured, but is disabled by setting the
config variable to `0`, the default.
9 years ago
Paul Bowsher
7dd514a699
Test against Ruby 2.2 and Rails 4.2
...
Adds builds to the travisci matrix for Ruby 2.2 and Rails 4.2.4
Also fixes a couple of deprecation warnings that surface as part of
this change.
9 years ago
JD Trout
14adcce362
Add ability to resend code
10 years ago
The Gitter Badger
112d7e9a4b
Added Gitter badge
10 years ago
Dmitrii Golub
9c71601f5f
Merge pull request #46 from daveriess/master
...
Eliminates appended '?' to redirects that have no query string
10 years ago
Dave Riess
10e0ebbd9d
replace request.path + '?' + request.query_string with request.original_fullpath in order to avoid appending '?' to redirects that have no query string
10 years ago
Dave Riess
f3d76128f7
add RVM dot files to gitignore
10 years ago
Dmitrii Golub
2e18e6ccb9
update version to 1.1.3
10 years ago
Dmitrii Golub
dea9779f3b
Merge branch 'preserve_query_parameters' of https://github.com/omb-awong/two_factor_authentication into omb-awong-preserve_query_parameters
10 years ago
Dmitrii Golub
b39cd57943
merge amoose-feature/otp_length master to master
10 years ago
Dmitrii Golub
f833673c26
Sign in or Log in button indifferent
10 years ago
amoose
3076c6053b
Allows otp_length to be configurable
...
Adds otp_length to options in README
Sets default length to 6
10 years ago
Dmitrii Golub
3fa7233bdd
Merge pull request #43 from sadfuzzy/master
...
Missing translation.
10 years ago
Denis Savitsky
ee3a362cfc
Missing translation.
10 years ago
Albert J. Wong
677cb78d5f
Preserve query parameters in _return_to for redirect.
...
Storing just request.path drops the query string which makes two factory
authentication less useful when the guarded page needs those parameters.
This brings the two factor authentication redirect behavior in line with
devise's.
10 years ago
Dmitrii Golub
f664f995ec
Merge pull request #41 from logistik-digital/40-migration-file-extension
...
Add file extension to ActiveRecord generator
10 years ago
Jack Turnbull
94dcc19e99
Add file extension to ActiveRecord generator
10 years ago
Dmitrii Golub
6610f83335
update rspec to version 3
11 years ago
Dmitrii Golub
1e4a8b13ef
update version to 1.1.2
11 years ago
Dmitrii Golub
d62fa1644b
change default rails from 3.2 to 4.1
11 years ago
Dmitrii Golub
aa110afd35
Merge branch 'checkdin-chore/extract-reused-hash-key'
11 years ago
Dmitrii Golub
3470a57fd1
merge rud's: Chore/extract reused hash key
11 years ago
Laust Rud Jacobsen
20703c0397
Warden hook: refactor to not perform inline assignment for clarity
11 years ago
Laust Rud Jacobsen
c87d591541
Extract reused Warden key constant
11 years ago
Dmitrii Golub
2ea02f559e
Merge pull request #39 from Znow/patch-1
...
Updated readme with rake task to update existing users with OTP secret k...
11 years ago
Daniel
de1086e9f4
Updated readme with rake task to update existing users with OTP secret key
11 years ago
Dmitrii Golub
99f5497d06
Merge pull request #38 from Znow/master
...
Updated readme with view overriding
11 years ago
Daniel
49776869d4
Updated readme with view overriding
11 years ago
Dmitrii Golub
28f9f6f8d9
new version 1.1.1
11 years ago
Dmitrii Golub
7afebdb631
Merge branch 'karolsarnacki-rails41-compatibility'
11 years ago
Dmitrii Golub
820b5c4afb
Merge branch 'rails41-compatibility' of github.com:karolsarnacki/two_factor_authentication into karolsarnacki-rails41-compatibility
11 years ago
Dmitrii Golub
7505dbf8c8
+cookies serializer for rails apps with version >= 4.1
11 years ago
Karol Sarnacki
f3a39237fa
Use Strings and not Symbols for keys when storing variable in warden session
11 years ago
Dmitrii Golub
2d71cf0d83
Merge pull request #31 from brissmyr/master
...
Pad OTP codes with less than 6 digits
11 years ago
Johan Brissmyr
29bddf19f6
Pad OTP codes with less than 6 digits
11 years ago
Dmitrii Golub
834858b595
+ Code quality snippet
11 years ago
Dmitrii Golub
d7599a8838
version 1.1
11 years ago
Dmitrii Golub
93b1a1596a
Merge pull request #13 from edg3r/add_locales
...
Add ru locales and locales for max_limit_reached view
11 years ago
Dmitrii Golub
39deb66561
Merge pull request #28 from edg3r/control
...
added is_fully_authenticated helper for current version
11 years ago
Dmitrii Golub
f20c290f2e
Merge pull request #27 from rossta/integration_spec_for_send_code
...
Adds integration spec to ensure authentication code is sent on sign in
11 years ago
Edger
a8cea83253
is_fully_authenticated helper
11 years ago
Dmitrii Golub
d72374618d
Merge pull request #26 from rossta/bug_fix_store_location
...
ensure return_to location is properly stored
11 years ago
Ross Kaffenberger
bb1a619a3c
ensure return_to location is properly stored
...
fixes small typo in session key for what Devise expects when retrieving
stored return_to path for a given scope
11 years ago
Ross Kaffenberger
c58640c6d2
adds integration spec to ensure authentication code is sent on sign in
11 years ago
Dmitrii Golub
a110d79d98
Merge pull request #25 from rossta/add_travis_badge
...
travis badge in README
11 years ago
Ross Kaffenberger
d9435afa83
travis badge in README
11 years ago