authlogic_motp 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +9 -1
- data/lib/authlogic_motp/version.rb +1 -1
- metadata +5 -5
data/README.rdoc
CHANGED
@@ -58,8 +58,16 @@ The user should enter their usual login value, and then the OTP generated on the
|
|
58
58
|
=== 3. Issue credentials
|
59
59
|
|
60
60
|
Each user will have to be issued a secret (in general a 16 character long HEX string), which they will use to initialize their account on the OTP device, and also a PIN (in general a 4 digit number) used to generate passwords. Some client programs allow the secret to be generated on the device. In this case the user will have to communicate both secret and pin to the administrator for registration.
|
61
|
-
|
62
61
|
These should be stored in :motp_secret and :motp_pin respectively.
|
62
|
+
|
63
|
+
=== 4. Configure Mobile-OTP
|
64
|
+
|
65
|
+
Mobile-OTP passwords are by default valid for 3 minutes before and three minutes after they are created, to give users time to enter the OTP into login forms, etc. Authlogic_motp supports the ability to configure the amout in minutes the password is valid. In your session model, set motp_maxperiod to the number of minutes required:
|
66
|
+
|
67
|
+
class UserSession < Authlogic::Session::Base
|
68
|
+
motp_maxperiod 2
|
69
|
+
end
|
70
|
+
|
63
71
|
|
64
72
|
|
65
73
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authlogic_motp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-12-
|
12
|
+
date: 2011-12-06 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: authlogic
|
16
|
-
requirement: &
|
16
|
+
requirement: &17559380 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *17559380
|
25
25
|
description: Extension of the Authlogic library to add Mobile-OTP support.
|
26
26
|
email:
|
27
27
|
- browntigerz.lair@gmail.com
|
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
65
|
version: '0'
|
66
66
|
requirements: []
|
67
67
|
rubyforge_project:
|
68
|
-
rubygems_version: 1.8.
|
68
|
+
rubygems_version: 1.8.10
|
69
69
|
signing_key:
|
70
70
|
specification_version: 3
|
71
71
|
summary: Extension of the Authlogic library to add Mobile-OTP support.
|