contour 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +5 -0
- data/lib/contour/version.rb +1 -1
- data/lib/generators/templates/omniauth.rb +18 -7
- metadata +22 -22
data/CHANGELOG.rdoc
CHANGED
data/lib/contour/version.rb
CHANGED
@@ -1,22 +1,33 @@
|
|
1
|
+
require 'omniauth-openid'
|
2
|
+
require 'omniauth-ldap'
|
3
|
+
require 'omniauth-twitter'
|
4
|
+
require 'omniauth-facebook'
|
5
|
+
require 'omniauth-linkedin'
|
6
|
+
require 'omniauth-cas'
|
7
|
+
|
1
8
|
require 'openid/store/filesystem'
|
2
9
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
3
|
-
provider :open_id, OpenID::Store::Filesystem.new('/tmp'), name: 'google_apps', identifier: 'https://www.google.com/accounts/o8/id'
|
10
|
+
provider :open_id, store: OpenID::Store::Filesystem.new('/tmp'), name: 'google_apps', identifier: 'https://www.google.com/accounts/o8/id'
|
11
|
+
provider :open_id, store: OpenID::Store::Filesystem.new('/tmp')
|
12
|
+
provider :LDAP, host: 'ldap.example.com', port: 389, method: :plain, base: 'cn=users,dc=example,dc=com', uid: 'sAMAccountName', domain: '' #, try_sasl: true, sasl_mechanisms: "GSS-SPNEGO"
|
13
|
+
|
4
14
|
provider :twitter, 'CONSUMER_KEY', 'CONSUMER_SECRET'
|
5
15
|
provider :facebook, 'APP_ID', 'APP_SECRET'
|
6
16
|
provider :linked_in, 'CONSUMER_KEY', 'CONSUMER_SECRET'
|
7
|
-
provider :
|
8
|
-
|
9
|
-
|
17
|
+
provider :cas, host: 'cas.yourdomain.com', login_url: 'https://www.example.com/cas'
|
18
|
+
|
19
|
+
# Other providers will need gems added in your Gemfile, and the provider configured in this block.
|
20
|
+
# https://github.com/intridea/omniauth/wiki/List-of-Strategies
|
10
21
|
end
|
11
22
|
|
12
23
|
# This list will show the first choice as the default, and the rest as potential secondary login methods.
|
13
|
-
PROVIDERS = [:google_apps, :
|
24
|
+
PROVIDERS = [:google_apps, :open_id, :LDAP, :twitter, :facebook, :linked_in, :cas]
|
14
25
|
|
15
26
|
# LDAP
|
16
27
|
# :port (required) - The LDAP server port.
|
17
28
|
# :method (required) - May be :plain, :ssl, or :tls.
|
18
29
|
# :base (required) - The distinguished name (DN) for your organization; all users should be searchable under this base.
|
19
30
|
# :uid (required) - The LDAP attribute name for the user name in the login form. Typically AD would be 'sAMAccountName' or 'UniquePersonalIdentifier', while OpenLDAP is 'uid'. You can also use 'dn' for the user to put in the dn in the login form (but usually is too long for user to remember or know).
|
31
|
+
# :domain - Enter to keep users from having to enter the LDAP domain, usually in the form domain\username. Backslash will be appended automatically.
|
20
32
|
# :try_sasl - Try to use SASL connection to server.
|
21
|
-
# :sasl_mechanisms - Mechanisms supported are 'DIGEST-MD5' and 'GSS-SPNEGO'
|
22
|
-
# :domain - Enter to keep users from having to enter the LDAP domain, usually in the form domain\username. Backslash will be appended automatically.
|
33
|
+
# :sasl_mechanisms - Mechanisms supported are 'DIGEST-MD5' and 'GSS-SPNEGO'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contour
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.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: 2012-01-
|
12
|
+
date: 2012-01-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70227908990720 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.2.0.rc2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70227908990720
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: jquery-rails
|
27
|
-
requirement: &
|
27
|
+
requirement: &70227908990220 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 2.0.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70227908990220
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: devise
|
38
|
-
requirement: &
|
38
|
+
requirement: &70227908989760 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.5.3
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70227908989760
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: omniauth
|
49
|
-
requirement: &
|
49
|
+
requirement: &70227916803120 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 1.0.1
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70227916803120
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: omniauth-openid
|
60
|
-
requirement: &
|
60
|
+
requirement: &70227916801980 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 1.0.1
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70227916801980
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: omniauth-ldap
|
71
|
-
requirement: &
|
71
|
+
requirement: &70227916800480 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 1.0.2
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70227916800480
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: omniauth-twitter
|
82
|
-
requirement: &
|
82
|
+
requirement: &70227916798980 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ~>
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: 0.0.7
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70227916798980
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: omniauth-facebook
|
93
|
-
requirement: &
|
93
|
+
requirement: &70227916798060 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ~>
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: 1.2.0
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70227916798060
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: omniauth-linkedin
|
104
|
-
requirement: &
|
104
|
+
requirement: &70227916797140 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: 0.0.6
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70227916797140
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: omniauth-cas
|
115
|
-
requirement: &
|
115
|
+
requirement: &70227916796520 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ~>
|
@@ -120,7 +120,7 @@ dependencies:
|
|
120
120
|
version: 0.0.3
|
121
121
|
type: :runtime
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *70227916796520
|
124
124
|
description: Basic Rails Framework files and assets for layout and authentication
|
125
125
|
email: remosm@gmail.com
|
126
126
|
executables: []
|