securid 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -0
- data/README.md +53 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a1be1d9136e8b777ffba555e131e958a3e811d4
|
4
|
+
data.tar.gz: 22f055e45b27a0222a534c2dfbbea40b0d6ce5a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93dbecadc06df7f02cec23f2d20860fc3b31993966e9fa15d219ff67527b15fd8f85592b1c5ef9089424c2059e9d52c5ac29c804d09ed7d0a9788e7c906a3141
|
7
|
+
data.tar.gz: 2d219aafc1483dc3902bc06c3b0b045dff0cc1b69f783f6e1ab527c4267098e82dc02d4f2be67155105664b146fa4ded3cea42c290499055e23af6d53c6e4122
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2010 Ian Lesperance, 2015 Lab Zero Innovations Inc.
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
17
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
18
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
19
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
20
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
# SecurID
|
2
|
+
|
3
|
+
SecurID is a library for authenticating with an RSA SecurID ACE
|
4
|
+
Authentication Server.
|
5
|
+
|
6
|
+
RSA SecurID is a two-factor authentication scheme that uses a PIN
|
7
|
+
and a tokencode to authenticate a user. The tokencode is generated
|
8
|
+
by a hardware or software token and changes at regular timed intervals.
|
9
|
+
|
10
|
+
## Requirements
|
11
|
+
|
12
|
+
Installing the SecurID gem requires installation of the proper ACE
|
13
|
+
authentication library for your system. The library may be obtained
|
14
|
+
from RSA.
|
15
|
+
|
16
|
+
## Installation
|
17
|
+
|
18
|
+
$ gem build securid.gemspec
|
19
|
+
$ gem install securid-X.X.gem
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
require 'rubygems'
|
24
|
+
require 'securid'
|
25
|
+
|
26
|
+
session = RSA::SecurID::Session.new
|
27
|
+
session.authenticate(username, passcode)
|
28
|
+
session.authenticated? # true on success
|
29
|
+
|
30
|
+
The `authenticate` instance method accepts a username and a passcode and
|
31
|
+
returns true or false to indicate success or failure.
|
32
|
+
|
33
|
+
The passcode is simply the concatenation of the user's PIN and their
|
34
|
+
current tokencode.
|
35
|
+
|
36
|
+
### Test Mode
|
37
|
+
|
38
|
+
Since it's not always possible to have an RSA ACE server running (local
|
39
|
+
development for example), the gem supports a test mode that will bypass
|
40
|
+
any communication with the ACE server and simply return a predetermined
|
41
|
+
response.
|
42
|
+
|
43
|
+
require 'rubygems'
|
44
|
+
require 'securid'
|
45
|
+
|
46
|
+
session = RSA::SecurID::Session.new(test_mode: true)
|
47
|
+
session.authenticate(username, passcode) # never talks to the server
|
48
|
+
session.authenticated? # test authentication is always successful by default
|
49
|
+
|
50
|
+
### Errors
|
51
|
+
|
52
|
+
Any unexpected problems during the authentication process will raise an
|
53
|
+
`RSA::SecurID::SecurIDError`.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: securid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Lesperance
|
@@ -14,17 +14,19 @@ dependencies: []
|
|
14
14
|
description: A library for authenticating with an RSA SecurID ACE Authentication Server.
|
15
15
|
Supports synchronous authenttication with ACE Server 6.1 and greater. Supports interactive
|
16
16
|
and non-interactive flows.
|
17
|
-
email:
|
17
|
+
email: opensource@labzero.com
|
18
18
|
executables: []
|
19
19
|
extensions:
|
20
20
|
- ext/securid/extconf.rb
|
21
21
|
extra_rdoc_files: []
|
22
22
|
files:
|
23
|
+
- MIT-LICENSE
|
24
|
+
- README.md
|
23
25
|
- ext/securid/extconf.rb
|
24
26
|
- ext/securid/securid.c
|
25
27
|
- ext/securid/securid.h
|
26
28
|
- lib/securid.rb
|
27
|
-
homepage:
|
29
|
+
homepage: https://github.com/labzero/securid
|
28
30
|
licenses:
|
29
31
|
- MIT
|
30
32
|
metadata: {}
|