devise_ldap_authenticatable 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile +1 -4
- data/README.md +45 -92
- data/Rakefile +8 -7
- data/devise_ldap_authenticatable.gemspec +15 -3
- data/lib/devise_ldap_authenticatable/ldap_adapter.rb +51 -27
- data/lib/devise_ldap_authenticatable/model.rb +5 -1
- data/lib/devise_ldap_authenticatable/strategy.rb +3 -1
- data/lib/devise_ldap_authenticatable/version.rb +1 -1
- data/lib/generators/devise_ldap_authenticatable/templates/ldap.yml +3 -3
- data/spec/ldap/.gitignore +2 -0
- data/{test → spec}/ldap/base.ldif +0 -0
- data/{test → spec}/ldap/clear.ldif +0 -0
- data/{test → spec}/ldap/local.schema +0 -0
- data/spec/ldap/openldap-data/.gitignore +2 -0
- data/spec/ldap/openldap-data/run/.gitignore +2 -0
- data/{test → spec}/ldap/openldap-data/run/.gitkeep +0 -0
- data/spec/ldap/run-server +31 -0
- data/{test → spec}/ldap/server.pem +0 -0
- data/{test/ldap/slapd-test.conf → spec/ldap/slapd-test.conf.erb} +16 -16
- data/{test → spec}/rails_app/Rakefile +0 -0
- data/spec/rails_app/app/controllers/application_controller.rb +7 -0
- data/{test → spec}/rails_app/app/controllers/posts_controller.rb +0 -0
- data/{test → spec}/rails_app/app/helpers/application_helper.rb +0 -0
- data/{test → spec}/rails_app/app/helpers/posts_helper.rb +0 -0
- data/{test → spec}/rails_app/app/models/post.rb +0 -0
- data/{test → spec}/rails_app/app/models/user.rb +0 -0
- data/{test → spec}/rails_app/app/views/layouts/application.html.erb +0 -0
- data/{test → spec}/rails_app/app/views/posts/index.html.erb +0 -0
- data/{test → spec}/rails_app/config.ru +0 -0
- data/{test → spec}/rails_app/config/application.rb +0 -0
- data/{test → spec}/rails_app/config/boot.rb +1 -1
- data/{test → spec}/rails_app/config/cucumber.yml +0 -0
- data/{test → spec}/rails_app/config/database.yml +0 -0
- data/{test → spec}/rails_app/config/environment.rb +0 -0
- data/{test → spec}/rails_app/config/environments/development.rb +0 -1
- data/{test → spec}/rails_app/config/environments/production.rb +0 -0
- data/{test → spec}/rails_app/config/environments/test.rb +1 -1
- data/{test → spec}/rails_app/config/initializers/backtrace_silencers.rb +0 -0
- data/spec/rails_app/config/initializers/devise.rb +242 -0
- data/{test → spec}/rails_app/config/initializers/inflections.rb +0 -0
- data/{test → spec}/rails_app/config/initializers/mime_types.rb +0 -0
- data/{test → spec}/rails_app/config/initializers/secret_token.rb +0 -0
- data/{test → spec}/rails_app/config/initializers/session_store.rb +0 -0
- data/{test → spec}/rails_app/config/ldap.yml +0 -0
- data/{test → spec}/rails_app/config/ldap_with_boolean_ssl.yml +0 -0
- data/{test → spec}/rails_app/config/ldap_with_erb.yml +0 -0
- data/{test → spec}/rails_app/config/ldap_with_uid.yml +0 -0
- data/spec/rails_app/config/locales/devise.en.yml +58 -0
- data/{test → spec}/rails_app/config/locales/en.yml +0 -0
- data/{test → spec}/rails_app/config/routes.rb +0 -0
- data/{test → spec}/rails_app/config/ssl_ldap.yml +0 -0
- data/{test → spec}/rails_app/config/ssl_ldap_with_erb.yml +0 -0
- data/{test → spec}/rails_app/config/ssl_ldap_with_uid.yml +0 -0
- data/{test → spec}/rails_app/db/migrate/20100708120448_devise_create_users.rb +18 -4
- data/{test → spec}/rails_app/db/schema.rb +6 -13
- data/{test → spec}/rails_app/features/manage_logins.feature +0 -0
- data/{test → spec}/rails_app/features/step_definitions/login_steps.rb +0 -0
- data/{test → spec}/rails_app/features/step_definitions/web_steps.rb +0 -0
- data/{test → spec}/rails_app/features/support/env.rb +0 -0
- data/{test → spec}/rails_app/features/support/paths.rb +0 -0
- data/{test → spec}/rails_app/lib/tasks/.gitkeep +0 -0
- data/{test → spec}/rails_app/lib/tasks/cucumber.rake +0 -0
- data/{test → spec}/rails_app/public/404.html +0 -0
- data/{test → spec}/rails_app/public/422.html +0 -0
- data/{test → spec}/rails_app/public/500.html +0 -0
- data/{test → spec}/rails_app/public/images/rails.png +0 -0
- data/{test → spec}/rails_app/public/javascripts/application.js +0 -0
- data/{test → spec}/rails_app/public/javascripts/controls.js +0 -0
- data/{test → spec}/rails_app/public/javascripts/dragdrop.js +0 -0
- data/{test → spec}/rails_app/public/javascripts/effects.js +0 -0
- data/{test → spec}/rails_app/public/javascripts/prototype.js +0 -0
- data/{test → spec}/rails_app/public/javascripts/rails.js +0 -0
- data/{test → spec}/rails_app/public/stylesheets/.gitkeep +0 -0
- data/{test → spec}/rails_app/script/cucumber +0 -0
- data/{test → spec}/rails_app/script/rails +0 -0
- data/spec/spec_helper.rb +47 -0
- data/spec/support/factories.rb +16 -0
- data/spec/unit/user_spec.rb +303 -0
- metadata +292 -179
- data/Gemfile.lock +0 -92
- data/rails/init.rb +0 -2
- data/test/devise_ldap_authenticatable_test.rb +0 -8
- data/test/ldap/run-server.sh +0 -10
- data/test/ldap/slapd-ssl-test.conf +0 -107
- data/test/rails_app/Gemfile +0 -22
- data/test/rails_app/Gemfile.lock +0 -159
- data/test/rails_app/app/controllers/application_controller.rb +0 -4
- data/test/rails_app/config/initializers/devise.rb +0 -140
- data/test/rails_app/config/ldap_with_check_membership_off.yml +0 -23
- data/test/rails_app/config/ldap_with_check_membership_on.yml +0 -23
- data/test/rails_app/config/locales/devise.en.yml +0 -39
- data/test/rails_app/db/migrate/20100708120302_create_posts.rb +0 -14
- data/test/rails_app/db/seeds.rb +0 -7
- data/test/rails_app/test/factories/users.rb +0 -14
- data/test/rails_app/test/functional/posts_controller_test.rb +0 -58
- data/test/rails_app/test/performance/browsing_test.rb +0 -9
- data/test/rails_app/test/test_helper.rb +0 -36
- data/test/rails_app/test/unit/helpers/posts_helper_test.rb +0 -4
- data/test/rails_app/test/unit/post_test.rb +0 -4
- data/test/rails_app/test/unit/user_test.rb +0 -314
- data/test/test_helper.rb +0 -3
data/Gemfile.lock
DELETED
@@ -1,92 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
devise_ldap_authenticatable (0.6.0)
|
5
|
-
devise (>= 2.0.0)
|
6
|
-
net-ldap (~> 0.2.2)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: http://rubygems.org/
|
10
|
-
specs:
|
11
|
-
actionpack (3.2.6)
|
12
|
-
activemodel (= 3.2.6)
|
13
|
-
activesupport (= 3.2.6)
|
14
|
-
builder (~> 3.0.0)
|
15
|
-
erubis (~> 2.7.0)
|
16
|
-
journey (~> 1.0.1)
|
17
|
-
rack (~> 1.4.0)
|
18
|
-
rack-cache (~> 1.2)
|
19
|
-
rack-test (~> 0.6.1)
|
20
|
-
sprockets (~> 2.1.3)
|
21
|
-
activemodel (3.2.6)
|
22
|
-
activesupport (= 3.2.6)
|
23
|
-
builder (~> 3.0.0)
|
24
|
-
activesupport (3.2.6)
|
25
|
-
i18n (~> 0.6)
|
26
|
-
multi_json (~> 1.0)
|
27
|
-
bcrypt-ruby (3.0.1)
|
28
|
-
builder (3.0.0)
|
29
|
-
columnize (0.3.6)
|
30
|
-
debugger (1.1.4)
|
31
|
-
columnize (>= 0.3.1)
|
32
|
-
debugger-linecache (~> 1.1.1)
|
33
|
-
debugger-ruby_core_source (~> 1.1.3)
|
34
|
-
debugger-linecache (1.1.1)
|
35
|
-
debugger-ruby_core_source (>= 1.1.1)
|
36
|
-
debugger-ruby_core_source (1.1.3)
|
37
|
-
devise (2.0.4)
|
38
|
-
bcrypt-ruby (~> 3.0)
|
39
|
-
orm_adapter (~> 0.0.3)
|
40
|
-
railties (~> 3.1)
|
41
|
-
warden (~> 1.1.1)
|
42
|
-
erubis (2.7.0)
|
43
|
-
hike (1.2.1)
|
44
|
-
i18n (0.6.0)
|
45
|
-
journey (1.0.4)
|
46
|
-
json (1.7.3)
|
47
|
-
linecache (0.46)
|
48
|
-
rbx-require-relative (> 0.0.4)
|
49
|
-
multi_json (1.3.6)
|
50
|
-
net-ldap (0.2.2)
|
51
|
-
orm_adapter (0.0.7)
|
52
|
-
rack (1.4.1)
|
53
|
-
rack-cache (1.2)
|
54
|
-
rack (>= 0.4)
|
55
|
-
rack-ssl (1.3.2)
|
56
|
-
rack
|
57
|
-
rack-test (0.6.1)
|
58
|
-
rack (>= 1.0)
|
59
|
-
railties (3.2.6)
|
60
|
-
actionpack (= 3.2.6)
|
61
|
-
activesupport (= 3.2.6)
|
62
|
-
rack-ssl (~> 1.3.2)
|
63
|
-
rake (>= 0.8.7)
|
64
|
-
rdoc (~> 3.4)
|
65
|
-
thor (>= 0.14.6, < 2.0)
|
66
|
-
rake (0.9.2.2)
|
67
|
-
rbx-require-relative (0.0.5)
|
68
|
-
rdoc (3.12)
|
69
|
-
json (~> 1.4)
|
70
|
-
ruby-debug (0.10.4)
|
71
|
-
columnize (>= 0.1)
|
72
|
-
ruby-debug-base (~> 0.10.4.0)
|
73
|
-
ruby-debug-base (0.10.4)
|
74
|
-
linecache (>= 0.3)
|
75
|
-
sprockets (2.1.3)
|
76
|
-
hike (~> 1.2)
|
77
|
-
rack (~> 1.0)
|
78
|
-
tilt (~> 1.1, != 1.3.0)
|
79
|
-
thor (0.15.3)
|
80
|
-
tilt (1.3.3)
|
81
|
-
warden (1.1.1)
|
82
|
-
rack (>= 1.0)
|
83
|
-
|
84
|
-
PLATFORMS
|
85
|
-
ruby
|
86
|
-
|
87
|
-
DEPENDENCIES
|
88
|
-
debugger
|
89
|
-
devise (~> 2.0.0)
|
90
|
-
devise_ldap_authenticatable!
|
91
|
-
net-ldap (~> 0.2.2)
|
92
|
-
ruby-debug (>= 0.10.3)
|
data/rails/init.rb
DELETED
data/test/ldap/run-server.sh
DELETED
@@ -1,107 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# See slapd.conf(5) for details on configuration options.
|
3
|
-
# This file should NOT be world readable.
|
4
|
-
#
|
5
|
-
include /etc/openldap/schema/core.schema
|
6
|
-
include /etc/openldap/schema/cosine.schema
|
7
|
-
include /etc/openldap/schema/inetorgperson.schema
|
8
|
-
include /etc/openldap/schema/nis.schema
|
9
|
-
|
10
|
-
## Local definitions
|
11
|
-
# include /etc/openldap/schema/local.schema
|
12
|
-
include local.schema
|
13
|
-
|
14
|
-
# Allow LDAPv2 client connections. This is NOT the default.
|
15
|
-
allow bind_v2
|
16
|
-
|
17
|
-
# Do not enable referrals until AFTER you have a working directory
|
18
|
-
# service AND an understanding of referrals.
|
19
|
-
#referral ldap://root.openldap.org
|
20
|
-
|
21
|
-
pidfile openldap-data/run/slapd.pid
|
22
|
-
argsfile openldap-data/run/slapd.args
|
23
|
-
|
24
|
-
# Load dynamic backend modules:
|
25
|
-
modulepath /usr/lib/openldap
|
26
|
-
|
27
|
-
# modules available in openldap-servers-overlays RPM package:
|
28
|
-
# moduleload accesslog.la
|
29
|
-
# moduleload auditlog.la
|
30
|
-
# moduleload denyop.la
|
31
|
-
# moduleload dyngroup.la
|
32
|
-
# moduleload dynlist.la
|
33
|
-
# moduleload lastmod.la
|
34
|
-
# moduleload pcache.la
|
35
|
-
# moduleload ppolicy.la
|
36
|
-
# moduleload refint.la
|
37
|
-
# moduleload retcode.la
|
38
|
-
# moduleload rwm.la
|
39
|
-
# moduleload smbk5pwd.la
|
40
|
-
# moduleload syncprov.la
|
41
|
-
# moduleload translucent.la
|
42
|
-
# moduleload unique.la
|
43
|
-
# moduleload valsort.la
|
44
|
-
|
45
|
-
# modules available in openldap-servers-sql RPM package:
|
46
|
-
# moduleload back_sql.la
|
47
|
-
|
48
|
-
# The next three lines allow use of TLS for encrypting connections using a
|
49
|
-
# dummy test certificate which you can generate by changing to
|
50
|
-
# /etc/pki/tls/certs, running "make slapd.pem", and fixing permissions on
|
51
|
-
# slapd.pem so that the ldap user or group can read it. Your client software
|
52
|
-
# may balk at self-signed certificates, however.
|
53
|
-
|
54
|
-
## For LDAPS
|
55
|
-
TLSCACertificateFile server.pem
|
56
|
-
TLSCertificateFile server.pem
|
57
|
-
TLSCertificateKeyFile server.pem
|
58
|
-
|
59
|
-
# TLSVerifyClient never
|
60
|
-
|
61
|
-
# Sample security restrictions
|
62
|
-
# Require integrity protection (prevent hijacking)
|
63
|
-
# Require 112-bit (3DES or better) encryption for updates
|
64
|
-
# Require 63-bit encryption for simple bind
|
65
|
-
# security ssf=1 update_ssf=112 simple_bind=64
|
66
|
-
|
67
|
-
# Sample access control policy:
|
68
|
-
# Root DSE: allow anyone to read it
|
69
|
-
# Subschema (sub)entry DSE: allow anyone to read it
|
70
|
-
# Other DSEs:
|
71
|
-
# Allow self write access
|
72
|
-
# Allow authenticated users read access
|
73
|
-
# Allow anonymous users to authenticate
|
74
|
-
# Directives needed to implement policy:
|
75
|
-
|
76
|
-
# access to dn.base="dc=esc" by * read
|
77
|
-
# access to dn.base="cn=Subschema" by * read
|
78
|
-
access to *
|
79
|
-
by self write
|
80
|
-
by * read
|
81
|
-
by anonymous auth
|
82
|
-
|
83
|
-
#
|
84
|
-
# if no access controls are present, the default policy
|
85
|
-
# allows anyone and everyone to read anything but restricts
|
86
|
-
# updates to rootdn. (e.g., "access to * by * read")
|
87
|
-
#
|
88
|
-
# rootdn can always read and write EVERYTHING!
|
89
|
-
|
90
|
-
#######################################################################
|
91
|
-
# ldbm and/or bdb database definitions
|
92
|
-
#######################################################################
|
93
|
-
|
94
|
-
database bdb
|
95
|
-
|
96
|
-
suffix "dc=test,dc=com"
|
97
|
-
directory openldap-data
|
98
|
-
rootdn "cn=admin,dc=test,dc=com"
|
99
|
-
## rootpw = secret
|
100
|
-
rootpw {SSHA}fFjKcZb4cfOAcwSjJer8nCGOEVRUnwCC
|
101
|
-
|
102
|
-
# Indices to maintain for this database
|
103
|
-
index objectClass eq,pres
|
104
|
-
index ou,cn,mail,surname,givenname eq,pres,sub
|
105
|
-
index uidNumber,gidNumber,loginShell eq,pres
|
106
|
-
index uid,memberUid eq,pres,sub
|
107
|
-
index nisMapName,nisMapEntry eq,pres,sub
|
data/test/rails_app/Gemfile
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
source 'http://rubygems.org'
|
2
|
-
|
3
|
-
gem 'rails', '3.0.0'
|
4
|
-
gem 'sqlite3-ruby', :require => 'sqlite3'
|
5
|
-
|
6
|
-
gem "devise", "~> 1.5.0"
|
7
|
-
gem "devise_ldap_authenticatable", :path => "../../"
|
8
|
-
|
9
|
-
group :test do
|
10
|
-
gem "ruby-debug"
|
11
|
-
gem "mocha"
|
12
|
-
gem "shoulda"
|
13
|
-
gem 'factory_girl_rails'
|
14
|
-
gem "cucumber-rails"
|
15
|
-
gem "database_cleaner"
|
16
|
-
gem "capybara"
|
17
|
-
gem "launchy"
|
18
|
-
gem "autotest-rails"
|
19
|
-
gem "ZenTest"
|
20
|
-
gem "redgreen"
|
21
|
-
gem "autotest-growl"
|
22
|
-
end
|
data/test/rails_app/Gemfile.lock
DELETED
@@ -1,159 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ../../
|
3
|
-
specs:
|
4
|
-
devise_ldap_authenticatable (0.5.1)
|
5
|
-
devise (~> 1.5.0)
|
6
|
-
net-ldap (~> 0.2.2)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: http://rubygems.org/
|
10
|
-
specs:
|
11
|
-
ZenTest (4.3.3)
|
12
|
-
abstract (1.0.0)
|
13
|
-
actionmailer (3.0.0)
|
14
|
-
actionpack (= 3.0.0)
|
15
|
-
mail (~> 2.2.5)
|
16
|
-
actionpack (3.0.0)
|
17
|
-
activemodel (= 3.0.0)
|
18
|
-
activesupport (= 3.0.0)
|
19
|
-
builder (~> 2.1.2)
|
20
|
-
erubis (~> 2.6.6)
|
21
|
-
i18n (~> 0.4.1)
|
22
|
-
rack (~> 1.2.1)
|
23
|
-
rack-mount (~> 0.6.12)
|
24
|
-
rack-test (~> 0.5.4)
|
25
|
-
tzinfo (~> 0.3.23)
|
26
|
-
activemodel (3.0.0)
|
27
|
-
activesupport (= 3.0.0)
|
28
|
-
builder (~> 2.1.2)
|
29
|
-
i18n (~> 0.4.1)
|
30
|
-
activerecord (3.0.0)
|
31
|
-
activemodel (= 3.0.0)
|
32
|
-
activesupport (= 3.0.0)
|
33
|
-
arel (~> 1.0.0)
|
34
|
-
tzinfo (~> 0.3.23)
|
35
|
-
activeresource (3.0.0)
|
36
|
-
activemodel (= 3.0.0)
|
37
|
-
activesupport (= 3.0.0)
|
38
|
-
activesupport (3.0.0)
|
39
|
-
arel (1.0.1)
|
40
|
-
activesupport (~> 3.0.0)
|
41
|
-
autotest (4.3.2)
|
42
|
-
autotest-growl (0.2.4)
|
43
|
-
autotest (>= 4.2.4)
|
44
|
-
autotest-rails (4.1.0)
|
45
|
-
ZenTest
|
46
|
-
bcrypt-ruby (3.0.1)
|
47
|
-
builder (2.1.2)
|
48
|
-
capybara (0.3.9)
|
49
|
-
culerity (>= 0.2.4)
|
50
|
-
mime-types (>= 1.16)
|
51
|
-
nokogiri (>= 1.3.3)
|
52
|
-
rack (>= 1.0.0)
|
53
|
-
rack-test (>= 0.5.4)
|
54
|
-
selenium-webdriver (>= 0.0.3)
|
55
|
-
columnize (0.3.1)
|
56
|
-
configuration (1.1.0)
|
57
|
-
cucumber (0.8.5)
|
58
|
-
builder (~> 2.1.2)
|
59
|
-
diff-lcs (~> 1.1.2)
|
60
|
-
gherkin (~> 2.1.4)
|
61
|
-
json_pure (~> 1.4.3)
|
62
|
-
term-ansicolor (~> 1.0.4)
|
63
|
-
cucumber-rails (0.3.2)
|
64
|
-
cucumber (>= 0.8.0)
|
65
|
-
culerity (0.2.12)
|
66
|
-
database_cleaner (0.5.2)
|
67
|
-
devise (1.5.3)
|
68
|
-
bcrypt-ruby (~> 3.0)
|
69
|
-
orm_adapter (~> 0.0.3)
|
70
|
-
warden (~> 1.1)
|
71
|
-
diff-lcs (1.1.2)
|
72
|
-
erubis (2.6.6)
|
73
|
-
abstract (>= 1.0.0)
|
74
|
-
factory_girl (1.3.2)
|
75
|
-
factory_girl_rails (1.0)
|
76
|
-
factory_girl (~> 1.3)
|
77
|
-
rails (>= 3.0.0.beta4)
|
78
|
-
ffi (0.6.3)
|
79
|
-
rake (>= 0.8.7)
|
80
|
-
gherkin (2.1.5)
|
81
|
-
trollop (~> 1.16.2)
|
82
|
-
i18n (0.4.1)
|
83
|
-
json_pure (1.4.6)
|
84
|
-
launchy (0.3.7)
|
85
|
-
configuration (>= 0.0.5)
|
86
|
-
rake (>= 0.8.1)
|
87
|
-
linecache (0.43)
|
88
|
-
mail (2.2.5)
|
89
|
-
activesupport (>= 2.3.6)
|
90
|
-
mime-types
|
91
|
-
treetop (>= 1.4.5)
|
92
|
-
mime-types (1.16)
|
93
|
-
mocha (0.9.8)
|
94
|
-
rake
|
95
|
-
net-ldap (0.2.2)
|
96
|
-
nokogiri (1.4.3.1)
|
97
|
-
orm_adapter (0.0.6)
|
98
|
-
polyglot (0.3.1)
|
99
|
-
rack (1.2.1)
|
100
|
-
rack-mount (0.6.12)
|
101
|
-
rack (>= 1.0.0)
|
102
|
-
rack-test (0.5.4)
|
103
|
-
rack (>= 1.0)
|
104
|
-
rails (3.0.0)
|
105
|
-
actionmailer (= 3.0.0)
|
106
|
-
actionpack (= 3.0.0)
|
107
|
-
activerecord (= 3.0.0)
|
108
|
-
activeresource (= 3.0.0)
|
109
|
-
activesupport (= 3.0.0)
|
110
|
-
bundler (~> 1.0.0)
|
111
|
-
railties (= 3.0.0)
|
112
|
-
railties (3.0.0)
|
113
|
-
actionpack (= 3.0.0)
|
114
|
-
activesupport (= 3.0.0)
|
115
|
-
rake (>= 0.8.4)
|
116
|
-
thor (~> 0.14.0)
|
117
|
-
rake (0.8.7)
|
118
|
-
redgreen (1.2.2)
|
119
|
-
ruby-debug (0.10.3)
|
120
|
-
columnize (>= 0.1)
|
121
|
-
ruby-debug-base (~> 0.10.3.0)
|
122
|
-
ruby-debug-base (0.10.3)
|
123
|
-
linecache (>= 0.3)
|
124
|
-
rubyzip (0.9.4)
|
125
|
-
selenium-webdriver (0.0.28)
|
126
|
-
ffi (>= 0.6.1)
|
127
|
-
json_pure
|
128
|
-
rubyzip
|
129
|
-
shoulda (2.11.3)
|
130
|
-
sqlite3-ruby (1.3.1)
|
131
|
-
term-ansicolor (1.0.5)
|
132
|
-
thor (0.14.0)
|
133
|
-
treetop (1.4.8)
|
134
|
-
polyglot (>= 0.3.1)
|
135
|
-
trollop (1.16.2)
|
136
|
-
tzinfo (0.3.23)
|
137
|
-
warden (1.1.0)
|
138
|
-
rack (>= 1.0)
|
139
|
-
|
140
|
-
PLATFORMS
|
141
|
-
ruby
|
142
|
-
|
143
|
-
DEPENDENCIES
|
144
|
-
ZenTest
|
145
|
-
autotest-growl
|
146
|
-
autotest-rails
|
147
|
-
capybara
|
148
|
-
cucumber-rails
|
149
|
-
database_cleaner
|
150
|
-
devise (~> 1.5.0)
|
151
|
-
devise_ldap_authenticatable!
|
152
|
-
factory_girl_rails
|
153
|
-
launchy
|
154
|
-
mocha
|
155
|
-
rails (= 3.0.0)
|
156
|
-
redgreen
|
157
|
-
ruby-debug
|
158
|
-
shoulda
|
159
|
-
sqlite3-ruby
|
@@ -1,140 +0,0 @@
|
|
1
|
-
# Use this hook to configure devise mailer, warden hooks and so forth. The first
|
2
|
-
# four configuration values can also be set straight in your models.
|
3
|
-
Devise.setup do |config|
|
4
|
-
# ==> LDAP Configuration
|
5
|
-
# config.ldap_create_user = true
|
6
|
-
# config.ldap_update_password = true
|
7
|
-
# config.ldap_config = "#{Rails.root}/config/ldap.yml"
|
8
|
-
|
9
|
-
# ==> Mailer Configuration
|
10
|
-
# Configure the e-mail address which will be shown in DeviseMailer.
|
11
|
-
config.mailer_sender = "please-change-me@config-initializers-devise.com"
|
12
|
-
|
13
|
-
# Configure the class responsible to send e-mails.
|
14
|
-
# config.mailer = "Devise::Mailer"
|
15
|
-
|
16
|
-
# ==> ORM configuration
|
17
|
-
# Load and configure the ORM. Supports :active_record (default), :mongoid
|
18
|
-
# (bson_ext recommended) and :data_mapper (experimental).
|
19
|
-
require 'devise/orm/active_record'
|
20
|
-
|
21
|
-
# ==> Configuration for any authentication mechanism
|
22
|
-
# Configure which keys are used when authenticating an user. By default is
|
23
|
-
# just :email. You can configure it to use [:username, :subdomain], so for
|
24
|
-
# authenticating an user, both parameters are required. Remember that those
|
25
|
-
# parameters are used only when authenticating and not when retrieving from
|
26
|
-
# session. If you need permissions, you should implement that in a before filter.
|
27
|
-
# config.authentication_keys = [ :email ]
|
28
|
-
|
29
|
-
# Tell if authentication through request.params is enabled. True by default.
|
30
|
-
# config.params_authenticatable = true
|
31
|
-
|
32
|
-
# Tell if authentication through HTTP Basic Auth is enabled. True by default.
|
33
|
-
# config.http_authenticatable = true
|
34
|
-
|
35
|
-
# The realm used in Http Basic Authentication
|
36
|
-
# config.http_authentication_realm = "Application"
|
37
|
-
|
38
|
-
# ==> Configuration for :database_authenticatable
|
39
|
-
# For bcrypt, this is the cost for hashing the password and defaults to 10. If
|
40
|
-
# using other encryptors, it sets how many times you want the password re-encrypted.
|
41
|
-
config.stretches = 10
|
42
|
-
|
43
|
-
# Define which will be the encryption algorithm. Devise also supports encryptors
|
44
|
-
# from others authentication tools as :clearance_sha1, :authlogic_sha512 (then
|
45
|
-
# you should set stretches above to 20 for default behavior) and :restful_authentication_sha1
|
46
|
-
# (then you should set stretches to 10, and copy REST_AUTH_SITE_KEY to pepper)
|
47
|
-
config.encryptor = :bcrypt
|
48
|
-
|
49
|
-
# Setup a pepper to generate the encrypted password.
|
50
|
-
config.pepper = "b4a6e95e4483fa2a883fe02228ad167051c967dd78f8adf3c924496d4a602ad92fe58c9b58b954487d32828e4540cd562f2f69618733265dd6a824973389598f"
|
51
|
-
|
52
|
-
# ==> Configuration for :confirmable
|
53
|
-
# The time you want to give your user to confirm his account. During this time
|
54
|
-
# he will be able to access your application without confirming. Default is nil.
|
55
|
-
# When confirm_within is zero, the user won't be able to sign in without confirming.
|
56
|
-
# You can use this to let your user access some features of your application
|
57
|
-
# without confirming the account, but blocking it after a certain period
|
58
|
-
# (ie 2 days).
|
59
|
-
# config.confirm_within = 2.days
|
60
|
-
|
61
|
-
# ==> Configuration for :rememberable
|
62
|
-
# The time the user will be remembered without asking for credentials again.
|
63
|
-
# config.remember_for = 2.weeks
|
64
|
-
|
65
|
-
# ==> Configuration for :validatable
|
66
|
-
# Range for password length
|
67
|
-
# config.password_length = 6..20
|
68
|
-
|
69
|
-
# Regex to use to validate the email address
|
70
|
-
# config.email_regexp = /^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})$/i
|
71
|
-
|
72
|
-
# ==> Configuration for :timeoutable
|
73
|
-
# The time you want to timeout the user session without activity. After this
|
74
|
-
# time the user will be asked for credentials again.
|
75
|
-
# config.timeout_in = 10.minutes
|
76
|
-
|
77
|
-
# ==> Configuration for :lockable
|
78
|
-
# Defines which strategy will be used to lock an account.
|
79
|
-
# :failed_attempts = Locks an account after a number of failed attempts to sign in.
|
80
|
-
# :none = No lock strategy. You should handle locking by yourself.
|
81
|
-
# config.lock_strategy = :failed_attempts
|
82
|
-
|
83
|
-
# Defines which strategy will be used to unlock an account.
|
84
|
-
# :email = Sends an unlock link to the user email
|
85
|
-
# :time = Re-enables login after a certain amount of time (see :unlock_in below)
|
86
|
-
# :both = Enables both strategies
|
87
|
-
# :none = No unlock strategy. You should handle unlocking by yourself.
|
88
|
-
# config.unlock_strategy = :both
|
89
|
-
|
90
|
-
# Number of authentication tries before locking an account if lock_strategy
|
91
|
-
# is failed attempts.
|
92
|
-
# config.maximum_attempts = 20
|
93
|
-
|
94
|
-
# Time interval to unlock the account if :time is enabled as unlock_strategy.
|
95
|
-
# config.unlock_in = 1.hour
|
96
|
-
|
97
|
-
# ==> Configuration for :token_authenticatable
|
98
|
-
# Defines name of the authentication token params key
|
99
|
-
# config.token_authentication_key = :auth_token
|
100
|
-
|
101
|
-
# ==> Scopes configuration
|
102
|
-
# Turn scoped views on. Before rendering "sessions/new", it will first check for
|
103
|
-
# "sessions/users/new". It's turned off by default because it's slower if you
|
104
|
-
# are using only default views.
|
105
|
-
# config.scoped_views = true
|
106
|
-
|
107
|
-
# By default, devise detects the role accessed based on the url. So whenever
|
108
|
-
# accessing "/users/sign_in", it knows you are accessing an User. This makes
|
109
|
-
# routes as "/sign_in" not possible, unless you tell Devise to use the default
|
110
|
-
# scope, setting true below.
|
111
|
-
# Note that devise does not generate default routes. You also have to
|
112
|
-
# specify them in config/routes.rb
|
113
|
-
# config.use_default_scope = true
|
114
|
-
|
115
|
-
# Configure the default scope used by Devise. By default it's the first devise
|
116
|
-
# role declared in your routes.
|
117
|
-
# config.default_scope = :user
|
118
|
-
|
119
|
-
# ==> Navigation configuration
|
120
|
-
# Lists the formats that should be treated as navigational. Formats like
|
121
|
-
# :html, should redirect to the sign in page when the user does not have
|
122
|
-
# access, but formats like :xml or :json, should return 401.
|
123
|
-
# If you have any extra navigational formats, like :iphone or :mobile, you
|
124
|
-
# should add them to the navigational formats lists. Default is [:html]
|
125
|
-
# config.navigational_formats = [:html, :iphone]
|
126
|
-
|
127
|
-
# ==> Warden configuration
|
128
|
-
# If you want to use other strategies, that are not (yet) supported by Devise,
|
129
|
-
# you can configure them inside the config.warden block. The example below
|
130
|
-
# allows you to setup OAuth, using http://github.com/roman/warden_oauth
|
131
|
-
#
|
132
|
-
# config.warden do |manager|
|
133
|
-
# manager.oauth(:twitter) do |twitter|
|
134
|
-
# twitter.consumer_secret = <YOUR CONSUMER SECRET>
|
135
|
-
# twitter.consumer_key = <YOUR CONSUMER KEY>
|
136
|
-
# twitter.options :site => 'http://twitter.com'
|
137
|
-
# end
|
138
|
-
# manager.default_strategies(:scope => :user).unshift :twitter_oauth
|
139
|
-
# end
|
140
|
-
end
|