rails_sso 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails_sso/engine.rb +11 -0
- data/lib/rails_sso/version.rb +1 -1
- metadata +2 -3
- data/config/initializers/omniauth.rb +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ba3ea4dd7d1d68731bff24f0c2a91562c349d1c
|
4
|
+
data.tar.gz: 8afb4fbb304f7fdda9380e2b8f8ee48171f0e545
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 533d9f47ea4e863a0d0c3f41d581abcaa1665ed2066d0231657c5735dd9ea22b1bfe5f4c2b1fb4ae5d186c50ddf6cf640c0bad3ffd2929108d55715d43cd404f
|
7
|
+
data.tar.gz: c1dcfe6eebbfa47657c86d2b64d72c8ddd331314e914d2a17b3f5bda6cd53f5984cc09e1be2557b5516c64255c4d9c05b6ee5f0fd275b811818c8cfd611b8e00
|
data/lib/rails_sso/engine.rb
CHANGED
@@ -5,5 +5,16 @@ module RailsSso
|
|
5
5
|
include RailsSso::Helpers
|
6
6
|
end
|
7
7
|
end
|
8
|
+
|
9
|
+
initializer 'sso.omniauth', after: :load_config_initializers, before: :build_middleware_stack do |app|
|
10
|
+
if RailsSso.provider_name
|
11
|
+
app.config.middleware.use OmniAuth::Builder do
|
12
|
+
provider RailsSso.provider_name,
|
13
|
+
RailsSso.provider_key,
|
14
|
+
RailsSso.provider_secret,
|
15
|
+
callback_path: RailsSso.provider_callback_path
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
8
19
|
end
|
9
20
|
end
|
data/lib/rails_sso/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_sso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Dudulski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -106,7 +106,6 @@ files:
|
|
106
106
|
- Rakefile
|
107
107
|
- app/controllers/rails_sso/sessions_controller.rb
|
108
108
|
- app/services/rails_sso/fetch_user.rb
|
109
|
-
- config/initializers/omniauth.rb
|
110
109
|
- config/locales/en.yml
|
111
110
|
- config/routes.rb
|
112
111
|
- lib/generators/rails_sso_generator.rb
|